Skip to content

Commit

Permalink
Adding some simple/copied/modified test
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <[email protected]>
  • Loading branch information
matzew committed Oct 31, 2023
1 parent 83e93b3 commit 0855979
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pkg/functions/client_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,31 @@ func TestDeployWithOptions(t *testing.T) {
defer del(t, client, "test-deploy-with-options")
}

func TestDeployWithTriggers(t *testing.T) {
root, cleanup := Mktemp(t)
defer cleanup()
verbose := true

f := fn.Function{Runtime: "go", Name: "test-deploy-with-triggers", Root: root}
f.Deploy = fn.DeploySpec{
Subscriptions: []fn.KnativeSubscription{
{
Source: "default",
Filters: map[string]string{
"key": "value",
"foo": "bar",
},
},
},
}

client := newClient(verbose)
if _, _, err := client.New(context.Background(), f); err != nil {
t.Fatal(err)
}
defer del(t, client, "test-deploy-with-triggers")
}

func TestUpdateWithAnnotationsAndLabels(t *testing.T) {
functionName := "updateannlab"
defer Within(t, "testdata/example.com/"+functionName)()
Expand Down

0 comments on commit 0855979

Please sign in to comment.