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:
@@ -13,7 +13,7 @@ INSERT INTO test.actors VALUES (1, 'John Doe');
|
|||||||
|
|
||||||
-- POST target needs generated PK
|
-- POST target needs generated PK
|
||||||
CREATE TABLE test.films (
|
CREATE TABLE test.films (
|
||||||
id INT PRIMARY KEY,
|
id INT PRIMARY KEY,
|
||||||
title TEXT,
|
title TEXT,
|
||||||
year TEXT,
|
year TEXT,
|
||||||
runtime TEXT,
|
runtime TEXT,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Prefer: tx=commit
|
|||||||
GET http://postgrest/actors?select=*,roles(*,films(*))
|
GET http://postgrest/actors?select=*,roles(*,films(*))
|
||||||
Prefer: tx=commit
|
Prefer: tx=commit
|
||||||
|
|
||||||
POST http://postgrest/films?columns=title
|
POST http://postgrest/films?columns=id,title
|
||||||
Prefer: tx=rollback
|
Prefer: tx=rollback
|
||||||
@post.json
|
@post.json
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user