feat(opaque): diasable OPAQUE in e2e front test for now

This commit is contained in:
Edouard Vanbelle
2026-07-28 08:11:04 +02:00
parent bd8384c9b5
commit 92254ef894
3 changed files with 20 additions and 0 deletions
+5
View File
@@ -82,6 +82,11 @@ export async function startStack(): Promise<Stack> {
// The app defaults to binding 127.0.0.1, which a published container port
// can't reach. Bind all interfaces so Testcontainers' mapped port works.
OXICLOUD_SERVER_HOST: '0.0.0.0',
// OPAQUE substrate off for the container E2E — same rationale as the
// playwright.config.ts / playwright.coverage.config.ts overrides.
// The Hurl suite exercises OPAQUE via server.env directly.
OXICLOUD_OPAQUE_MODE: 'off',
OXICLOUD_OPAQUE_SERVER_SETUP: '',
})
// /health is a fast liveness probe (no DB hit); 200 means the HTTP server
// is up and sqlx migrations have completed.
+7
View File
@@ -66,6 +66,13 @@ export default defineConfig({
// Verbose startup so a CI webServer-readiness timeout shows where the
// server stalls (DB connect, migrations, bind) instead of nothing.
RUST_LOG: 'info,oxicloud=debug,sqlx=warn,tower_http=info',
// OPAQUE substrate is off for the E2E suite — Hurl exercises it via
// `tests/common/server.env`; the SPA-facing coverage suite doesn't
// need the boot-time init nor the ~200 KiB WASM client. Blanking
// the inherited commonEnv values takes the DI factory's
// `effective_mode == Off` short-circuit.
OXICLOUD_OPAQUE_MODE: 'off',
OXICLOUD_OPAQUE_SERVER_SETUP: '',
},
},
});
+8
View File
@@ -65,6 +65,14 @@ export default defineConfig({
// Enable the WASM plugin runtime so the admin Plugins tab is exercisable
// (the suite installs the example hello plugin fixture).
OXICLOUD_ENABLE_PLUGINS: 'true',
// Explicitly disable OPAQUE for the SPA coverage suite. The Hurl API
// suite (tests/common/server.env) exercises the OPAQUE substrate; this
// suite is scoped to SPA UI coverage and doesn't need the ~200 KiB
// WASM bundle nor the boot-time substrate init. Blank the two OPAQUE
// env vars inherited from commonEnv so the DI factory takes the
// `effective_mode == Off` short-circuit path.
OXICLOUD_OPAQUE_MODE: 'off',
OXICLOUD_OPAQUE_SERVER_SETUP: '',
},
},
});