Skip to content

Commit

Permalink
test: e2e on cluster test in verbose mode (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrangelramos committed Feb 14, 2023
1 parent 6bedc4a commit e6618c0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
8 changes: 6 additions & 2 deletions test/oncluster/scenario_basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func TestBasicUpload(t *testing.T) {
"-p", funcPath,
"-r", e2e.GetRegistry(),
"--remote",
"--verbose",
)
defer knFunc.Exec("delete", "-p", funcPath)

Expand All @@ -49,7 +50,8 @@ func TestBasicUpload(t *testing.T) {
knFunc.Exec("deploy",
"-r", e2e.GetRegistry(),
"-p", funcPath,
"--remote")
"--remote",
"--verbose")
e2e.NewRevisionCheck(t, previousServiceRevision, funcName) // Wait New Service Revision

// -- Assertions --
Expand Down Expand Up @@ -88,6 +90,7 @@ func TestBasicGit(t *testing.T) {
"-p", funcPath,
"-r", e2e.GetRegistry(),
"--remote",
"--verbose",
"--git-url", remoteRepo.ClusterCloneURL,
)
defer knFunc.Exec("delete", "-p", funcPath)
Expand All @@ -108,7 +111,8 @@ func TestBasicGit(t *testing.T) {
knFunc.Exec("deploy",
"-r", e2e.GetRegistry(),
"-p", funcPath,
"--remote")
"--remote",
"--verbose")
e2e.NewRevisionCheck(t, previousServiceRevision, funcName) // Wait New Service Revision

// -- Assertions --
Expand Down
1 change: 1 addition & 0 deletions test/oncluster/scenario_context-dir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestContextDirFunc(t *testing.T) {
"-p", funcPath,
"-r", e2e.GetRegistry(),
"--remote",
"--verbose",
"--git-url", remoteRepo.ClusterCloneURL,
"--git-dir", funcContextDir,
)
Expand Down
1 change: 1 addition & 0 deletions test/oncluster/scenario_from-cli-local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func TestFromCliBuildLocal(t *testing.T) {
var funcPath = filepath.Join(t.TempDir(), funcName)

knFunc := common.NewKnFuncShellCli(t)
knFunc.ShouldDumpOnSuccess = false
knFunc.Exec("create", "-l", "node", funcPath)
defer os.RemoveAll(funcPath)

Expand Down
3 changes: 3 additions & 0 deletions test/oncluster/scenario_from-cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func TestFromCliDefaultBranch(t *testing.T) {
"-r", e2e.GetRegistry(),
"-p", funcPath,
"--remote",
"--verbose",
"--git-url", remoteRepo.ClusterCloneURL)

defer knFunc.Exec("delete", "-p", funcPath)
Expand Down Expand Up @@ -92,6 +93,7 @@ func TestFromCliFeatureBranch(t *testing.T) {
"-r", e2e.GetRegistry(),
"-p", funcPath,
"--remote",
"--verbose",
"--git-url", remoteRepo.ClusterCloneURL,
"--git-branch", "feature/branch")

Expand Down Expand Up @@ -130,6 +132,7 @@ func TestFromCliContextDirFunc(t *testing.T) {
"-r", e2e.GetRegistry(),
"-p", funcPath,
"--remote",
"--verbose",
"--git-url", remoteRepo.ClusterCloneURL,
"--git-dir", funcContextDir)

Expand Down
3 changes: 2 additions & 1 deletion test/oncluster/scenario_revision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ func GitRevisionCheck(
knFunc.Exec("deploy",
"-r", e2e.GetRegistry(),
"-p", funcPath,
"--remote")
"--remote",
"--verbose")
defer knFunc.Exec("delete", "-p", funcPath)

// -- Assertions --
Expand Down
1 change: 1 addition & 0 deletions test/oncluster/scenario_runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func runtimeImpl(t *testing.T, lang string, builder string) {
"--registry", e2e.GetRegistry(),
"--path", funcPath,
"--remote",
"--verbose",
"--builder", builder,
"--git-url", remoteRepo.ClusterCloneURL)

Expand Down

0 comments on commit e6618c0

Please sign in to comment.