From e7e234cf7361320d4757c73e346805115ff025db Mon Sep 17 00:00:00 2001 From: Istvan Kispal Date: Mon, 27 May 2024 18:34:21 +0200 Subject: [PATCH] Fix test/e2e/cli bug --- scripts/clean-kind-only-e2e-test.sh | 6 +++++- test/e2e/cli/cluster.go | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/clean-kind-only-e2e-test.sh b/scripts/clean-kind-only-e2e-test.sh index 681c777c..cc4a587f 100755 --- a/scripts/clean-kind-only-e2e-test.sh +++ b/scripts/clean-kind-only-e2e-test.sh @@ -29,4 +29,8 @@ kubectl rollout status deployment porch-controllers --namespace porch-system kubectl rollout status deployment porch-server --namespace porch-system kubectl rollout status deployment function-runner --namespace porch-system sleep 2 -E2E=1 go test -v ./test/e2e + +echo "--- test/e2e ---" +E2E=1 go test -failfast -v ./test/e2e +echo "--- test/e2e/cli ---" +E2E=1 go test -failfast -v ./test/e2e/cli diff --git a/test/e2e/cli/cluster.go b/test/e2e/cli/cluster.go index bcbcb584..5dec0279 100644 --- a/test/e2e/cli/cluster.go +++ b/test/e2e/cli/cluster.go @@ -28,7 +28,7 @@ const ( func GetGitServerImageName(t *testing.T) string { cmd := exec.Command("kubectl", "get", "pods", "--selector=app=function-runner", "--namespace=porch-system", - "--output=jsonpath={.items[*].spec.containers[*].image}") + "--output=jsonpath={.items[0].spec.containers[0].image}") var stderr bytes.Buffer var stdout bytes.Buffer