Commit bf2cc73
committed
chore(tests): correct stale PublicationApprovalRequested/Completed fixtures
Fixture-only change (no production code affected) as part of a
cross-runtime audit of PublicationApprovalRequested and
PublicationEvaluationCompleted (openspec change
publication-event-parity). Java's producer/schema for
PublicationApprovalRequested were already fixed earlier this session
(commit ebd8086); this re-audit confirmed that fix is still correct
and clean. PublicationEvaluationCompleted's producer/schema/consumer
were already correct. Only the test fixtures had drifted.
Updated all 6 publication_approval_requested_event*.json fixtures
under unicorn_approvals/ApprovalsService/src/test/events/eventbridge/,
plus the older-vintage put_event_publication_approval_requested.json:
removed contract/listprice/currency and added the missing
status: "PENDING" field (all 7 fixtures were missing it even though
the producer sets it). put_event_publication_approval_requested.json
additionally had a fully flat, non-nested address shape predating the
nested-address fix - restructured to nested address to match the
current schema. Confirmed via repo-wide search that none of these 7
files are loaded by any .java test before editing.
Removed the stray, undocumented result_reason field from
publication_evaluation_completed_event.json (present in no schema,
producer, or consumer in any of the four runtimes; identical unused
fixture found in all four repos as part of this same change).
Verified: mvn test on ApprovalsService passes 10/10 (Contract Status 3,
PropertiesApprovalSync 4, WaitForContractApproval 3 - unaffected, as
expected for dead fixtures). sam validate --lint clean on the
Approvals service template.1 parent 7ef436b commit bf2cc73
8 files changed
Lines changed: 14 additions & 17 deletions
File tree
- unicorn_approvals/ApprovalsService/src/test/events
- eventbridge
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
0 commit comments