Skip to content

Commit 41e871f

Browse files
Merge pull request #544 from stuggi/topo_func
[functional] verify LastAppliedTopology != nil before checking name
2 parents 90fc229 + 698c45d commit 41e871f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/functional/keystoneapi_controller_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,6 +1500,7 @@ var _ = Describe("Keystone controller", func() {
15001500
It("check topology has been applied", func() {
15011501
Eventually(func(g Gomega) {
15021502
keystoneAPI := GetKeystoneAPI(keystoneAPIName)
1503+
g.Expect(keystoneAPI.Status.LastAppliedTopology).ToNot(BeNil())
15031504
g.Expect(keystoneAPI.Status.LastAppliedTopology.Name).To(Equal(keystoneAPITopologies[0].Name))
15041505
}, timeout, interval).Should(Succeed())
15051506
})
@@ -1518,6 +1519,7 @@ var _ = Describe("Keystone controller", func() {
15181519

15191520
Eventually(func(g Gomega) {
15201521
keystoneAPI := GetKeystoneAPI(keystoneAPIName)
1522+
g.Expect(keystoneAPI.Status.LastAppliedTopology).ToNot(BeNil())
15211523
g.Expect(keystoneAPI.Status.LastAppliedTopology.Name).To(Equal(keystoneAPITopologies[1].Name))
15221524
}, timeout, interval).Should(Succeed())
15231525
})

0 commit comments

Comments
 (0)