From 94ef7ad20b3d220d6573345cfa9dd1525dfe6949 Mon Sep 17 00:00:00 2001 From: Jefferson Ramos Date: Fri, 17 Jan 2025 11:05:36 -0300 Subject: [PATCH] test: move non-oncluster test to e2e --- test/{oncluster => e2e}/scenario_from-cli-local_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename test/{oncluster => e2e}/scenario_from-cli-local_test.go (81%) diff --git a/test/oncluster/scenario_from-cli-local_test.go b/test/e2e/scenario_from-cli-local_test.go similarity index 81% rename from test/oncluster/scenario_from-cli-local_test.go rename to test/e2e/scenario_from-cli-local_test.go index a06534acf1..44e09c96b8 100644 --- a/test/oncluster/scenario_from-cli-local_test.go +++ b/test/e2e/scenario_from-cli-local_test.go @@ -1,8 +1,9 @@ -//go:build oncluster +//go:build e2e -package oncluster +package e2e import ( + "knative.dev/func/test/oncluster" "os" "path/filepath" "testing" @@ -25,7 +26,7 @@ func TestFromCliBuildLocal(t *testing.T) { 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, @@ -36,6 +37,6 @@ func TestFromCliBuildLocal(t *testing.T) { // -- Assertions -- knFunc.Exec("invoke", "-p", funcPath) - AssertThatTektonPipelineResourcesNotExists(t, funcName) + oncluster.AssertThatTektonPipelineResourcesNotExists(t, funcName) }