Skip to content

Commit

Permalink
chore: removed old yaml test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
puffitos committed Sep 29, 2023
1 parent 8c38ae9 commit 7a564b6
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 374 deletions.
39 changes: 24 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
#############
### TESTS ###
#############
.PHONY: test-e2e
test-e2e:
@echo "Running e2e tests..."
@go test -v -race -count 1 ./test/

test-cleanup:
@echo "Cleaning up..."
@helm uninstall cosignwebhook -n cosignwebhook
@k3d registry delete k3d-registry.localhost
@k3d cluster delete cosign-tests

.PHONY: test-unit
test-unit:
@echo "Running unit tests..."
@go test -v -race -count 1 ./webhook/

###########
### E2E ###
###########

e2e-cluster:
@echo "Creating registry..."
@k3d registry create registry.localhost --port 5000
Expand Down Expand Up @@ -44,18 +67,4 @@ e2e-deploy:
--set logLevel=debug \
--wait --debug

.PHONY: test-e2e
test-e2e:
@echo "Running e2e tests..."
@go test -v -race -count 1 ./test/

.PHONY: test-unit
test-unit:
@echo "Running unit tests..."
@go test -v -race -count 1 ./webhook/

test-cleanup:
@echo "Cleaning up..."
@helm uninstall cosignwebhook -n cosignwebhook
@k3d registry delete k3d-registry.localhost
@k3d cluster delete cosign-tests
e2e-prep: e2e-cluster e2e-keys e2e-images e2e-deploy
26 changes: 0 additions & 26 deletions test/cases/fail-1.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions test/cases/fail-2.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions test/cases/fail-3.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions test/cases/fail-4.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions test/cases/ok-1.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions test/cases/ok-2.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions test/cases/ok-3.yaml

This file was deleted.

45 changes: 0 additions & 45 deletions test/cases/ok-4.yaml

This file was deleted.

45 changes: 0 additions & 45 deletions test/cases/ok-5.yaml

This file was deleted.

Loading

0 comments on commit 7a564b6

Please sign in to comment.