From 6ae6ebbd7cb14157d215d3773114d3408100279e Mon Sep 17 00:00:00 2001 From: Trey West Date: Fri, 24 Jan 2025 13:14:28 -0500 Subject: [PATCH] assisted ztp: fix operator beforesuite ordering (#382) --- tests/assisted/ztp/operator/operator_suite_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/assisted/ztp/operator/operator_suite_test.go b/tests/assisted/ztp/operator/operator_suite_test.go index a6d115013..ff5f7417b 100644 --- a/tests/assisted/ztp/operator/operator_suite_test.go +++ b/tests/assisted/ztp/operator/operator_suite_test.go @@ -27,16 +27,17 @@ func TestOperator(t *testing.T) { } var _ = BeforeSuite(func() { + By("Check if hub has valid apiClient") + if HubAPIClient == nil { + Skip("Cannot run operator suite when hub has nil api client") + } + By("Check that assisted is running") operandRunning, msg := meets.HubInfrastructureOperandRunningRequirement() if !operandRunning { Skip(msg) } - By("Check if hub has valid apiClient") - if HubAPIClient == nil { - Skip("Cannot run spoke suite when hub has nil api client") - } }) var _ = ReportAfterSuite("", func(report Report) {