Skip to content

Commit

Permalink
assisted ztp: fix operator beforesuite ordering (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
trewest authored Jan 24, 2025
1 parent 3873cf7 commit 6ae6ebb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/assisted/ztp/operator/operator_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6ae6ebb

Please sign in to comment.