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:
vitor-aignosi
2025-08-21 09:27:57 -03:00
parent 2ade08c916
commit 5992909a61
2 changed files with 4 additions and 2 deletions

View File

@@ -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)

View File

@@ -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(