nix(loadtest): move errors into mixed

Because we separate loadtest results per URL now, we can move the error
tests into the regular mixed bag of loadtests - we will be able to tell
from the misspelled URLs when we hit a regression in that area.

We should be able to do similar things for JWT tests, but we'll need
more infrastructure here.
This commit is contained in:
Wolfgang Walther
2026-06-01 20:49:35 +00:00
parent 59dffc258a
commit 640039a180
6 changed files with 27 additions and 35 deletions
-15
View File
@@ -1,15 +0,0 @@
# Misspelled relations
GET http://postgrest/actoxs?actor=eq.1
Prefer: tx=commit
# Misspelled relations on embeds
GET http://postgrest/actors?select=*,rolws(*,films(*))
Prefer: tx=commit
# Misspelled function names
GET http://postgrest/rpc/call_me_x?name=John
Prefer: tx=commit
# Permission denied errors
GET http://postgrest/actors_1
Prefer: tx=commit
-7
View File
@@ -1,7 +0,0 @@
\ir fixtures.sql
SELECT format('CREATE TABLE test.actors_%s ();', n)
FROM generate_series(1, 450) n -- 500 is the upper limit for table not found error hint generation
\gexec
-- TODO add many function for fuzzy search (somehow this is making the loadtest start slow)
+6
View File
@@ -49,3 +49,9 @@ REVOKE ALL PRIVILEGES ON TABLE
FROM postgrest_test_anonymous;
GRANT ALL ON TABLE authors_only TO postgrest_test_author;
SELECT format('CREATE TABLE test.actors_%s ();', n)
FROM generate_series(1, 450) n -- 500 is the upper limit for table not found error hint generation
\gexec
-- TODO add many function for fuzzy search (somehow this is making the loadtest start slow)
+16
View File
@@ -33,3 +33,19 @@ POST http://postgrest/rpc/call_me
@rpc.json
OPTIONS http://postgrest/actors
# Misspelled relations
GET http://postgrest/actoxs?actor=eq.1
Prefer: tx=commit
# Misspelled relations on embeds
GET http://postgrest/actors?select=*,rolws(*,films(*))
Prefer: tx=commit
# Misspelled function names
GET http://postgrest/rpc/call_me_x?name=John
Prefer: tx=commit
# Permission denied errors
GET http://postgrest/actors_1
Prefer: tx=commit