Skip to content

Commit

Permalink
fix helm test
Browse files Browse the repository at this point in the history
Signed-off-by: Charly Molter <[email protected]>
  • Loading branch information
lahabana committed Jan 11, 2024
1 parent 7d198fc commit c5f4ae6
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions test/e2e/helm/kuma_helm_deploy_global_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,13 @@ interCp:
g.Expect(err).ToNot(HaveOccurred())
// Dataplane names are generated, so we check for a partial match.
g.Expect(dataplanes).Should(ContainElement(ContainSubstring("demo-client")))
for _, dpName := range dataplanes {
if strings.Contains(dpName, "demo-client") {
_, err = c1.GetKumactlOptions().RunKumactlAndGetOutput("inspect", "dataplane", dpName, "--type", "config-dump")
Expect(err).ToNot(HaveOccurred())
}
}
}, "30s", "250ms").Should(Succeed())

podName, err := PodNameOfApp(c2, "demo-client", TestNamespace)
Expect(err).ToNot(HaveOccurred())
dataplaneName := fmt.Sprintf("%s.%s.%s.%s", Kuma2, podName, TestNamespace, Config.KumaNamespace)

// when
_, err = c1.GetKumactlOptions().RunKumactlAndGetOutput("inspect", "dataplane", dataplaneName, "--type", "config-dump")

// then
Expect(err).ToNot(HaveOccurred())
})
}

0 comments on commit c5f4ae6

Please sign in to comment.