@@ -85,20 +85,29 @@ kubectl -n source-system apply -f "${ROOT_DIR}/config/testdata/helmchart-from-oc
8585kubectl -n source-system wait helmchart/podinfo --for=condition=ready --timeout=1m
8686kubectl -n source-system wait helmchart/podinfo-keyless --for=condition=ready --timeout=1m
8787
88+ kubectl -n source-system apply -f " ${ROOT_DIR} /config/testdata/helmchart-from-oci/cosign-v3.yaml"
89+ kubectl -n source-system wait helmchart/podinfo-cosign-v3-keyless --for=condition=ready --timeout=1m
90+
8891kubectl -n source-system apply -f " ${ROOT_DIR} /config/testdata/helmchart-from-oci/notation.yaml"
8992curl -sSLo notation.crt https://raw.githubusercontent.com/stefanprodan/podinfo/master/.notation/notation.crt
9093curl -sSLo trustpolicy.json https://raw.githubusercontent.com/stefanprodan/podinfo/master/.notation/trustpolicy.json
9194kubectl -n source-system create secret generic notation-config --from-file=notation.crt --from-file=trustpolicy.json --dry-run=client -o yaml | kubectl apply -f -
9295kubectl -n source-system wait helmchart/podinfo-notation --for=condition=ready --timeout=1m
9396
9497echo " Run OCIRepository verify tests"
95- kubectl -n source-system apply -f " ${ROOT_DIR} /config/testdata/ocirepository/signed-with-key.yaml"
96- kubectl -n source-system apply -f " ${ROOT_DIR} /config/testdata/ocirepository/signed-with-keyless.yaml"
98+ kubectl -n source-system apply -f " ${ROOT_DIR} /config/testdata/ocirepository/signed-with-cosign-v2-key.yaml"
99+ kubectl -n source-system apply -f " ${ROOT_DIR} /config/testdata/ocirepository/signed-with-cosign-v2-keyless.yaml"
100+ kubectl -n source-system apply -f " ${ROOT_DIR} /config/testdata/ocirepository/signed-with-cosign-v3-key.yaml"
101+ kubectl -n source-system apply -f " ${ROOT_DIR} /config/testdata/ocirepository/signed-with-cosign-v3-keyless.yaml"
97102curl -sSLo cosign.pub https://raw.githubusercontent.com/stefanprodan/podinfo/master/.cosign/cosign.pub
98103kubectl -n source-system create secret generic cosign-key --from-file=cosign.pub --dry-run=client -o yaml | kubectl apply -f -
104+ curl -sSLo cosign-testing.pub https://raw.githubusercontent.com/fluxcd-testing/cosign-testing/main/cosign.pub
105+ kubectl -n source-system create secret generic cosign-testing-key --from-file=cosign-testing.pub --dry-run=client -o yaml | kubectl apply -f -
99106
100- kubectl -n source-system wait ocirepository/podinfo-deploy-signed-with-key --for=condition=ready --timeout=1m
101- kubectl -n source-system wait ocirepository/podinfo-deploy-signed-with-keyless --for=condition=ready --timeout=1m
107+ kubectl -n source-system wait ocirepository/podinfo-deploy-signed-with-v2-key --for=condition=ready --timeout=1m
108+ kubectl -n source-system wait ocirepository/podinfo-deploy-signed-with-v2-keyless --for=condition=ready --timeout=1m
109+ kubectl -n source-system wait ocirepository/podinfo-deploy-signed-with-v3-key --for=condition=ready --timeout=1m
110+ kubectl -n source-system wait ocirepository/podinfo-deploy-signed-with-v3-keyless --for=condition=ready --timeout=1m
102111
103112kubectl -n source-system apply -f " ${ROOT_DIR} /config/testdata/ocirepository/signed-with-notation.yaml"
104113kubectl -n source-system wait ocirepository/podinfo-deploy-signed-with-notation --for=condition=ready --timeout=1m
0 commit comments