sigs.k8s.io/cluster-api-provider-azure@v1.14.3/e2e.mk (about) 1 # e2e.mk 2 # Make configuration that effects E2E behaviors should go in here, 3 # to allow us to maintain the core Makefile without having to execute 4 # long-running E2E jobs every time that file changes 5 6 ##@ E2E Testing: 7 8 .PHONY: test-e2e-run 9 test-e2e-run: generate-e2e-templates install-tools kind-create-bootstrap ## Run e2e tests. 10 $(ENVSUBST) < $(E2E_CONF_FILE) > $(E2E_CONF_FILE_ENVSUBST) && \ 11 $(GINKGO) -v --trace --timeout=4h --tags=e2e --focus="$(GINKGO_FOCUS)" --skip="$(GINKGO_SKIP)" --nodes=$(GINKGO_NODES) --no-color=$(GINKGO_NOCOLOR) --output-dir="$(ARTIFACTS)" --junit-report="junit.e2e_suite.1.xml" $(GINKGO_ARGS) ./test/e2e -- \ 12 -e2e.artifacts-folder="$(ARTIFACTS)" \ 13 -e2e.config="$(E2E_CONF_FILE_ENVSUBST)" \ 14 -e2e.skip-log-collection="$(SKIP_LOG_COLLECTION)" \ 15 -e2e.skip-resource-cleanup=$(SKIP_CLEANUP) -e2e.use-existing-cluster=$(SKIP_CREATE_MGMT_CLUSTER) $(E2E_ARGS) 16 $(MAKE) clean-release-git 17 18 .PHONY: test-e2e 19 test-e2e: ## Run "docker-build" and "docker-push" rules then run e2e tests. 20 PULL_POLICY=IfNotPresent MANAGER_IMAGE=$(CONTROLLER_IMG)-$(ARCH):$(TAG) \ 21 $(MAKE) docker-build docker-push \ 22 test-e2e-run 23 24 .PHONY: test-e2e-skip-push 25 test-e2e-skip-push: ## Run "docker-build" rule then run e2e tests. 26 PULL_POLICY=IfNotPresent MANAGER_IMAGE=$(CONTROLLER_IMG)-$(ARCH):$(TAG) \ 27 $(MAKE) docker-build \ 28 test-e2e-run 29 30 .PHONY: test-e2e-skip-build-and-push 31 test-e2e-skip-build-and-push: 32 $(MAKE) set-manifest-image MANIFEST_IMG=$(CONTROLLER_IMG)-$(ARCH) MANIFEST_TAG=$(TAG) TARGET_RESOURCE="./config/capz/manager_image_patch.yaml" 33 $(MAKE) set-manifest-pull-policy TARGET_RESOURCE="./config/capz/manager_pull_policy.yaml" PULL_POLICY=IfNotPresent 34 MANAGER_IMAGE=$(CONTROLLER_IMG)-$(ARCH):$(TAG) \ 35 $(MAKE) test-e2e-run