56 lines
1.7 KiB
JSON
56 lines
1.7 KiB
JSON
|
|
{
|
||
|
|
"format_version": 1,
|
||
|
|
"fixture_id": "packed-event-world-locomotive-policy-save-slice-fixture",
|
||
|
|
"source": {
|
||
|
|
"kind": "captured-runtime",
|
||
|
|
"description": "Fixture proving recovered locomotive policy descriptors import and execute through the ordinary runtime path."
|
||
|
|
},
|
||
|
|
"state_save_slice_path": "packed-event-world-locomotive-policy-save-slice.json",
|
||
|
|
"commands": [
|
||
|
|
{
|
||
|
|
"kind": "service_trigger_kind",
|
||
|
|
"trigger_kind": 6
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"expected_summary": {
|
||
|
|
"packed_event_collection_present": true,
|
||
|
|
"packed_event_record_count": 1,
|
||
|
|
"packed_event_decoded_record_count": 1,
|
||
|
|
"packed_event_imported_runtime_record_count": 1,
|
||
|
|
"event_runtime_record_count": 1,
|
||
|
|
"packed_event_blocked_unmapped_world_descriptor_count": 0,
|
||
|
|
"total_event_record_service_count": 1,
|
||
|
|
"total_trigger_dispatch_count": 1
|
||
|
|
},
|
||
|
|
"expected_state_fragment": {
|
||
|
|
"world_flags": {
|
||
|
|
"world.all_steam_locos_available": true,
|
||
|
|
"world.all_diesel_locos_available": false,
|
||
|
|
"world.all_electric_locos_available": true
|
||
|
|
},
|
||
|
|
"packed_event_collection": {
|
||
|
|
"records": [
|
||
|
|
{
|
||
|
|
"import_outcome": "imported",
|
||
|
|
"decoded_actions": [
|
||
|
|
{
|
||
|
|
"kind": "set_world_flag",
|
||
|
|
"key": "world.all_steam_locos_available",
|
||
|
|
"value": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "set_world_flag",
|
||
|
|
"key": "world.all_diesel_locos_available",
|
||
|
|
"value": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "set_world_flag",
|
||
|
|
"key": "world.all_electric_locos_available",
|
||
|
|
"value": true
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|