From f6625480d806057bcbde2aa261ba1592889367e7 Mon Sep 17 00:00:00 2001 From: Ben Schumacher Date: Thu, 21 Oct 2021 10:39:22 +0200 Subject: [PATCH] Fix tests (#43) --- server/api_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/api_test.go b/server/api_test.go index b6c9f7d..8a831de 100644 --- a/server/api_test.go +++ b/server/api_test.go @@ -63,7 +63,7 @@ func TestPlugin_ServeHTTP(t *testing.T) { BitbucketOrg: "mockOrg", BitbucketOAuthClientID: "mockID", BitbucketOAuthClientSecret: "mockSecret", - WebhookSecret: "", + WebhookSecret: "mockSecret", EnablePrivateRepo: false, EncryptionKey: "mockKey", }) @@ -113,6 +113,8 @@ func TestGetToken(t *testing.T) { BitbucketOrg: "mockOrg", BitbucketOAuthClientID: "mockID", BitbucketOAuthClientSecret: "mockSecret", + WebhookSecret: "mockSecret", + EnablePrivateRepo: false, EncryptionKey: "mockKey", }) p.initializeAPI()