Skip to content

Commit 54fa771

Browse files
test(conformance): add expected-failures baseline for unimplemented scenarios
Conformance 0.1.15 added three scenarios the v2 SDK doesn't implement yet: - client: auth/pre-registration (OAuth without DCR) - client: auth/cross-app-access-complete-flow (SEP-990) - server: dns-rebinding-protection Baseline them via --expected-failures so CI exits 0 on expected failures, 1 on regressions or stale entries (scenario starts passing → must update file).
1 parent 113caa2 commit 54fa771

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Conformance scenarios not yet implemented in the v2 TypeScript SDK.
2+
# CI exits 0 if only these fail, exits 1 on unexpected failures or stale entries.
3+
4+
client:
5+
- auth/pre-registration
6+
- auth/cross-app-access-complete-flow
7+
8+
server:
9+
- dns-rebinding-protection

test/conformance/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
"start": "npm run server",
2929
"server": "tsx watch --clear-screen=false scripts/cli.ts server",
3030
"client": "tsx scripts/cli.ts client",
31-
"test:conformance:client": "conformance client --command 'npx tsx ./src/everythingClient.ts'",
32-
"test:conformance:client:all": "conformance client --command 'npx tsx ./src/everythingClient.ts' --suite all",
31+
"test:conformance:client": "conformance client --command 'npx tsx ./src/everythingClient.ts' --expected-failures ./expected-failures.yaml",
32+
"test:conformance:client:all": "conformance client --command 'npx tsx ./src/everythingClient.ts' --suite all --expected-failures ./expected-failures.yaml",
3333
"test:conformance:client:run": "npx tsx ./src/everythingClient.ts",
34-
"test:conformance:server": "scripts/run-server-conformance.sh",
35-
"test:conformance:server:all": "scripts/run-server-conformance.sh --suite all",
34+
"test:conformance:server": "scripts/run-server-conformance.sh --expected-failures ./expected-failures.yaml",
35+
"test:conformance:server:all": "scripts/run-server-conformance.sh --suite all --expected-failures ./expected-failures.yaml",
3636
"test:conformance:server:run": "npx tsx ./src/everythingServer.ts",
3737
"test:conformance:all": "pnpm run test:conformance:client:all && pnpm run test:conformance:server:all"
3838
},

0 commit comments

Comments
 (0)