Skip to content

Commit

Permalink
Merge pull request #128 from JasonPowr/fix-unit-tests
Browse files Browse the repository at this point in the history
fix: fix unit tests
  • Loading branch information
JasonPowr authored Feb 20, 2024
2 parents 2a42171 + 7298730 commit c80a538
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .tekton/cosign-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ spec:
- name: name
value: go-unit-test
- name: bundle
value: quay.io/securesign/cosign-unit-test@sha256:b1cd15a9eacc469572937c92b7fe95f5bcd4ae6f2af7c9d2db0b2f89988e2ac0
value: quay.io/securesign/cosign-unit-test@sha256:1831f2702e3f124d988dabcde8fd943f73b3d286e7f0c00b87ebe6b89e929ff1
- name: kind
value: task
resolver: bundles
Expand All @@ -397,6 +397,12 @@ spec:
- name: git-auth
optional: true
taskRunTemplate: {}
taskRunSpecs:
- pipelineTaskName: run-unit-test
serviceAccountName: appstudio-pipeline
podTemplate:
imagePullSecrets:
- name: brew-registry-pull-secret
workspaces:
- name: workspace
volumeClaimTemplate:
Expand Down
8 changes: 7 additions & 1 deletion .tekton/cosign-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ spec:
- name: name
value: go-unit-test
- name: bundle
value: quay.io/securesign/cosign-unit-test@sha256:b1cd15a9eacc469572937c92b7fe95f5bcd4ae6f2af7c9d2db0b2f89988e2ac0
value: quay.io/securesign/cosign-unit-test@sha256:1831f2702e3f124d988dabcde8fd943f73b3d286e7f0c00b87ebe6b89e929ff1
- name: kind
value: task
resolver: bundles
Expand All @@ -394,6 +394,12 @@ spec:
- name: git-auth
optional: true
taskRunTemplate: {}
taskRunSpecs:
- pipelineTaskName: run-unit-test
serviceAccountName: appstudio-pipeline
podTemplate:
imagePullSecrets:
- name: brew-registry-pull-secret
workspaces:
- name: workspace
volumeClaimTemplate:
Expand Down
5 changes: 3 additions & 2 deletions .tekton/cosign-unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ spec:
- name: source
steps:
- name: run-tests
image: registry.access.redhat.com/ubi9/go-toolset@sha256:c3a9c5c7fb226f6efcec2424dd30c38f652156040b490c9eca5ac5b61d8dc3ca
image: brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.21@sha256:98a0ff138c536eee98704d6909699ad5d0725a20573e2c510a60ef462b45cce0
workingDir: $(workspaces.source.path)/source
script: |
#!/usr/bin/env sh
go mod vendor
go test ./...
# This file bundles the unit tests for cosign.
# If any changes are made to this file, it must be pushed to Quay using the following command:
# 'tkn bundle push quay.io/securesign/cosign-unit-test:latest -f .tekton/cosign-unit-test.yaml'.
# 'tkn bundle push quay.io/securesign/cosign-unit-test:latest-GA -f .tekton/cosign-unit-test.yaml'.

0 comments on commit c80a538

Please sign in to comment.