Skip to content

Commit 3f48057

Browse files
author
Clément Turmel
committed
ci(test): display custom error message if tampered/missing verification fails
1 parent b25e136 commit 3f48057

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test-client.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ jobs:
288288
echo "tampered outside verification range" > v2/db/immutable/00012.chunk
289289
./mithril-client ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db verify --end 10 --backend v2 --db-dir v2/db $CARDANO_DATABASE_V2_SNAPSHOT_HASH
290290
# Check missing files in immutables_verification_error-*.json
291-
jq -r '.["missing-files"] | sort | @csv' immutables_verification_error-*.json | grep -qx '"00007.chunk","00007.primary","00007.secondary"'
291+
jq -r '.["missing-files"] | sort | @csv' immutables_verification_error-*.json | grep -qx '"00007.chunk","00007.primary","00007.secondary"' || { echo "missing-files array does not match expected values!"; exit 1; }
292292
# Check tampered files in immutables_verification_error-*.json
293-
jq -r '.["tampered-files"] | sort | @csv' immutables_verification_error-*.json | grep -qx '"00005.chunk","00009.primary"'
293+
jq -r '.["tampered-files"] | sort | @csv' immutables_verification_error-*.json | grep -qx '"00005.chunk","00009.primary"' || { echo "tampered-files array does not match expected values!"; exit 1; }
294294
295295
test-docker:
296296
strategy:

0 commit comments

Comments
 (0)