Implement owner-scoped Observation lifecycle with serialized patches

This commit is contained in:
Steffen committed 2026-10-14 11:46:03 +02:00
1 parent bfe6ebf5af
commit 3a70e3e296
37 files changed
+31249 -9

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
# 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 |