feat(cabana,pier): add Media Library admin API, mediafinder, Mail Images unification, and MCP tools

This commit is contained in:
Jakub Zych
2026-11-27 13:05:22 +01:00
parent 052aac4312
commit 2f0a44e504
32 changed files with 3882 additions and 69 deletions

View File

@@ -63,10 +63,10 @@ func TestEndpointGuards(t *testing.T) {
})
t.Run("body cap", func(t *testing.T) {
big := bytes.Repeat([]byte(" "), 5<<20)
big := bytes.Repeat([]byte(" "), 9<<20)
body := append([]byte(`{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}`), big...)
if res := post("oas_at_test", "", bytes.NewReader(body)); res.StatusCode != http.StatusRequestEntityTooLarge {
t.Fatalf("5 MiB body = %d, want 413", res.StatusCode)
t.Fatalf("9 MiB body = %d, want 413", res.StatusCode)
}
})