Skip to content

Commit

Permalink
test: add k8s e2e scenarios 2
Browse files Browse the repository at this point in the history
  • Loading branch information
junczhu committed Aug 25, 2024
1 parent e8770ec commit 870f20a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/bats/base-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ RATIFY_NAMESPACE=gatekeeper-system
wait_for_process ${WAIT_TIME} ${SLEEP_TIME} 'kubectl delete pod demo-tsa --namespace default --force --ignore-not-found=true'

sed -i '10,$d' ./test/bats/tests/config/config_v1beta1_keymanagementprovider_inline.yaml
run kubectl apply -f ./test/bats/tests/config/config_v1beta1_verifier_notation_kmprovider.yaml

# restore the original notation verifier for other tests
wait_for_process ${WAIT_TIME} ${SLEEP_TIME} 'kubectl apply -f ./config/samples/clustered/verifier/config_v1beta1_verifier_notation.yaml'
}

# add the tsaroot certificate as an inline key management provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ spec:
artifactTypes: application/vnd.cncf.notary.signature
parameters:
verificationCertStores:
ca:
ca-certs:
- certstore-inline
tsa:
tsa-certs:
- keymanagementprovider-inline
- keymanagementprovider-inline
trustPolicyDoc:
version: "1.0"
trustPolicies:
Expand All @@ -19,6 +22,7 @@ spec:
signatureVerification:
level: strict
trustStores:
- ca:ca-certs
- tsa:tsa-certs
trustedIdentities:
- "*"

0 comments on commit 870f20a

Please sign in to comment.