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: update timeouts to wait methods #191

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ var _ = Describe(
infraenv.Definition.Spec.AdditionalTrustBundle = additionalTrustCertificate
_, err = infraenv.Create()
Expect(err).ToNot(HaveOccurred(), "error creating infraenv")
_, err := infraenv.WaitForDiscoveryISOCreation(time.Second * 40)
_, err := infraenv.WaitForDiscoveryISOCreation(time.Minute * 3)
Expect(err).ToNot(HaveOccurred(), "error creating discovery iso")
By("Checking additionalTrustBundle equal to additionalTrustCertificate")
Expect(infraenv.Object.Spec.AdditionalTrustBundle).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func createSpokeClusterResources(cpuArch string, mismatchCPUArchitecture ...stri
if len(mismatchCPUArchitecture) == 0 {
By("Wait until the discovery iso is created for the infraenv")

_, err = infraEnvBuilder.WaitForDiscoveryISOCreation(300 * time.Second)
_, err = infraEnvBuilder.WaitForDiscoveryISOCreation(time.Minute * 3)
Expect(err).ToNot(HaveOccurred(), "error waiting for the discovery iso creation")
} else {
By("Wait until infraenv shows an error for the mismatching image architecture")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ var _ = Describe(
WithClusterRef(osImageClusterImageSetName, osImageClusterImageSetName).Create()
Expect(err).ToNot(HaveOccurred(), "error creating infraenv")

_, err = osImageClusterImageSetInfraEnv.WaitForDiscoveryISOCreation(time.Second * 45)
_, err = osImageClusterImageSetInfraEnv.WaitForDiscoveryISOCreation(time.Minute * 3)
Expect(err).ToNot(HaveOccurred(), "error waiting for discovery iso to be generated")
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ var _ = Describe(
Expect(err).ToNot(HaveOccurred(), "error creating agentclusterinstall")
By("Waiting for condition to report expected failure message")
err = testAgentClusterInstall.WaitForConditionMessage(v1beta1.ClusterSpecSyncedCondition,
"The Spec could not be synced due to an input error: "+message, time.Second*30)
"The Spec could not be synced due to an input error: "+message, time.Minute*2)
Expect(err).NotTo(HaveOccurred(), "got unexpected message from SpecSynced condition")
}
},
Expand Down
Loading