From 5e82eaa606aa828d6c0493ef304f4242fefd9ed9 Mon Sep 17 00:00:00 2001 From: Richard Connon Date: Mon, 11 Feb 2019 16:10:36 +0000 Subject: [PATCH] Fix up annotators in tests --- api/server/fn_annotator_test.go | 6 +++--- api/server/server_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/server/fn_annotator_test.go b/api/server/fn_annotator_test.go index 9ee01fb62a..e643e383d1 100644 --- a/api/server/fn_annotator_test.go +++ b/api/server/fn_annotator_test.go @@ -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{})) @@ -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{})) @@ -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", diff --git a/api/server/server_test.go b/api/server/server_test.go index 8446cdf748..ab3aab4385 100644 --- a/api/server/server_test.go +++ b/api/server/server_test.go @@ -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)), )...) }