File tree Expand file tree Collapse file tree 6 files changed +26
-15
lines changed
cluster/charts/fuel-streams Expand file tree Collapse file tree 6 files changed +26
-15
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,14 @@ jobs:
222
222
NATS_SYSTEM_PASS : sys
223
223
NATS_ADMIN_USER : admin
224
224
NATS_ADMIN_PASS : admin
225
+ AWS_STORAGE_ENV : local
226
+ AWS_ACCESS_KEY_ID : test
227
+ AWS_SECRET_ACCESS_KEY : test
228
+ AWS_ENDPOINT_URL : http://localhost:4566
229
+ AWS_REGION : us-east-1
230
+ AWS_S3_ENABLED : false
231
+ AWS_S3_BUCKET_NAME : fuel-streams-local
232
+ STORAGE_MAX_RETRIES : 5
225
233
services :
226
234
postgres :
227
235
image : postgres:17
@@ -276,16 +284,19 @@ jobs:
276
284
PGPASSWORD=postgres psql -h localhost -U postgres -c "DROP DATABASE IF EXISTS fuel_test;"
277
285
PGPASSWORD=postgres psql -h localhost -U postgres -c "CREATE DATABASE fuel_test;"
278
286
279
- - name : Run NATS
287
+ - name : Run services
280
288
run : |
281
289
make start-nats
290
+ make start-s3
282
291
make setup-db
283
292
284
293
- name : Run tests
285
294
run : make test PACKAGE=${{ matrix.package }} PROFILE=ci
286
295
287
- - name : Stop NATS
288
- run : make stop-nats
296
+ - name : Stop services
297
+ run : |
298
+ make stop-nats
299
+ make stop-s3
289
300
290
301
build :
291
302
needs : install-deps
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
appVersion : " 1.0"
3
3
description : A Helm chart for Kubernetes
4
4
name : fuel-streams
5
- version : 0.11.0
5
+ version : 0.11.1
6
6
dependencies :
7
7
- name : nats
8
8
version : 1.3.2
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ kind: CronJob
9
9
metadata :
10
10
{{- include "k8s.resource-metadata" $serviceDict | nindent 2 }}
11
11
spec :
12
- schedule : {{ $cronjob.schedule }}
12
+ schedule : {{ $cronjob.schedule | quote }}
13
13
concurrencyPolicy : {{ $cronjob.concurrencyPolicy }}
14
14
successfulJobsHistoryLimit : {{ $cronjob.successfulJobsHistoryLimit }}
15
15
failedJobsHistoryLimit : {{ $cronjob.failedJobsHistoryLimit }}
Original file line number Diff line number Diff line change 1
1
# Test suite for Dune CronJob
2
- suite : test dune cronjob
2
+ suite : Testing Dune CronJob
3
3
templates :
4
4
- dune/cronjob.yaml
5
5
tests :
9
9
dune :
10
10
enabled : true
11
11
cronjob :
12
- schedule : " */5 * * * *"
12
+ schedule : " */15 * * * *"
13
13
concurrencyPolicy : " Forbid"
14
14
successfulJobsHistoryLimit : 3
15
15
failedJobsHistoryLimit : 1
21
21
value : RELEASE-NAME-fuel-streams-dune
22
22
- equal :
23
23
path : spec.schedule
24
- value : " */5 * * * *"
24
+ value : " */15 * * * *"
25
25
- equal :
26
26
path : spec.concurrencyPolicy
27
27
value : " Forbid"
47
47
- hasDocuments :
48
48
count : 0
49
49
50
- # Test 3: Verify container configuration
51
50
- it : should configure container correctly
52
51
set :
53
52
dune.enabled : true
@@ -58,11 +57,14 @@ tests:
58
57
name : " dune-state"
59
58
mountPath : " /data/dune"
60
59
asserts :
61
- - contains :
62
- path : spec.jobTemplate.spec.template.spec.containers[0].args
60
+ - isSubset :
61
+ path : spec.jobTemplate.spec.template.spec.containers[0]
63
62
content :
64
- - " --network"
65
- - " mainnet"
63
+ args :
64
+ - --network
65
+ - mainnet
66
+ - --storage-file-dir
67
+ - /data/dune
66
68
- contains :
67
69
path : spec.jobTemplate.spec.template.spec.containers[0].volumeMounts
68
70
content :
Original file line number Diff line number Diff line change @@ -282,7 +282,6 @@ pub mod tests {
282
282
result. header_state_transition_bytecode_version,
283
283
expected. header_state_transition_bytecode_version
284
284
) ;
285
- assert_eq ! ( result. header_time, expected. header_time) ;
286
285
assert_eq ! (
287
286
result. header_transactions_count,
288
287
expected. header_transactions_count
Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ mod tests {
176
176
assert_eq ! ( result. tx_index, expected. tx_index) ;
177
177
assert_eq ! ( result. input_index, expected. input_index) ;
178
178
assert_eq ! ( result. r#type, expected. r#type) ;
179
- assert_eq ! ( result. block_time, expected. block_time) ;
180
179
assert_eq ! ( result. owner_id, expected. owner_id) ;
181
180
assert_eq ! ( result. sender_address, expected. sender_address) ;
182
181
assert_eq ! ( result. recipient_address, expected. recipient_address) ;
You can’t perform that action at this time.
0 commit comments