Skip to content

Commit

Permalink
cleanup: fix test path
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
ckotzbauer committed Jun 7, 2022
1 parent 6bbc756 commit 1be4839
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ vet:
go vet ./...

test:
go test $(shell go list ./... | grep -v sbom-operator/internal/registry | grep -v sbom-operator/internal/target) -coverprofile cover.out
go test $(shell go list ./... | grep -v sbom-operator/internal/registry | grep -v sbom-operator/internal/target/oci) -coverprofile cover.out

test-integration:
bash internal/target/oci/fixtures/oci-test.sh $(REGISTRY_USER) $(REGISTRY_TOKEN)
Expand Down
2 changes: 1 addition & 1 deletion internal/target/oci/fixtures/oci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ docker push ghcr.io/ckotzbauer/sbom-operator/oci-test:${DATE}
DIGEST=$(docker inspect ghcr.io/ckotzbauer/sbom-operator/oci-test:${DATE} --format='{{index .RepoDigests 0}}')

syft registry:${DIGEST} -o json > internal/target/oci/fixtures/sbom.json
TEST_DIGEST="${DIGEST}" REGISTRY_USER="${1}" REGISTRY_TOKEN="${2}" go test github.com/ckotzbauer/sbom-operator/internal/target -coverprofile cover-oci.out
TEST_DIGEST="${DIGEST}" REGISTRY_USER="${1}" REGISTRY_TOKEN="${2}" go test github.com/ckotzbauer/sbom-operator/internal/target/oci -coverprofile cover-oci.out

COSIGN_REPOSITORY="ghcr.io/ckotzbauer/sbom-operator/oci-test" cosign download sbom ${DIGEST}

0 comments on commit 1be4839

Please sign in to comment.