casing and dummy endpoints

This commit is contained in:
Bel LaPointe
2025-04-28 22:27:01 -06:00
parent 29cb008f38
commit dceebd5755
7 changed files with 557 additions and 22 deletions

View File

@@ -18,12 +18,12 @@ func TestFeeds(t *testing.T) {
t.Run("happy", func(t *testing.T) {
body := make(url.Values)
body.Set("url", "url")
body.Set("cron", "cron")
body.Set("pattern", "pattern")
body.Set("webhookMethod", "wmethod")
body.Set("webhookURL", "wurl")
body.Set("webhookBody", "wbody")
body.Set("URL", "url")
body.Set("Cron", "cron")
body.Set("Pattern", "pattern")
body.Set("WebhookMethod", "wmethod")
body.Set("WebhookURL", "wurl")
body.Set("WebhookBody", "wbody")
w := httptest.NewRecorder()
r := httptest.NewRequest(http.MethodPost, "/v1/feeds", strings.NewReader(body.Encode()))
r = r.WithContext(ctx)