Bläddra i källkod

Merge pull request #752 from gtardif/aci_e2E_cleanup

Add ACI E2E resource cleanup command
Guillaume Tardif 5 år sedan
förälder
incheckning
a2af3c4367
1 ändrade filer med 5 tillägg och 2 borttagningar
  1. 5 2
      Makefile

+ 5 - 2
Makefile

@@ -96,7 +96,10 @@ validate-go-mod: ## Validate go.mod and go.sum are up-to-date
 
 validate: validate-go-mod validate-headers ## Validate sources
 
-pre-commit: all lint validate test e2e-local
+pre-commit: cli test e2e-local lint validate
+
+clean-aci-e2e: ## Make sure no ACI tests are currently runnnig in the CI when invoking this. Delete ACI E2E tests resources that might have leaked when ctrl-C E2E tests.
+	 az group list | jq '.[].name' | grep E2E-Test | xargs -n1 az-cmd group delete -y --no-wait -g
 
 help: ## Show help
 	@echo Please specify a build target. The choices are:
@@ -104,4 +107,4 @@ help: ## Show help
 
 FORCE:
 
-.PHONY: all validate protos cli e2e-local cross test cache-clear lint check-dependencies serve classic-link help
+.PHONY: all validate protos cli e2e-local cross test cache-clear lint check-dependencies serve classic-link help clean-aci-e2e