diff --git a/Makefile b/Makefile index 18d2c0f..8d53ea1 100644 --- a/Makefile +++ b/Makefile @@ -346,7 +346,7 @@ chainsaw-setup: ## Run the chainsaw setup .PHONY: chainsaw-test chainsaw-test: chainsaw ## Run the chainsaw test - KUBECONFIG=$(KIND_KUBECONFIG) $(CHAINSAW) test --cluster cluster-1=$(KIND_KUBECONFIG) --test-dir ./test/e2e/ + - KUBECONFIG=$(KIND_KUBECONFIG) $(CHAINSAW) test --cluster cluster-1=$(KIND_KUBECONFIG) --test-dir ./test/e2e/ KUBECONFIG=$(KIND_KUBECONFIG) kubectl logs -n $(TEST_NAMESPACE) -l "app.kubernetes.io/name=secret-operator" .PHONY: chainsaw-cleanup diff --git a/test/e2e/krb5/chainsaw-test.yaml b/test/e2e/krb5/chainsaw-test.yaml index 9c5b4ba..079c2f1 100644 --- a/test/e2e/krb5/chainsaw-test.yaml +++ b/test/e2e/krb5/chainsaw-test.yaml @@ -89,6 +89,14 @@ spec: file: node-scope.yaml - assert: file: node-scope-assert.yaml + - catch: + - script: + env: + - name: NAMESPACE + value: ($namespace) + content: | + kubectl -n "$NAMESPACE" get pod + kubectl -n "$NAMESPACE" describe pod - try: - apply: file: service-scope.yaml @@ -99,11 +107,3 @@ spec: file: pod-scope.yaml - assert: file: pod-scope-assert.yaml - - catch: - - script: - env: - - name: NAMESPACE - value: ($namespace) - content: | - kubectl -n "$NAMESPACE" get pod - kubectl -n "$NAMESPACE" describe pod diff --git a/test/e2e/tls/chainsaw-test.yaml b/test/e2e/tls/chainsaw-test.yaml index 85d8995..9bb7f4c 100644 --- a/test/e2e/tls/chainsaw-test.yaml +++ b/test/e2e/tls/chainsaw-test.yaml @@ -15,6 +15,15 @@ spec: file: tls-scope.yaml - assert: file: tls-scope-assert.yaml + - catch: + - script: + env: + - name: NAMESPACE + value: ($namespace) + content: | + kubectl -n "$NAMESPACE" get pod + kubectl -n "$NAMESPACE" describe pod + # tls will expires case - try: - apply: @@ -46,11 +55,3 @@ spec: fi check: ($error == null): true - - catch: - - script: - env: - - name: NAMESPACE - value: ($namespace) - content: | - kubectl -n "$NAMESPACE" get pod - kubectl -n "$NAMESPACE" describe pod