fix(ios): make first-ever executed test suite green — real crypto + contract fixes #235
No reviewers
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit!235
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ios-test-suite-233"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #233. Relates to #146, #223, #234 (new follow-up).
Executing the 455-test iOS suite for the first time ever (#233) found 34 failures + 1 crash. This PR fixes the real bugs behind them and updates tests that had drifted from the actual contracts. Final: 474 tests, 0 failures, 3 documented skips, 0 unexpected, ~143s — TEST SUCCEEDED on the macOS runner (Xcode 27.2).
Real app bugs fixed
Optional("id")into the URL — every real accept hit a garbage route. Now guards nil with a clear error (+ new test asserting no request fires). Note: the/codelookup omitsidby design, so the authenticated join-by-code flow needs a server-side decision — filed #234.AcceptCodeInvitationResponseandCreateInvitationResponsedecoded adataenvelope the server never sends (verified against AcceptInvitation.cs / CreateInvitation.cs,SnakeCaseLower). Now decode the bare objects; fields non-optional where the server always sends them.Test corrections (never executed → drifted)
/apiprefixes on 13 mock endpoint keys (client adds the prefix via fullBaseURL)generateKeyBundle()leavescurrentKeyBundlenil; setup nowstoreKeys()(persists + unlocks)acceptWithWallet()(the real gate)Documented skips (work exists, tracked)
XCTSkipUnless(!MlKem.usesPlaceholder)— the placeholder mathematically cannot decapsulate what it encapsulates; real ML-KEM = slice 3 (#223)Review
Dual-pass: ponytail (no must-fix) + superpowers reviewer (2 Importants addressed: InvitationsList envelope fixture fixed to bare contract; accept-response fields made non-optional so drift fails at decode; server gap filed as #234; dead envelope types + dead mock removed; Login tests isolated to a test-scoped keychain service).
Coverage
Project has no iOS coverage check (the gate covers FailSulit.Api only). Every changed line is exercised by passing tests, incl. a new id-nil guard test. Formal per-line numbers need app-target instrumentation (project.yml) — offered as follow-up.
70f567cf713e3cd610053e3cd610051913a5eb81