Skip to content

Commit

Permalink
assisted ztp: increase timeout in dualstack test
Browse files Browse the repository at this point in the history
  • Loading branch information
trewest committed Sep 27, 2024
1 parent 3ae2f9b commit 6b809e5
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions tests/assisted/ztp/operator/tests/aci-dualstack-ipv4-first.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,22 @@ var _ = Describe(
agentClusterInstallBuilder := createDualstackSpokeClusterResources()

By("Waiting for specific error message from SpecSynced condition")
err = agentClusterInstallBuilder.WaitForConditionMessage(v1beta1.ClusterSpecSyncedCondition,
"The Spec could not be synced due to an input error: First machine network has to be IPv4 subnet", time.Second*10)
Expect(err).NotTo(HaveOccurred(), "didn't get the expected message from SpecSynced condition")

Eventually(func() (string, error) {
agentClusterInstallBuilder.Object, err = agentClusterInstallBuilder.Get()
if err != nil {
return "", err
}

for _, condition := range agentClusterInstallBuilder.Object.Status.Conditions {
if condition.Type == v1beta1.ClusterSpecSyncedCondition {
return condition.Message, nil
}
}

return "", nil
}).WithTimeout(time.Minute*2).Should(
Equal("The Spec could not be synced due to an input error: First machine network has to be IPv4 subnet"),
"didn't get the expected message from SpecSynced condition")
})

})
Expand Down

0 comments on commit 6b809e5

Please sign in to comment.