Skip to content

Commit

Permalink
Merge pull request #280 from topolvm/improve-ready
Browse files Browse the repository at this point in the history
Fix flakines of mutating webhook
  • Loading branch information
satoru-takeuchi committed Aug 23, 2024
2 parents 996c84f + 9737859 commit a10be88
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,19 @@ var _ = BeforeSuite(func() {
return nil
}).Should(Succeed())

By("[BeforeSuite] Waiting for mutating webhook working")
podPVCYAML, err := buildPodPVCTemplateYAML(
"default", "tmp", "topolvm-provisioner", "Filesystem", "tmp", "1Gi", "", "", "", "", "", nil)
Expect(err).ShouldNot(HaveOccurred())
Eventually(func(g Gomega) {
stdout, stderr, err := kubectlWithInput(podPVCYAML, "apply", "-f", "-")
g.Expect(err).ShouldNot(HaveOccurred(), "stdout=%s, stderr=%s yaml=\n%s", stdout, stderr, podPVCYAML)
}).Should(Succeed())
Eventually(func(g Gomega) {
stdout, stderr, err := kubectlWithInput(podPVCYAML, "delete", "-f", "-")
g.Expect(err).ShouldNot(HaveOccurred(), "stdout=%s, stderr=%s", stdout, stderr)
}).Should(Succeed())

By("[BeforeSuite] Creating namespace for test")
createNamespace(testNamespace)
createNamespace(testNamespace2)
Expand Down

0 comments on commit a10be88

Please sign in to comment.