Capstone/service/controllers/pco_webhook_test.go

16 lines
339 B
Go
Raw Normal View History

package controllers
import (
"testing"
"github.com/go-playground/assert/v2"
)
func TestPlanEventMatch(t *testing.T) {
2023-11-23 13:22:16 -05:00
events := []string{"services.v2.events.plan.updated", "services.v2.events.plan.destroyed", "services.v2.events.plan.created"}
for _, event := range events {
2023-11-23 13:22:16 -05:00
assert.Equal(t, eventMatch("plan", event), true)
}
}