Skip to content

Commit

Permalink
Fixed Viridian test outputs (hazelcast#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuce authored Sep 15, 2023
1 parent 3f9d477 commit c343e6f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions base/commands/viridian/viridian_it_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func loginWithParams_InteractiveTest(t *testing.T) {
tcx.WithShell(ctx, func(tcx it.TestContext) {
tcx.WithReset(func() {
tcx.WriteStdinf("\\viridian login --api-base dev2 --api-key %s --api-secret %s\n", it.ViridianAPIKey(), it.ViridianAPISecret())
tcx.AssertStdoutContains("Viridian token was fetched and saved.")
tcx.AssertStdoutContains("Saved the access token")
})
})
})
Expand All @@ -106,7 +106,7 @@ func loginWithEnvVariables_NonInteractiveTest(t *testing.T) {
it.WithEnv(viridian.EnvAPIKey, it.ViridianAPIKey(), func() {
it.WithEnv(viridian.EnvAPISecret, it.ViridianAPISecret(), func() {
tcx.CLCExecute(ctx, "viridian", "login")
tcx.AssertStdoutContains("Viridian token was fetched and saved.")
tcx.AssertStdoutContains("Saved the access token")
})
})
})
Expand All @@ -122,7 +122,6 @@ func listClusters_NonInteractiveTest(t *testing.T) {
*/
c := createOrGetClusterWithState(ctx, tcx, "RUNNING")
tcx.CLCExecute(ctx, "viridian", "list-clusters")
tcx.AssertStderrContains("OK")
tcx.AssertStdoutContains(c.ID)
})
}
Expand Down Expand Up @@ -204,7 +203,7 @@ func resumeCluster_NonInteractiveTest(t *testing.T) {
viridianTester(t, func(ctx context.Context, tcx it.TestContext) {
c := createOrGetClusterWithState(ctx, tcx, "STOPPED")
tcx.CLCExecute(ctx, "viridian", "resume-cluster", c.ID)
tcx.AssertStderrContains("OK")
tcx.AssertStdoutContains("OK")
check.Must(waitState(ctx, tcx, c.ID, "RUNNING"))
})
}
Expand Down

0 comments on commit c343e6f

Please sign in to comment.