Skip to content

Commit

Permalink
test: more By
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Beaumont <[email protected]>
  • Loading branch information
michaelbeaumont committed Sep 19, 2024
1 parent e59d8c4 commit 16ed5cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/federation/federation_kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,19 @@ func FederateKubeZoneCPToKubeGlobal() {

Context("on federation", func() {
BeforeAll(func() {
By("checking that the client is reachable on the zone")
Eventually(func(g Gomega) {
_, err := client.CollectEchoResponse(zone, "demo-client", "test-server",
client.FromKubernetesPod(TestNamespace, "demo-client"),
)
g.Expect(err).ToNot(HaveOccurred())
}, "30s", "1s").Should(Succeed())

By("exporting the zone")
out, err := zone.GetKumactlOptions().RunKumactlAndGetOutput("export", "--profile", "federation", "--format", "kubernetes")
Expect(err).ToNot(HaveOccurred())

By("applying the exported zone resources to global")
err = k8s.KubectlApplyFromStringE(global.GetTesting(), global.GetKubectlOptions(), out)
Expect(err).ToNot(HaveOccurred())
err = zone.(*K8sCluster).UpgradeKuma(core.Zone,
Expand Down

0 comments on commit 16ed5cd

Please sign in to comment.