From 955d0dd0d18cb3b4342ca94fc629ecbc1d1e57cd Mon Sep 17 00:00:00 2001 From: Tom Martensen Date: Fri, 3 Jan 2025 13:40:46 +0100 Subject: [PATCH] debug --- Makefile | 2 +- test/e2e/cluster/list_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c2248351f..adcffb3f6 100644 --- a/Makefile +++ b/Makefile @@ -194,7 +194,7 @@ bats-e2e-tests: .PHONY: go-e2e-tests go-e2e-tests: proto-generated-srcs @kubectl apply -f workflows/ - @go test ./test/e2e/... -tags=e2e-2 -v -parallel 5 -count 1 -cover -timeout 1h + @go test ./test/e2e/... -tags=e2e-2 -v -parallel 5 -count 1 -cover -timeout 1h -json # Assuming a local dev infra server is running and accessible via a port-forward # i.e. nohup kubectl -n infra port-forward svc/infra-server-service 8443:8443 & diff --git a/test/e2e/cluster/list_test.go b/test/e2e/cluster/list_test.go index a4c06da99..e5e9c1a23 100644 --- a/test/e2e/cluster/list_test.go +++ b/test/e2e/cluster/list_test.go @@ -14,12 +14,14 @@ import ( func TestListCreated(t *testing.T) { utils.CheckContext() + fmt.Println("checked context") clusterID, err := infractlCreateCluster( "simulate", utils.GetUniqueClusterName("list-created"), "--lifespan=30s", "--arg=create-delay-seconds=5", "--arg=destroy-delay-seconds=5", ) + fmt.Println("infractlCreateCluster ran") assert.NoError(t, err) assert.NotEmpty(t, clusterID) listedClusters, err := infractlList("--prefix=list-created")