fix: parse malformed schedule_days string from Robot Framework
Robot Framework's Create Dictionary converts ['mon', 'tue'] into a string. Add _parse_schedule_days to handle JSON/Python-literal parsing before Pydantic type validation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -61,8 +61,7 @@ Invalid Schedule Time
|
||||
... schedule_time=25:00
|
||||
... schedule_days=['mon']
|
||||
... auto_download_after_rescan=False
|
||||
${resp}= Update Scheduler Config ${payload}
|
||||
Response Should Have Status ${resp} 422
|
||||
${resp}= POST API /api/scheduler/config ${payload} expected_status=422
|
||||
|
||||
Invalid Schedule Days
|
||||
[Documentation] Verify that invalid day abbreviations are rejected.
|
||||
@@ -72,8 +71,7 @@ Invalid Schedule Days
|
||||
... schedule_time=03:00
|
||||
... schedule_days=['monday', 'tuesday']
|
||||
... auto_download_after_rescan=False
|
||||
${resp}= Update Scheduler Config ${payload}
|
||||
Response Should Have Status ${resp} 422
|
||||
${resp}= POST API /api/scheduler/config ${payload} expected_status=422
|
||||
|
||||
Empty Schedule Days
|
||||
[Documentation] Verify that empty schedule_days is handled.
|
||||
|
||||
Reference in New Issue
Block a user