Skip to content

Commit 7556972

Browse files
committed
chore: fix integration_tests.sh
Signed-off-by: Trong Nhan Mai <[email protected]>
1 parent c06dbd9 commit 7556972

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

scripts/dev_scripts/integration_tests.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -429,18 +429,6 @@ then
429429
log_fail
430430
fi
431431

432-
echo -e "\n----------------------------------------------------------------------------------"
433-
echo "slsa-framework/slsa-verifier: Analyzing the repo path when automatic dependency resolution is skipped"
434-
echo "and provenance checks are excluded."
435-
echo -e "----------------------------------------------------------------------------------\n"
436-
JSON_RESULT=$WORKSPACE/output/reports/github.com/slsa-framework/slsa-verifier/slsa-verifier.json
437-
JSON_EXPECTED=$WORKSPACE/tests/e2e/expected_results/slsa-verifier/slsa-verifier_provenance_checks_excluded.json
438-
DEFAULTS_FILE=$WORKSPACE/tests/e2e/configurations/exclude_provenance_checks.ini
439-
440-
$RUN_MACARON -dp $DEFAULTS_FILE analyze -rp https://github.com/slsa-framework/slsa-verifier -b main -d fc50b662fcfeeeb0e97243554b47d9b20b14efac --skip-deps || log_fail
441-
442-
$COMPARE_JSON_OUT $JSON_RESULT $JSON_EXPECTED || log_fail
443-
444432
# Testing the CUE provenance expectation verifier.
445433
echo -e "\n----------------------------------------------------------------------------------"
446434
echo "Test verifying CUE provenance expectation."
@@ -473,6 +461,18 @@ POLICY_FILE=$WORKSPACE/tests/policy_engine/resources/policies/valid/slsa-verifie
473461
POLICY_RESULT=$WORKSPACE/output/policy_report.json
474462
POLICY_EXPECTED=$WORKSPACE/tests/policy_engine/expected_results/policy_report.json
475463

464+
echo -e "\n----------------------------------------------------------------------------------"
465+
echo "slsa-framework/slsa-verifier: Analyzing the repo path when automatic dependency resolution is skipped"
466+
echo "and provenance checks are excluded."
467+
echo -e "----------------------------------------------------------------------------------\n"
468+
JSON_RESULT=$WORKSPACE/output/reports/github.com/slsa-framework/slsa-verifier/slsa-verifier.json
469+
JSON_EXPECTED=$WORKSPACE/tests/e2e/expected_results/slsa-verifier/slsa-verifier_provenance_checks_excluded.json
470+
DEFAULTS_FILE=$WORKSPACE/tests/e2e/configurations/exclude_provenance_checks.ini
471+
472+
$RUN_MACARON -dp $DEFAULTS_FILE analyze -rp https://github.com/slsa-framework/slsa-verifier -b main -d fc50b662fcfeeeb0e97243554b47d9b20b14efac --skip-deps || log_fail
473+
474+
$COMPARE_JSON_OUT $JSON_RESULT $JSON_EXPECTED || log_fail
475+
476476
# Run policy engine on the database and compare results.
477477
$RUN_POLICY -f $POLICY_FILE -d "$WORKSPACE/output/macaron.db" || log_fail
478478
python $COMPARE_POLICIES $POLICY_RESULT $POLICY_EXPECTED || log_fail

0 commit comments

Comments
 (0)