You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: We want a way to verify nginx configuration reliably in our tests. This is especially useful when introducing new policies, without the desire for testing nginx functionality directly.
Solution: Added a framework for getting the nginx config and passing through crossplane into a structured JSON format for easier parsing.
Because we now use a local container for crossplane in our functional tests, we'll only support running these tests in a kind cluster.
setup-gcp-and-run-tests: create-gke-router create-and-setup-vm run-tests-on-vm ## Create and setup a GKE router and GCP VM for tests and run the functional tests
85
-
86
88
.PHONY: setup-gcp-and-run-nfr-tests
87
89
setup-gcp-and-run-nfr-tests: create-gke-router create-and-setup-vm nfr-test ## Create and setup a GKE router and GCP VM for tests and run the NFR tests
88
90
@@ -102,13 +104,9 @@ create-gke-router: ## Create a GKE router to allow egress traffic from private n
102
104
sync-files-to-vm: ## Syncs your local NGF files with the NGF repo on the VM
103
105
./scripts/sync-files-to-vm.sh
104
106
105
-
.PHONY: run-tests-on-vm
106
-
run-tests-on-vm: ## Run the functional tests on a GCP VM
107
-
./scripts/run-tests-gcp-vm.sh
108
-
109
107
.PHONY: nfr-test
110
108
nfr-test: ## Run the NFR tests on a GCP VM
111
-
NFR=true CI=$(CI) ./scripts/run-tests-gcp-vm.sh
109
+
CI=$(CI) ./scripts/run-tests-gcp-vm.sh
112
110
113
111
.PHONY: start-longevity-test
114
112
start-longevity-test: export START_LONGEVITY=true
@@ -130,7 +128,8 @@ stop-longevity-test: nfr-test ## Stop the longevity test and collects results
130
128
--is-gke-internal-lb=$(GW_SVC_GKE_INTERNAL)
131
129
132
130
.PHONY: test
133
-
test: ## Runs the functional tests on your default k8s cluster
131
+
test: build-crossplane-image ## Runs the functional tests on your kind k8s cluster
0 commit comments