diff --git a/internal/webhook/webhook_test.go b/internal/webhook/webhook_test.go new file mode 100644 index 000000000..c2050629e --- /dev/null +++ b/internal/webhook/webhook_test.go @@ -0,0 +1,26 @@ +package webhook_test + +import ( + "testing" + + "github.com/padok-team/burrito/internal/burrito/config" + "github.com/padok-team/burrito/internal/webhook" + "github.com/stretchr/testify/assert" +) + +func TestWebhook_Init(t *testing.T) { + secret := "test-secret" + config := &config.Config{ + Server: config.Server{ + Webhook: config.WebhookConfig{ + Github: config.WebhookGithubConfig{ + Secret: secret, + }, + }, + }, + } + + w := webhook.New(config) + err := w.Init() + assert.NoError(t, err) +}