Skip to content

Commit

Permalink
test: update e2e CLI 2
Browse files Browse the repository at this point in the history
Signed-off-by: Juncheng Zhu <[email protected]>
  • Loading branch information
junczhu committed Dec 12, 2024
1 parent d3a1302 commit c4d46c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/generate-crl-testing-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# - certchain_with_crl.pem: the fullchain file that includes the leaf
# certificate with CRL, intermediate certificate with invalid OCSP and valid
# CRL, and the root certificate.
# - leaf.crl: the CRL file that includes the revoked leaf certificate.
# - leaf.crl: the CRL file that includes the leaf certificate.
# - leaf.key: the private key of the leaf certificate.
# - leaf_revoked.crl: the CRL file that includes the revoked leaf certificate.
# - intermediate.crl: the CRL file that includes the intermediate certificate.
Expand Down
2 changes: 1 addition & 1 deletion test/bats/cli-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ load helpers
}

@test "notation verifier crl test" {
python3 ./scripts/crl_server.py & CRL_SERVER_PID = $(shell $!)
CRL_SERVER_PID = run_crl_server

run bin/ratify verify -c $RATIFY_DIR/config_notation_crl.json -s $TEST_REGISTRY/notation:crl
assert_cmd_verify_success
Expand Down
5 changes: 5 additions & 0 deletions test/bats/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,8 @@ wait_for_process() {
done
return 1
}

run_crl_server() {
python3 ./scripts/crl_server.py & CRL_SERVER_PID=$!
return $CRL_SERVER_PID
}

0 comments on commit c4d46c5

Please sign in to comment.