Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
akashsinghal committed Mar 26, 2024
1 parent 9ee49f9 commit 5da61c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/bats/base-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ RATIFY_NAMESPACE=gatekeeper-system

@test "validate inline key management provider with inline certificate store" {
# this test validates that if a key management provider and certificate store are both configured with the same name,
# the certificate store will take precedence and continue to work as expected
# the key management provider will take precedence and continue to work as expected
teardown() {
echo "cleaning up"
wait_for_process ${WAIT_TIME} ${SLEEP_TIME} 'kubectl delete pod demo --namespace default --force --ignore-not-found=true'
Expand All @@ -364,9 +364,9 @@ RATIFY_NAMESPACE=gatekeeper-system
# validate key management provider status property shows success
run bash -c "kubectl get certificatestores.config.ratify.deislabs.io/ratify-notation-inline-cert-0 -n ${RATIFY_NAMESPACE} -o yaml | grep 'issuccess: true'"
assert_success
# verification should fail as the certificate store will take precedence over the key management provider
# verification should succeed as the existing KMP will take precedence over the new certificate store
run kubectl run demo1 --namespace default --image=registry:5000/notation:signed
assert_failure
assert_success

}

Expand Down

0 comments on commit 5da61c3

Please sign in to comment.