Skip to content

Commit

Permalink
test(e2e): fix failure test for syncing when on legacyKDS mode
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Chen <[email protected]>
  • Loading branch information
jijiechen committed Jan 8, 2024
1 parent 4f66501 commit a2661c1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions test/e2e_env/multizone/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func Sync() {
}, "30s", "1s").Should(Succeed())
})

PIt("show have insights in global and in zone", func() { // flaky test https://github.com/kumahq/kuma/issues/8756
It("show have insights in global and in zone", func() {
// Ensure each side of KDS has the respective values for Global and Zone instance info
globalName := ""
zoneInstance := ""
Expand All @@ -61,7 +61,9 @@ func Sync() {
sub := result.Spec.Subscriptions[0]
g.Expect(sub.GlobalInstanceId).ToNot(BeEmpty())
globalName = sub.GlobalInstanceId
g.Expect(sub.ZoneInstanceId).ToNot(BeEmpty())
if !Config.KumaLegacyKDS {
g.Expect(sub.ZoneInstanceId).ToNot(BeEmpty())
}
zoneInstance = sub.ZoneInstanceId
}, "30s", "1s").Should(Succeed())

Expand All @@ -71,9 +73,11 @@ func Sync() {

g.Expect(result.Spec.Subscriptions).ToNot(BeEmpty())
sub := result.Spec.Subscriptions[0]
// Check that this is the other side of the connection
g.Expect(sub.GlobalInstanceId).To(Equal(globalName))
g.Expect(sub.ZoneInstanceId).To(Equal(zoneInstance))
if !Config.KumaLegacyKDS {
// Check that this is the other side of the connection
g.Expect(sub.GlobalInstanceId).To(Equal(globalName))
g.Expect(sub.ZoneInstanceId).To(Equal(zoneInstance))
}
}, "30s", "1s").Should(Succeed())
})

Expand Down

0 comments on commit a2661c1

Please sign in to comment.