test(supabase): sandbox suites refuse every target but the sandbox
The sandbox suites (stack.ts and its importers, the shell Playwright config) stop before their first request unless the container, the four loopback URLs and the key issuer are exactly the db:sandbox ones; the LAN config accepts the 5193 trial app only. Drift and wiring tests tie the constants to scripts/db-sandbox.sh.
This commit is contained in:
1 parent
b215b89cf9
commit
b682f78209
5 files changed
+207
-1
No files matched your search
@@ -3,10 +3,14 @@
|
||||
* real GoTrue, PostgREST and PostgreSQL sessions, never the DEV stack. The
|
||||
* script passes the endpoints and the generated keys through the environment;
|
||||
* the database password reaches `docker exec` through the environment too,
|
||||
* never through a command argument.
|
||||
* never through a command argument. Any other target (the db:trial stack, DEV,
|
||||
* a look-alike) stops the suite here, before its first request (./target.ts).
|
||||
*/
|
||||
import { execFile } from 'node:child_process'
|
||||
import { randomBytes, randomUUID } from 'node:crypto'
|
||||
import { assertSandboxTarget } from './target'
|
||||
|
||||
assertSandboxTarget(process.env)
|
||||
|
||||
const need = (name: string): string => {
|
||||
const value = process.env[name]
|
||||
|
||||
Reference in new issue
Block a user