Skip to content

Commit

Permalink
using invoke to remote test the func
Browse files Browse the repository at this point in the history
  • Loading branch information
jrangelramos committed Oct 10, 2024
1 parent 6d0f074 commit ec60598
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/oncluster/scenario_remote-repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -92,7 +91,7 @@ func TestRemoteRepository(t *testing.T) {
defer knFunc.Exec("delete")
_, functionUrl := common.WaitForFunctionReady(t, funcName)

Check failure on line 92 in test/oncluster/scenario_remote-repository_test.go

View workflow job for this annotation

GitHub Actions / build / Build

functionUrl declared and not used

_, 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"))

}

0 comments on commit ec60598

Please sign in to comment.