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

test: move non-oncluster test to e2e #2659

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
//go:build oncluster
//go:build e2e

Check failure on line 1 in test/e2e/scenario_from-cli-local_test.go

View workflow job for this annotation

GitHub Actions / style / Golang / Auto-format and Check

Please run goimports. diff --git a/test/e2e/scenario_from-cli-local_test.go b/test/e2e/scenario_from-cli-local_test.go index 44e09c9..147ffe4 100644 --- a/test/e2e/scenario_from-cli-local_test.go +++ b/test/e2e/scenario_from-cli-local_test.go @@ -3,11 +3,12 @@ package e2e import ( - "knative.dev/func/test/oncluster" "os" "path/filepath" "testing" + "knative.dev/func/test/oncluster" + "k8s.io/apimachinery/pkg/util/rand" fn "knative.dev/func/pkg/functions" common "knative.dev/func/test/common"

package oncluster
package e2e

import (
"knative.dev/func/test/oncluster"
"os"
"path/filepath"
"testing"
Expand All @@ -25,7 +26,7 @@
defer os.RemoveAll(funcPath)

// Update func.yaml build as local + some fake url (it should not call it anyway)
UpdateFuncGit(t, funcPath, fn.Git{URL: "http://fake-repo/repo.git"})
oncluster.UpdateFuncGit(t, funcPath, fn.Git{URL: "http://fake-repo/repo.git"})

knFunc.Exec("deploy",
"-p", funcPath,
Expand All @@ -36,6 +37,6 @@

// -- Assertions --
knFunc.Exec("invoke", "-p", funcPath)
AssertThatTektonPipelineResourcesNotExists(t, funcName)
oncluster.AssertThatTektonPipelineResourcesNotExists(t, funcName)

}
Loading