Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assisted ztp: increase timeout in dualstack test #205

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -55,10 +55,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*30)
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
Loading