rrt/fixtures/runtime/periodic-boundary-service-smoke.json

102 lines
2.1 KiB
JSON

{
"format_version": 1,
"fixture_id": "periodic-boundary-service-smoke",
"source": {
"kind": "synthetic",
"description": "Synthetic milestone 2 fixture covering periodic trigger order and dirty rerun dispatch."
},
"state": {
"calendar": {
"year": 1830,
"month_slot": 0,
"phase_slot": 0,
"tick_slot": 0
},
"world_flags": {
"sandbox": false
},
"companies": [
{
"company_id": 1,
"current_cash": 250000,
"debt": 1000
}
],
"event_runtime_records": [
{
"record_id": 1,
"trigger_kind": 1,
"active": true,
"marks_collection_dirty": true,
"effects": [
{
"kind": "set_world_flag",
"key": "runtime.effect_fired",
"value": true
}
]
},
{
"record_id": 2,
"trigger_kind": 4,
"active": true,
"effects": [
{
"kind": "adjust_company_cash",
"target": {
"kind": "all_active"
},
"delta": 5
}
]
},
{
"record_id": 3,
"trigger_kind": 10,
"active": true,
"effects": [
{
"kind": "set_special_condition",
"label": "Dirty rerun fired",
"value": 1
}
]
}
]
},
"commands": [
{
"kind": "service_periodic_boundary"
}
],
"expected_summary": {
"calendar": {
"year": 1830,
"month_slot": 0,
"phase_slot": 0,
"tick_slot": 0
},
"world_flag_count": 2,
"company_count": 1,
"event_runtime_record_count": 3,
"total_event_record_service_count": 3,
"periodic_boundary_call_count": 1,
"total_trigger_dispatch_count": 7,
"dirty_rerun_count": 1,
"total_company_cash": 250005
},
"expected_state_fragment": {
"world_flags": {
"runtime.effect_fired": true
},
"companies": [
{
"company_id": 1,
"current_cash": 250005
}
],
"special_conditions": {
"Dirty rerun fired": 1
}
}
}