diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index a90e4fa3..5ced2fbe 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -126,7 +126,7 @@ jobs: make deploy-ci NAMESPACE=mygatekeeper IMG=localhost:5000/gatekeeper-operator:$GITHUB_SHA kubectl -n mygatekeeper wait deployment/gatekeeper-operator-controller --for condition=Available --timeout=90s kubectl -n mygatekeeper logs deployment/gatekeeper-operator-controller -c manager -f > operator.log & - make test-e2e NAMESPACE=mygatekeeper LABEL_FILTER=configSync + make test-e2e NAMESPACE=mygatekeeper LABEL_FILTER=config - name: Debug if: ${{ failure() }} diff --git a/Makefile b/Makefile index 8bd37e1b..9f1ddb31 100644 --- a/Makefile +++ b/Makefile @@ -154,7 +154,7 @@ test: manifests generate fmt vet envtest ## Run tests. LABEL_FILTER=gatekeeper-controller .PHONY: test-e2e test-e2e: e2e-dependencies generate fmt vet install-crds ## Run e2e tests, using the configured Kubernetes cluster in ~/.kube/config - GOFLAGS=$(GOFLAGS) USE_EXISTING_CLUSTER=true $(GINKGO) ./test/e2e --trace --label-filter=$(LABEL_FILTER) --fail-fast -- --namespace $(NAMESPACE) --timeout="5m" --delete-timeout="10m" + GOFLAGS=$(GOFLAGS) USE_EXISTING_CLUSTER=true $(GINKGO) ./test/e2e --trace --fail-fast --label-filter="$(LABEL_FILTER)" -- --namespace $(NAMESPACE) --timeout="5m" --delete-timeout="10m" .PHONY: test-cluster test-cluster: ## Create a local kind cluster with a registry for testing diff --git a/test/e2e/case1_audit_from_cache_test.go b/test/e2e/case1_audit_from_cache_test.go index 12860093..91143c50 100644 --- a/test/e2e/case1_audit_from_cache_test.go +++ b/test/e2e/case1_audit_from_cache_test.go @@ -37,7 +37,7 @@ var templateGVR = schema.GroupVersionResource{ Resource: "constrainttemplates", } -var _ = Describe("Test auditFromCache", Label("configSync"), Ordered, func() { +var _ = Describe("Test auditFromCache", Label("config"), Ordered, func() { BeforeAll(func() { if !useExistingCluster() { Skip("Test requires existing cluster. Set environment variable USE_EXISTING_CLUSTER=true and try again.")