From f1f3cdcc885e523697d252bda89634fe81a8a7d9 Mon Sep 17 00:00:00 2001 From: Jason Costello Date: Tue, 7 Jan 2025 12:18:55 +0000 Subject: [PATCH] Change ordering of teardown to mitigate race condition --- tests/integration/federation/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/federation/test.sh b/tests/integration/federation/test.sh index e620d94..0158740 100755 --- a/tests/integration/federation/test.sh +++ b/tests/integration/federation/test.sh @@ -130,8 +130,8 @@ function show_workload_status() { } function teardown_federation_and_verify() { - kubectl exec --context $K8S_CLUSTER_2_CONTEXT -n spire spire-server-0 -- /opt/spire/bin/spire-server federation delete -id td1 kubectl --context $K8S_CLUSTER_2_CONTEXT delete clusterspiffeids.spire.spiffe.io spire-spire-namespace + kubectl exec --context $K8S_CLUSTER_2_CONTEXT -n spire spire-server-0 -- /opt/spire/bin/spire-server federation delete -id td1 kubectl exec --context $K8S_CLUSTER_2_CONTEXT -n spire spire-server-0 -- /opt/spire/bin/spire-server bundle delete -id td1 federations=$(./cofidectl federation list) if ! echo "$federations" | grep "Unhealthy | No bundle found" >/dev/null; then