Files
HealthAppRepositoryB/ImplementationPlan/test-adaptations.md
T

15 lines
1.7 KiB
Markdown

# Architecture-dependent test adaptations
Authority: approval Q1. Unmodified originals remain under Reference/ArchitectureA. Functional assertions stay intact except explicitly approved architecture-dependent conditions below.
| Original scenario / infrastructure | B replacement / reason |
| --- | --- |
| PatientApiFixture / ObservationApiFixture: multiple hosts/two databases | One real Kestrel host and one isolated database, module-owned schemas. Test-admin contexts remain available solely to establish Given and inspect persistence. Runtime uses restricted DML role |
| All adopted suites: service namespaces | Module/shared immutable value namespaces; JSON expectation vocabulary preserved |
| RecordObservationTests.Failed_patient_lookup_is_rejected_without_saving | StopPatientService helper now configures unusable shared DB endpoint; 502 assertion becomes approved 503; persisted count assertion unchanged |
| Guidance tests: ApiGateway host | HealthApp host; all original instructions/source/applicability/side-effect assertions and upstream traps unchanged |
| ViewObservationContextTests / filtered access | Empty denied 404 preserved, corrected implementation after tests caught accidental Problem Details |
| New concurrency checks | Hold row lock, prove both patches wait, release, verify both disjoint changes and unchanged owner/time/note; new architecture obligation |
Insight/context/trend/deletion-derived tests: service-stop helpers represent DB outage, expected 503 replaces 502; current data, no-write, no-false-insufficiency assertions unchanged. Pure calculation tests instantiate the identical mathematical implementation through its internal test-compatible entry and explicit Guidance reference catalog. No clinical assertion changed.