Skip to content

Commit 4d0f969

Browse files
author
Richard Connon
committed
Fix up annotators in tests
1 parent 6690cb8 commit 4d0f969

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/server/fn_annotator_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestAnnotateFnDefaultProvider(t *testing.T) {
2525
}
2626

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

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

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

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

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

102102
app := &models.App{
103103
ID: "app_id",

api/server/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func testServer(ds models.Datastore, mq models.MessageQueue, logDB models.LogSto
2727
WithAgent(rnr),
2828
WithType(nodeType),
2929
WithTriggerAnnotator(NewRequestBasedTriggerAnnotator()),
30-
WithFnAnnotator(NewRequestBasedFnAnnotator()),
30+
WithFnAnnotator(NewRequestBasedFnAnnotator(DefaultInvokeGroup, DefaultInvokeTemplate)),
3131
)...)
3232
}
3333

0 commit comments

Comments
 (0)