Skip to content

Commit

Permalink
update cleanup commands
Browse files Browse the repository at this point in the history
  • Loading branch information
susanshi committed Oct 17, 2023
1 parent 7312b94 commit a520e42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/bats/base-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ RATIFY_NAMESPACE=gatekeeper-system
wait_for_process ${WAIT_TIME} ${SLEEP_TIME} 'kubectl delete pod demo1 --namespace default --force --ignore-not-found=true'

# restore cert store in ratify namespace
run kubectl get certificatestores.config.ratify.deislabs.io/ratify-notation-inline-cert -o yaml -n default
run kubectl apply -n {RATIFY_NAMESPACE} -f -
run kubectl get certificatestores.config.ratify.deislabs.io/ratify-notation-inline-cert -o yaml -n default > currentCertStore.yaml
run kubectl delete certificatestores.config.ratify.deislabs.io/ratify-notation-inline-cert -n default
run kubectl apply -n {RATIFY_NAMESPACE} -f currentCertStore.yaml

# restore the original notation verifier for other tests
wait_for_process ${WAIT_TIME} ${SLEEP_TIME} 'kubectl apply -f ./config/samples/config_v1beta1_verifier_notation.yaml'
Expand All @@ -29,8 +29,8 @@ RATIFY_NAMESPACE=gatekeeper-system
sleep 5

# apply the certstore to default namespace
run kubectl get certificatestores.config.ratify.deislabs.io/ratify-notation-inline-cert -o yaml -n {RATIFY_NAMESPACE}
run kubectl apply -n default -f -
run kubectl get certificatestores.config.ratify.deislabs.io/ratify-notation-inline-cert -o yaml -n {RATIFY_NAMESPACE} > currentCertStore.yaml
run kubectl apply -n default -f currentCertStore.yaml
run kubectl delete certificatestores.config.ratify.deislabs.io/ratify-notation-inline-cert -n {RATIFY_NAMESPACE}

# configure the notation verifier to use inline certificate store with specific namespace
Expand Down

0 comments on commit a520e42

Please sign in to comment.