mirror of https://github.com/knative/func.git
test: e2e on cluster test in verbose mode (#1537)
This commit is contained in:
parent
6bedc4aeed
commit
e6618c0c2b
|
@ -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 --
|
||||
|
|
|
@ -47,6 +47,7 @@ func TestContextDirFunc(t *testing.T) {
|
|||
"-p", funcPath,
|
||||
"-r", e2e.GetRegistry(),
|
||||
"--remote",
|
||||
"--verbose",
|
||||
"--git-url", remoteRepo.ClusterCloneURL,
|
||||
"--git-dir", funcContextDir,
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -114,7 +114,8 @@ func GitRevisionCheck(
|
|||
knFunc.Exec("deploy",
|
||||
"-r", e2e.GetRegistry(),
|
||||
"-p", funcPath,
|
||||
"--remote")
|
||||
"--remote",
|
||||
"--verbose")
|
||||
defer knFunc.Exec("delete", "-p", funcPath)
|
||||
|
||||
// -- Assertions --
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue