test: #38 pin enrollment vs renewal SOAP ladder behaviour #62

Merged
amiryahaya merged 4 commits from test/38-soap-ladder-contrast into main 2026-11-15 18:05:46 +01:00
Owner

Follow-up to #38 (closed). Test-only: no lib/ change.

Pins how enrollment and renewal differ when the IC-only SOAP status lookup yields nothing or fails:

  • Enrollment proceeds (201) when the IC-only lookup returns an empty <return/> and the issuer lookup returns -101. Both requests are sent, the first without issuerCN. The live Trustgate site answers an IC with no certificate exactly this way, so the issuer lookup has to be able to decide.
  • Renewal fails closed (503 "certificate status unavailable") on an IC-only SOAP fault, sends only the IC-only request, and leaves the stored record unchanged (#23).

A fail-closed change to enrollment was tried and reverted: it broke StatusExposureTest (which enrolls against the live test site) and would have blocked every first-time enrollment.

Verification: mix precommit 329 passed; whole-app coverage 83.86% (no code changed). Two-pass review: Pass 1 found a test input that did not match its comment (fixed); Pass 2 found no must/should-fix and two optional assertion tightenings (applied; those small test edits did not get a separate Pass 1 re-check). Not checked: behaviour against a real Trustgate outage (a hard fault on the IC-only call alone still lets the issuer lookup decide in enrollment).

🤖 Generated with Claude Code

Follow-up to #38 (closed). Test-only: no `lib/` change. Pins how enrollment and renewal differ when the IC-only SOAP status lookup yields nothing or fails: - **Enrollment** proceeds (201) when the IC-only lookup returns an empty `<return/>` and the issuer lookup returns `-101`. Both requests are sent, the first without `issuerCN`. The live Trustgate site answers an IC with no certificate exactly this way, so the issuer lookup has to be able to decide. - **Renewal** fails closed (503 "certificate status unavailable") on an IC-only SOAP fault, sends only the IC-only request, and leaves the stored record unchanged (#23). A fail-closed change to enrollment was tried and reverted: it broke `StatusExposureTest` (which enrolls against the live test site) and would have blocked every first-time enrollment. Verification: `mix precommit` 329 passed; whole-app coverage 83.86% (no code changed). Two-pass review: Pass 1 found a test input that did not match its comment (fixed); Pass 2 found no must/should-fix and two optional assertion tightenings (applied; those small test edits did not get a separate Pass 1 re-check). Not checked: behaviour against a real Trustgate outage (a hard fault on the IC-only call alone still lets the issuer lookup decide in enrollment). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
test: #38 — assert issuerCN placement and unchanged state
All checks were successful
Lint / lint (pull_request) Successful in 1m47s
Security / Dependency advisories (mix hex.audit) (pull_request) Successful in 22s
Security / Secret scan (gitleaks) (pull_request) Successful in 10s
Unit tests / test (pull_request) Successful in 2m24s
7bee7ab86f
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No description provided.