@@ -205,7 +205,7 @@ jobs:
205
205
run : podman load -i /tmp/operator-oci.tar
206
206
207
207
- name : Install Cluster
208
- uses : ./.github/workflows/ actions/kind-cluster
208
+ uses : ./.github/actions/kind-cluster
209
209
with :
210
210
config : ./ci/config.yaml
211
211
prometheus : ' true'
@@ -286,7 +286,7 @@ jobs:
286
286
podman load -i /tmp/catalog-oci.tar
287
287
288
288
- name : Install Cluster
289
- uses : ./.github/workflows/ actions/kind-cluster
289
+ uses : ./.github/actions/kind-cluster
290
290
with :
291
291
config : ./ci/config.yaml
292
292
prometheus : ' true'
@@ -356,7 +356,7 @@ jobs:
356
356
run : podman load -i /tmp/operator-oci.tar
357
357
358
358
- name : Install Cluster
359
- uses : ./.github/workflows/ actions/kind-cluster
359
+ uses : ./.github/actions/kind-cluster
360
360
with :
361
361
config : ./ci/config.yaml
362
362
@@ -382,18 +382,19 @@ jobs:
382
382
383
383
test-e2e :
384
384
name : Execute securesign/sigstore-e2e
385
- runs-on : ubuntu-20 .04
385
+ runs-on : ubuntu-24 .04
386
386
needs :
387
- - build-fbc
387
+ - build-operator
388
+ env :
389
+ TEST_NAMESPACE : test
388
390
steps :
389
- - name : Free Disk Space (Ubuntu)
390
- uses : jlumbroso/free-disk-space@main
391
- with :
392
- tool-cache : true
393
391
- name : Checkout source
394
392
uses : actions/checkout@v4
393
+ - name : Checkout test source repository
394
+ uses : actions/checkout@v4
395
395
with :
396
396
repository : " securesign/sigstore-e2e"
397
+ path : e2e
397
398
398
399
- name : Install Go
399
400
uses : actions/setup-go@v5
@@ -421,35 +422,56 @@ jobs:
421
422
- name : Load images
422
423
run : |
423
424
podman load -i /tmp/operator-oci.tar
424
- podman load -i /tmp/bundle-oci.tar
425
- podman load -i /tmp/catalog-oci.tar
426
425
427
426
- name : Install Cluster
428
- uses : ./.github/workflows/actions/kind-cluster
427
+ id : kind
428
+ uses : ./.github/actions/kind-cluster
429
429
with :
430
430
config : ./ci/config.yaml
431
431
keycloak : ' true'
432
432
olm : ' true'
433
+ prometheus : ' true'
433
434
434
435
- name : Add service hosts to /etc/hosts
435
436
run : |
436
437
sudo echo "127.0.0.1 fulcio-server.local tuf.local rekor-server.local rekor-search-ui.local cli-server.local" | sudo tee -a /etc/hosts
437
438
438
- - name : Install operator
439
- run :
440
-
441
- - name : Run tests
439
+ - name : Deploy operator container
442
440
env :
443
- TEST_MANAGER_IMAGE : ${{ env.IMG }}
444
441
OPENSHIFT : false
445
- run : make install && go test ./test/e2e/... -tags=custom_install -p 1 -timeout 20m
442
+ run : make deploy
446
443
447
- - name : Archive test artifacts
448
- uses : actions/upload-artifact@v4
449
- if : always()
450
- with :
451
- name : test-custom-install
452
- path : test/**/k8s-dump-*.tar.gz
444
+ - name : Wait for operator to be ready
445
+ run : |
446
+ kubectl wait --for=condition=available deployment/rhtas-operator-controller-manager --timeout=120s -n openshift-rhtas-operator
447
+
448
+ - name : Install securesign
449
+ run : |
450
+ sed -i 's#https://your-oidc-issuer-url#${{ steps.kind.outputs.oidc_url }}#' config/samples/rhtas_v1alpha1_securesign.yaml
451
+ sed -i 's#rhtas.redhat.com/metrics: "true"#rhtas.redhat.com/metrics: "false"#' config/samples/rhtas_v1alpha1_securesign.yaml
452
+ kubectl create ns ${{ env.TEST_NAMESPACE }}
453
+ kubectl create -f config/samples/rhtas_v1alpha1_securesign.yaml -n ${{ env.TEST_NAMESPACE }}
454
+ sleep 1
455
+ kubectl wait --for=condition=Ready securesign/securesign-sample -n ${{ env.TEST_NAMESPACE }}
456
+
457
+ - name : Run tests
458
+ run : |
459
+ export SIGSTORE_OIDC_ISSUER=${{ steps.kind.outputs.oidc_url }}
460
+ export FULCIO_URL=$(kubectl get securesign -o jsonpath='{.items[0].status.fulcio.url}' -n ${{ env.TEST_NAMESPACE }})
461
+ export REKOR_URL=$(kubectl get securesign -o jsonpath='{.items[0].status.rekor.url}' -n ${{ env.TEST_NAMESPACE }})
462
+ export TUF_URL=$(kubectl get securesign -o jsonpath='{.items[0].status.tuf.url}' -n ${{ env.TEST_NAMESPACE }})
463
+ export TSA_URL=$(kubectl get securesign -o jsonpath='{.items[0].status.tsa.url}' -n ${{ env.TEST_NAMESPACE }})
464
+
465
+ export CLI_STRATEGY=cli_server
466
+ export CLI_SERVER_URL="http://cli-server.local"
467
+
468
+ cd e2e
469
+ go test -v ./test/...
470
+
471
+ - name : dump the logs of the operator
472
+ run : |
473
+ kubectl logs -n openshift-rhtas-operator deployment/rhtas-operator-controller-manager
474
+ if : failure()
453
475
454
476
test-eks :
455
477
name : Test EKS deployment
0 commit comments