fix(cron): prevent unbound automation execution
This commit is contained in:
@@ -1026,6 +1026,20 @@ async def test_webui_automations_route_lists_all_jobs_and_allows_user_actions(
|
||||
)
|
||||
assert disabled_run.status_code == 409
|
||||
|
||||
unbound_run = await _http_get(
|
||||
f"{base_url}/api/webui/automations/run?id={incomplete_job.id}",
|
||||
headers=auth,
|
||||
)
|
||||
assert unbound_run.status_code == 409
|
||||
assert "no linked chat" in unbound_run.text
|
||||
|
||||
unbound_enable = await _http_get(
|
||||
f"{base_url}/api/webui/automations/enable?id={incomplete_job.id}",
|
||||
headers=auth,
|
||||
)
|
||||
assert unbound_enable.status_code == 409
|
||||
assert "no linked chat" in unbound_enable.text
|
||||
|
||||
protected_delete = await _http_get(
|
||||
f"{base_url}/api/webui/automations/delete?id=heartbeat",
|
||||
headers=auth,
|
||||
|
||||
Reference in New Issue
Block a user