Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 435: E2E test failing intermittently #436

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion test/e2e/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ func testCreateRecreateCluster(t *testing.T) {
ctx.Cleanup()
}
}()

namespace, err := ctx.GetNamespace()
g.Expect(err).NotTo(HaveOccurred())
f := framework.Global

// A workaround for issue 93
err = pravega_e2eutil.RestartTier2(t, f, ctx, namespace)
g.Expect(err).NotTo(HaveOccurred())

defaultCluster := pravega_e2eutil.NewDefaultCluster(namespace)
defaultCluster.WithDefaults()

Expand All @@ -45,12 +48,19 @@ func testCreateRecreateCluster(t *testing.T) {
err = pravega_e2eutil.WaitForClusterToBecomeReady(t, f, ctx, pravega, podSize)
g.Expect(err).NotTo(HaveOccurred())

err = pravega_e2eutil.WriteAndReadData(t, f, ctx, pravega)
g.Expect(err).NotTo(HaveOccurred())

err = pravega_e2eutil.DeleteCluster(t, f, ctx, pravega)
g.Expect(err).NotTo(HaveOccurred())

err = pravega_e2eutil.WaitForClusterToTerminate(t, f, ctx, pravega)
g.Expect(err).NotTo(HaveOccurred())

// A workaround for issue 93
err = pravega_e2eutil.RestartTier2(t, f, ctx, namespace)
g.Expect(err).NotTo(HaveOccurred())

defaultCluster = pravega_e2eutil.NewDefaultCluster(namespace)
defaultCluster.WithDefaults()

Expand All @@ -72,6 +82,8 @@ func testCreateRecreateCluster(t *testing.T) {
err = pravega_e2eutil.WaitForClusterToTerminate(t, f, ctx, pravega)
g.Expect(err).NotTo(HaveOccurred())

// A workaround for issue 93
err = pravega_e2eutil.RestartTier2(t, f, ctx, namespace)
g.Expect(err).NotTo(HaveOccurred())

}
4 changes: 4 additions & 0 deletions test/e2e/scale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ func testScaleCluster(t *testing.T) {
g.Expect(err).NotTo(HaveOccurred())
f := framework.Global

// A workaround for issue 93
err = pravega_e2eutil.RestartTier2(t, f, ctx, namespace)
g.Expect(err).NotTo(HaveOccurred())

defaultCluster := pravega_e2eutil.NewDefaultCluster(namespace)
defaultCluster.WithDefaults()
pravega, err := pravega_e2eutil.CreateCluster(t, f, ctx, defaultCluster)
Expand Down
4 changes: 4 additions & 0 deletions test/e2e/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ func testUpgradeCluster(t *testing.T) {
g.Expect(err).NotTo(HaveOccurred())
f := framework.Global

// A workaround for issue 93
err = pravega_e2eutil.RestartTier2(t, f, ctx, namespace)
g.Expect(err).NotTo(HaveOccurred())

cluster := pravega_e2eutil.NewDefaultCluster(namespace)

cluster.WithDefaults()
Expand Down
4 changes: 4 additions & 0 deletions test/e2e/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ func testWebhook(t *testing.T) {
g.Expect(err).NotTo(HaveOccurred())
f := framework.Global

// A workaround for issue 93
err = pravega_e2eutil.RestartTier2(t, f, ctx, namespace)
g.Expect(err).NotTo(HaveOccurred())

//Test webhook with an unsupported Pravega cluster version
invalidVersion := pravega_e2eutil.NewClusterWithVersion(namespace, "99.0.0")
invalidVersion.WithDefaults()
Expand Down