93 lines
2.4 KiB
JSON
93 lines
2.4 KiB
JSON
{
|
|
"format_version": 1,
|
|
"fixture_id": "packed-event-ordinary-company-finance-overlay-fixture",
|
|
"source": {
|
|
"kind": "captured-runtime",
|
|
"description": "Fixture proving real ordinary Current Cash conditions gate Company Cash through the normal runtime path."
|
|
},
|
|
"state_input_path": "packed-event-ordinary-company-finance-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": 3,
|
|
"active_company_count": 3,
|
|
"territory_count": 1,
|
|
"company_territory_track_count": 3,
|
|
"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,
|
|
"packed_event_blocked_unmapped_ordinary_condition_count": 0,
|
|
"event_runtime_record_count": 1,
|
|
"total_event_record_service_count": 1,
|
|
"total_trigger_dispatch_count": 1,
|
|
"total_company_cash": 623
|
|
},
|
|
"expected_state_fragment": {
|
|
"companies": [
|
|
{
|
|
"company_id": 1,
|
|
"current_cash": 333
|
|
},
|
|
{
|
|
"company_id": 2,
|
|
"current_cash": 90
|
|
},
|
|
{
|
|
"company_id": 3,
|
|
"current_cash": 200
|
|
}
|
|
],
|
|
"packed_event_collection": {
|
|
"records": [
|
|
{
|
|
"import_outcome": "imported",
|
|
"decoded_conditions": [
|
|
{
|
|
"kind": "company_numeric_threshold",
|
|
"target": {
|
|
"kind": "selected_company"
|
|
},
|
|
"metric": "current_cash",
|
|
"comparator": "ge",
|
|
"value": 100
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"event_runtime_records": [
|
|
{
|
|
"record_id": 41,
|
|
"service_count": 1,
|
|
"conditions": [
|
|
{
|
|
"kind": "company_numeric_threshold",
|
|
"target": {
|
|
"kind": "selected_company"
|
|
},
|
|
"metric": "current_cash",
|
|
"comparator": "ge",
|
|
"value": 100
|
|
}
|
|
],
|
|
"effects": [
|
|
{
|
|
"kind": "set_company_cash",
|
|
"target": {
|
|
"kind": "condition_true_company"
|
|
},
|
|
"value": 333
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|