Execute real packed event world and train descriptors
This commit is contained in:
parent
ca208f74e0
commit
e481274243
31 changed files with 3287 additions and 206 deletions
|
|
@ -0,0 +1,81 @@
|
|||
{
|
||||
"format_version": 1,
|
||||
"fixture_id": "packed-event-confiscate-all-overlay-fixture",
|
||||
"source": {
|
||||
"kind": "captured-runtime",
|
||||
"description": "Fixture proving descriptor 9 Confiscate All imports and executes through the ordinary runtime path."
|
||||
},
|
||||
"state_import_path": "packed-event-confiscate-all-overlay.json",
|
||||
"commands": [
|
||||
{
|
||||
"kind": "service_trigger_kind",
|
||||
"trigger_kind": 7
|
||||
}
|
||||
],
|
||||
"expected_summary": {
|
||||
"calendar_projection_source": "base-snapshot-preserved",
|
||||
"calendar_projection_is_placeholder": false,
|
||||
"company_count": 2,
|
||||
"active_company_count": 1,
|
||||
"train_count": 3,
|
||||
"active_train_count": 1,
|
||||
"retired_train_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,
|
||||
"event_runtime_record_count": 1,
|
||||
"total_event_record_service_count": 1,
|
||||
"total_trigger_dispatch_count": 1,
|
||||
"total_company_cash": 90
|
||||
},
|
||||
"expected_state_fragment": {
|
||||
"selected_company_id": null,
|
||||
"companies": [
|
||||
{
|
||||
"company_id": 1,
|
||||
"current_cash": 0,
|
||||
"debt": 0,
|
||||
"active": false
|
||||
},
|
||||
{
|
||||
"company_id": 2,
|
||||
"current_cash": 90,
|
||||
"debt": 40,
|
||||
"active": true
|
||||
}
|
||||
],
|
||||
"trains": [
|
||||
{
|
||||
"train_id": 100,
|
||||
"active": false,
|
||||
"retired": true
|
||||
},
|
||||
{
|
||||
"train_id": 101,
|
||||
"active": false,
|
||||
"retired": true
|
||||
},
|
||||
{
|
||||
"train_id": 102,
|
||||
"active": true,
|
||||
"retired": false
|
||||
}
|
||||
],
|
||||
"packed_event_collection": {
|
||||
"records": [
|
||||
{
|
||||
"import_outcome": "imported",
|
||||
"decoded_actions": [
|
||||
{
|
||||
"kind": "confiscate_company_assets",
|
||||
"target": {
|
||||
"kind": "selected_company"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue