feat(cabana,pier): add Media Library admin API, mediafinder, Mail Images unification, and MCP tools
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user