mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-10 22:43:37 +00:00
Test unknown run event properties generically
This commit is contained in:
parent
6bfcbcf138
commit
2ecb8e0366
2 changed files with 4 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue