Skip to content

Commit

Permalink
fix HCloudTokenAvailableCondition review
Browse files Browse the repository at this point in the history
Signed-off-by: Aniruddha Basak <[email protected]>
  • Loading branch information
aniruddha2000 committed Oct 14, 2023
1 parent 9f5e9a4 commit b697705
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controllers/hcloudremediation_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,14 @@ var _ = Describe("HCloudRemediationReconciler", func() {
}, timeout).Should(BeNil())
})

It("checks if hcloudRemediation objects has the HCloudTokenAvailableCondition condition", func() {
Expect(testEnv.Create(ctx, hcloudRemediation)).To(Succeed())

Eventually(func() bool {
return isPresentAndTrue(hcloudMachineKey, hcloudRemediation, infrav1.HCloudTokenAvailableCondition)
})
})

It("checks that no remediation is tried if HCloud server does not exist anymore", func() {
By("ensuring if hcloudMachine is provisioned")
Eventually(func() bool {
Expand Down

0 comments on commit b697705

Please sign in to comment.