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()