From 92254ef89430b09a13a878d44cc45409796ad96f Mon Sep 17 00:00:00 2001 From: Edouard Vanbelle Date: Tue, 28 Jul 2026 08:11:04 +0200 Subject: [PATCH] feat(opaque): diasable OPAQUE in e2e front test for now --- tests/e2e/fixtures/oxicloud-stack.ts | 5 +++++ tests/e2e/playwright.config.ts | 7 +++++++ tests/e2e/playwright.coverage.config.ts | 8 ++++++++ 3 files changed, 20 insertions(+) diff --git a/tests/e2e/fixtures/oxicloud-stack.ts b/tests/e2e/fixtures/oxicloud-stack.ts index ce549b9c..70b509d9 100644 --- a/tests/e2e/fixtures/oxicloud-stack.ts +++ b/tests/e2e/fixtures/oxicloud-stack.ts @@ -82,6 +82,11 @@ export async function startStack(): Promise { // 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. diff --git a/tests/e2e/playwright.config.ts b/tests/e2e/playwright.config.ts index 09f154a8..7faa242c 100644 --- a/tests/e2e/playwright.config.ts +++ b/tests/e2e/playwright.config.ts @@ -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: '', }, }, }); diff --git a/tests/e2e/playwright.coverage.config.ts b/tests/e2e/playwright.coverage.config.ts index 903f38dc..9e58b10a 100644 --- a/tests/e2e/playwright.coverage.config.ts +++ b/tests/e2e/playwright.coverage.config.ts @@ -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: '', }, }, });