Import locomotive availability descriptors with overlay context
This commit is contained in:
parent
8c7ff335cb
commit
87108f357b
21 changed files with 1154 additions and 27 deletions
|
|
@ -0,0 +1,83 @@
|
|||
{
|
||||
"format_version": 1,
|
||||
"fixture_id": "packed-event-locomotive-availability-overlay-fixture",
|
||||
"source": {
|
||||
"kind": "captured-runtime",
|
||||
"description": "Fixture backed by an overlay import document so boolean locomotive availability descriptors execute against captured catalog context."
|
||||
},
|
||||
"state_import_path": "packed-event-locomotive-availability-overlay.json",
|
||||
"commands": [
|
||||
{
|
||||
"kind": "service_trigger_kind",
|
||||
"trigger_kind": 7
|
||||
}
|
||||
],
|
||||
"expected_summary": {
|
||||
"calendar": {
|
||||
"year": 1835,
|
||||
"month_slot": 1,
|
||||
"phase_slot": 2,
|
||||
"tick_slot": 4
|
||||
},
|
||||
"calendar_projection_is_placeholder": false,
|
||||
"locomotive_catalog_count": 2,
|
||||
"packed_event_collection_present": true,
|
||||
"packed_event_record_count": 1,
|
||||
"packed_event_decoded_record_count": 1,
|
||||
"packed_event_imported_runtime_record_count": 1,
|
||||
"packed_event_parity_only_record_count": 1,
|
||||
"event_runtime_record_count": 1,
|
||||
"named_locomotive_availability_count": 2,
|
||||
"zero_named_locomotive_availability_count": 1,
|
||||
"total_event_record_service_count": 1,
|
||||
"total_trigger_dispatch_count": 1
|
||||
},
|
||||
"expected_state_fragment": {
|
||||
"metadata": {
|
||||
"base.note": "preserve locomotive catalog context",
|
||||
"save_slice.import_projection": "overlay-runtime-restore-v1"
|
||||
},
|
||||
"named_locomotive_availability": {
|
||||
"Locomotive 10": 1,
|
||||
"Locomotive 112": 0
|
||||
},
|
||||
"packed_event_collection": {
|
||||
"live_entry_ids": [33],
|
||||
"records": [
|
||||
{
|
||||
"decode_status": "parity_only",
|
||||
"payload_family": "real_packed_v1",
|
||||
"import_outcome": "imported",
|
||||
"grouped_effect_rows": [
|
||||
{
|
||||
"descriptor_id": 250,
|
||||
"recovered_locomotive_id": 10
|
||||
},
|
||||
{
|
||||
"descriptor_id": 457,
|
||||
"recovered_locomotive_id": 112
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"event_runtime_records": [
|
||||
{
|
||||
"record_id": 33,
|
||||
"service_count": 1,
|
||||
"effects": [
|
||||
{
|
||||
"kind": "set_named_locomotive_availability",
|
||||
"name": "Locomotive 10",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"kind": "set_named_locomotive_availability",
|
||||
"name": "Locomotive 112",
|
||||
"value": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue