From ec605984f2cb3d54936c163edd97c045da0e6416 Mon Sep 17 00:00:00 2001 From: Jefferson Ramos Date: Thu, 10 Oct 2024 15:55:31 -0300 Subject: [PATCH] using invoke to remote test the func --- test/oncluster/scenario_remote-repository_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/oncluster/scenario_remote-repository_test.go b/test/oncluster/scenario_remote-repository_test.go index b5292eca8..415f75438 100644 --- a/test/oncluster/scenario_remote-repository_test.go +++ b/test/oncluster/scenario_remote-repository_test.go @@ -10,7 +10,6 @@ import ( "gotest.tools/v3/assert" "knative.dev/func/test/common" - "knative.dev/func/test/testhttp" ) func setupRemoteRepository(t *testing.T) (reposutoryUrl string) { @@ -92,7 +91,7 @@ func TestRemoteRepository(t *testing.T) { defer knFunc.Exec("delete") _, functionUrl := common.WaitForFunctionReady(t, funcName) - _, funcResponse := testhttp.TestGet(t, functionUrl) - assert.Assert(t, strings.Contains(funcResponse, "HELLO TEST")) + result := knFunc.Exec("invoke", "-p", funcPath) + assert.Assert(t, strings.Contains(result.Out, "HELLO TEST")) }