Skip to content

Commit

Permalink
Fix up annotators in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Connon committed Feb 11, 2019
1 parent 6690cb8 commit 5e82eaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api/server/fn_annotator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestAnnotateFnDefaultProvider(t *testing.T) {
}

// defaults the fn endpoint to the base URL if it's not already set
tep := NewRequestBasedFnAnnotator()
tep := NewRequestBasedFnAnnotator(DefaultInvokeGroup, DefaultInvokeTemplate)

c, _ := gin.CreateTestContext(httptest.NewRecorder())
c.Request = httptest.NewRequest("GET", "/v2/foo/bar", bytes2.NewBuffer([]byte{}))
Expand Down Expand Up @@ -67,7 +67,7 @@ func TestHttpsFn(t *testing.T) {
}

// defaults the Fn endpoint to the base URL if it's not already set
tep := NewRequestBasedFnAnnotator()
tep := NewRequestBasedFnAnnotator(DefaultInvokeGroup, DefaultInvokeTemplate)

c, _ := gin.CreateTestContext(httptest.NewRecorder())
c.Request = httptest.NewRequest("GET", "/v2/foo/bar", bytes2.NewBuffer([]byte{}))
Expand Down Expand Up @@ -97,7 +97,7 @@ func TestHttpsFn(t *testing.T) {
}

func TestStaticUrlFnAnnotator(t *testing.T) {
a := NewStaticURLFnAnnotator("http://foo.bar.com/somewhere")
a := NewStaticURLFnAnnotator("http://foo.bar.com/somewhere", DefaultInvokeGroup, DefaultInvokeTemplate)

app := &models.App{
ID: "app_id",
Expand Down
2 changes: 1 addition & 1 deletion api/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func testServer(ds models.Datastore, mq models.MessageQueue, logDB models.LogSto
WithAgent(rnr),
WithType(nodeType),
WithTriggerAnnotator(NewRequestBasedTriggerAnnotator()),
WithFnAnnotator(NewRequestBasedFnAnnotator()),
WithFnAnnotator(NewRequestBasedFnAnnotator(DefaultInvokeGroup, DefaultInvokeTemplate)),
)...)
}

Expand Down

0 comments on commit 5e82eaa

Please sign in to comment.