Skip to content

Commit

Permalink
Pmackin/vz 2732 install loop test (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmackin committed Jun 4, 2021
1 parent a0e4900 commit f8ea801
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests/e2e/verify-install/kubernetes/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

var waitTimeout = 15 * time.Minute
var pollingInterval = 30 * time.Second
const waitTimeout = 15 * time.Minute
const pollingInterval = 30 * time.Second
const timeout5Min = 5 * time.Minute

var expectedPodsCattleSystem = []string{
"rancher"}

Expand Down Expand Up @@ -72,10 +74,13 @@ var _ = ginkgo.Describe("Kubernetes Cluster",
gomega.Expect(nsListContains(namespaces.Items, "cattle-system")).To(gomega.BeTrue())
gomega.Expect(nsListContains(namespaces.Items, "local")).To(gomega.BeFalse())
} else {
gomega.Expect(nsListContains(namespaces.Items, "cattle-global-data")).To(gomega.BeTrue())
gomega.Expect(nsListContains(namespaces.Items, "cattle-global-nt")).To(gomega.BeTrue())
gomega.Expect(nsListContains(namespaces.Items, "cattle-system")).To(gomega.BeTrue())
gomega.Expect(nsListContains(namespaces.Items, "local")).To(gomega.BeTrue())
gomega.Eventually(func() bool { return nsListContains(namespaces.Items, "cattle-global-data") }, timeout5Min, pollingInterval).
Should(gomega.BeTrue())
gomega.Eventually(func() bool { return nsListContains(namespaces.Items, "cattle-global-nt") }, timeout5Min, pollingInterval).
Should(gomega.BeTrue())
gomega.Eventually(func() bool { return nsListContains(namespaces.Items, "local") }, timeout5Min, pollingInterval).
Should(gomega.BeTrue())
}
gomega.Expect(nsListContains(namespaces.Items, "istio-system")).To(gomega.Equal(true))
gomega.Expect(nsListContains(namespaces.Items, "gitlab")).To(gomega.Equal(false))
Expand Down

0 comments on commit f8ea801

Please sign in to comment.