Skip to content

Commit

Permalink
test: add test of webhook init
Browse files Browse the repository at this point in the history
  • Loading branch information
spoukke committed Apr 23, 2023
1 parent 310aa2f commit 1521aad
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions internal/webhook/webhook_test.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 1521aad

Please sign in to comment.