SIENTIAPDE-1199
fix: add metadata handling in schedule configuration tests - Enhanced the test cases in test_formatters.py and test_temporal_manager.py to include metadata in the schedule configuration inputs. - This change improves the accuracy and traceability of the tests by ensuring that metadata is properly accounted for in the test scenarios.
This commit is contained in:
@@ -354,7 +354,8 @@ async def test_format_schedule_config(formatters):
|
|||||||
"updated_at": "2021-01-01"},
|
"updated_at": "2021-01-01"},
|
||||||
{"namespace": "test_namespace2", "schedule_name": "test2",
|
{"namespace": "test_namespace2", "schedule_name": "test2",
|
||||||
"updated_at": "2021-01-02"}
|
"updated_at": "2021-01-02"}
|
||||||
]
|
],
|
||||||
|
**metadata
|
||||||
}
|
}
|
||||||
|
|
||||||
result = await formatters.format_schedule_config(input_data)
|
result = await formatters.format_schedule_config(input_data)
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ async def test_normalize_schedules(temporal_manager):
|
|||||||
"orchestrated_schedules": {
|
"orchestrated_schedules": {
|
||||||
"scouter": {"test-scouter": "2021-01-01"},
|
"scouter": {"test-scouter": "2021-01-01"},
|
||||||
"laborious": {"test-schedule-id1": "2021-01-01"}
|
"laborious": {"test-schedule-id1": "2021-01-01"}
|
||||||
}
|
},
|
||||||
|
**metadata
|
||||||
}
|
}
|
||||||
|
|
||||||
temporal_manager.temporal_clients['scouter'].list_schedules = AsyncMock(
|
temporal_manager.temporal_clients['scouter'].list_schedules = AsyncMock(
|
||||||
|
|||||||
Reference in New Issue
Block a user