Skip to content

Commit

Permalink
E2E: verify frrk8s daemonset is ready before tests
Browse files Browse the repository at this point in the history
Signed-off-by: karampok <karampok@gmail.com>
  • Loading branch information
karampok committed Jul 18, 2024
1 parent 3ccdb1f commit 6750d26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions e2etests/e2etest_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

"github.com/metallb/frrk8stests/pkg/dump"
"github.com/metallb/frrk8stests/pkg/infra"
"github.com/metallb/frrk8stests/pkg/k8s"
"github.com/metallb/frrk8stests/pkg/k8sclient"
"github.com/metallb/frrk8stests/tests"
"github.com/onsi/ginkgo/v2"
Expand Down Expand Up @@ -86,6 +87,10 @@ var _ = ginkgo.BeforeSuite(func() {
}

tests.PrometheusNamespace = prometheusNamespace

h, err := k8s.FRRK8isDaemonSetReady(cs)
Expect(err).NotTo(HaveOccurred())
Expect(h).Should(BeTrue(), "frr-k8s daemonset should be ready before test")
})

var _ = ginkgo.AfterSuite(func() {
Expand Down
3 changes: 0 additions & 3 deletions e2etests/tests/graceful_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ var _ = ginkgo.Describe("Establish BGP session with EnableGracefulRestart", func
nodes, err = k8s.Nodes(cs)
Expect(err).NotTo(HaveOccurred())

h, err := k8s.FRRK8isDaemonSetReady(cs)
Expect(err).NotTo(HaveOccurred())
Expect(h).Should(BeTrue(), "frr-k8s daemonset should be ready before test")
})

ginkgo.AfterEach(func() {
Expand Down

0 comments on commit 6750d26

Please sign in to comment.