test: e2e on cluster test in verbose mode (#1537)

This commit is contained in:
Jefferson Ramos 2023-02-14 14:14:51 -03:00 committed by GitHub
parent 6bedc4aeed
commit e6618c0c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 3 deletions

View File

@ -33,6 +33,7 @@ func TestBasicUpload(t *testing.T) {
"-p", funcPath,
"-r", e2e.GetRegistry(),
"--remote",
"--verbose",
)
defer knFunc.Exec("delete", "-p", funcPath)
@ -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 --
@ -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)
@ -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 --

View File

@ -47,6 +47,7 @@ func TestContextDirFunc(t *testing.T) {
"-p", funcPath,
"-r", e2e.GetRegistry(),
"--remote",
"--verbose",
"--git-url", remoteRepo.ClusterCloneURL,
"--git-dir", funcContextDir,
)

View File

@ -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)

View File

@ -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)
@ -92,6 +93,7 @@ func TestFromCliFeatureBranch(t *testing.T) {
"-r", e2e.GetRegistry(),
"-p", funcPath,
"--remote",
"--verbose",
"--git-url", remoteRepo.ClusterCloneURL,
"--git-branch", "feature/branch")
@ -130,6 +132,7 @@ func TestFromCliContextDirFunc(t *testing.T) {
"-r", e2e.GetRegistry(),
"-p", funcPath,
"--remote",
"--verbose",
"--git-url", remoteRepo.ClusterCloneURL,
"--git-dir", funcContextDir)

View File

@ -114,7 +114,8 @@ func GitRevisionCheck(
knFunc.Exec("deploy",
"-r", e2e.GetRegistry(),
"-p", funcPath,
"--remote")
"--remote",
"--verbose")
defer knFunc.Exec("delete", "-p", funcPath)
// -- Assertions --

View File

@ -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)