Test unknown run event properties generically

This commit is contained in:
Scott Werner 2026-08-03 16:23:00 -04:00
parent 6bfcbcf138
commit 2ecb8e0366
2 changed files with 4 additions and 5 deletions

View file

@ -2351,7 +2351,7 @@ mod tests {
}
#[test]
fn historical_run_created_with_removed_fields_replays_into_projection() {
fn run_created_replay_ignores_unknown_properties() {
let provenance = test_support::test_run_provenance();
let event = test_raw_event(
1,
@ -2361,12 +2361,12 @@ mod tests {
"settings": WorkflowSettings::default(),
"graph": Graph::new("historical"),
"workflow_source": "digraph historical { start -> exit }",
"workflow_config": "[workflow]\ngraph = \"workflow.fabro\"",
"labels": {"team": "platform"},
"run_dir": "/tmp/historical-run",
"source_directory": "/workspace/project",
"workflow_slug": "historical",
"db_prefix": "run_",
"unknown_future_property": {
"nested": ["value", 42, true]
},
"provenance": provenance
}),
None,

View file

@ -129,7 +129,6 @@ fn run_created_props_defaults_additive_fields_for_legacy_events() {
"settings": WorkflowSettings::default(),
"graph": Graph::new("ship"),
"labels": {},
"run_dir": "/tmp/run",
"provenance": test_run_provenance()
});