Skip to content

Commit

Permalink
test: update e2e script 4
Browse files Browse the repository at this point in the history
Signed-off-by: Juncheng Zhu <[email protected]>
  • Loading branch information
junczhu committed Dec 9, 2024
1 parent c2615b0 commit 31e37ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ test:
clean:
go clean
rm ./bin/${BINARY_NAME}

clean-crl-server:
$(shell echo "Stopping CRL server..." && kill ${CRL_SERVER_PID})

.PHONY: deploy-demo
deploy-demo: deploy-gatekeeper deploy-ratify deploy-demo-constraints
Expand Down
4 changes: 4 additions & 0 deletions test/bats/cli-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ load helpers
@test "notation verifier crl test" {
run bin/ratify verify -c $RATIFY_DIR/config_notation_crl.json -s $TEST_REGISTRY/notation:crl
assert_cmd_verify_success

$(shell echo "Stopping CRL server..." && kill ${CRL_SERVER_PID})
run bin/ratify verify -c $RATIFY_DIR/config_notation_crl.json -s $TEST_REGISTRY/notation:crl
assert_cmd_verify_failure
}

@test "notation verifier with type test" {
Expand Down
2 changes: 1 addition & 1 deletion test/bats/tests/config/config_notation_crl.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"*"
],
"signatureVerification": {
"level": "audit"
"level": "strict"
},
"trustStores": [
"ca:certs"
Expand Down

0 comments on commit 31e37ae

Please sign in to comment.