test: Make failing loadtest fixtures pass again

PR #2358 added a bulk insert to the loadtest. However this broke the regular insert test,
which just returned 400 Bad Request because of a missing PK value since. Adding the new
id column in the payload to the ?columns= argument fixes that.
This commit is contained in:
Wolfgang Walther
2024-02-05 21:40:21 +01:00
parent 63ff6d1f15
commit 310d04065e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ INSERT INTO test.actors VALUES (1, 'John Doe');
-- POST target needs generated PK
CREATE TABLE test.films (
id INT PRIMARY KEY,
id INT PRIMARY KEY,
title TEXT,
year TEXT,
runtime TEXT,
+1 -1
View File
@@ -7,7 +7,7 @@ Prefer: tx=commit
GET http://postgrest/actors?select=*,roles(*,films(*))
Prefer: tx=commit
POST http://postgrest/films?columns=title
POST http://postgrest/films?columns=id,title
Prefer: tx=rollback
@post.json