@@ -26,6 +26,9 @@ build: build-interceptor build-cadctl build-template-updater ## Build all subpro
26
26
.PHONY : lint
27
27
lint : lint-cadctl lint-interceptor lint-template-updater # # Lint all subprojects
28
28
29
+ .PHONY : test
30
+ test : test-cadctl test-interceptor
31
+
29
32
# #@ cadctl:
30
33
.PHONY : cadctl
31
34
cadctl : generate-cadctl build-cadctl test-cadctl lint-cadctl generate-template-file # # Run all targets for cadctl (generate, build, test, lint, generation)
@@ -54,7 +57,7 @@ test-cadctl: check-go121-install ## Run automated tests for cadctl
54
57
55
58
# #@ Interceptor:
56
59
.PHONY : interceptor
57
- interceptor : build-interceptor test-interceptor lint-interceptor # # Run all targets for interceptor (build, test, lint)
60
+ interceptor : build-interceptor test-interceptor test-interceptor-e2e lint-interceptor # # Run all targets for interceptor (build, test, lint)
58
61
59
62
.PHONY : build-interceptor
60
63
build-interceptor : check-go121-install # # Build the interceptor binary
@@ -69,10 +72,13 @@ lint-interceptor: install-linter ## Lint interceptor subproject
69
72
cd interceptor && GOLANGCI_LINT_CACHE=$$(mktemp -d ) $(GOPATH ) /bin/golangci-lint run -c ../.golangci.yml
70
73
71
74
.PHONY : test-interceptor
72
- test-interceptor : check-go121-install check-jq-install check-vault-install build-interceptor # # Run automated tests for interceptor
75
+ test-interceptor : check-go121-install check-jq-install build-interceptor # # Run unit tests for interceptor
73
76
@echo
74
77
@echo " Running unit tests for interceptor..."
75
78
cd interceptor && go test -race -mod=readonly ./...
79
+
80
+ .PHONY : test-interceptor-e2e
81
+ test-interceptor-e2e : check-go121-install check-jq-install check-vault-install build-interceptor # # Run e2e tests for interceptor
76
82
@echo
77
83
@echo " Running e2e tests for interceptor..."
78
84
cd interceptor && ./test/e2e.sh
0 commit comments