feat(ui): add routed operator workflows
This commit is contained in:
@@ -97,6 +97,18 @@ async def test_local_source_probe_archive_and_repository_targeted_job(
|
||||
)
|
||||
assert job.status_code == 201
|
||||
assert "destination_path" not in job.json()
|
||||
invalid_patch = await client.patch(
|
||||
f"/api/v2/jobs/{job.json()['id']}", json={}, headers=headers
|
||||
)
|
||||
assert invalid_patch.status_code == 422
|
||||
updated_job = await client.patch(
|
||||
f"/api/v2/jobs/{job.json()['id']}",
|
||||
json={"name": "renamed-job", "exclusions": ["*.cache"]},
|
||||
headers=headers,
|
||||
)
|
||||
assert updated_job.status_code == 200
|
||||
assert updated_job.json()["name"] == "renamed-job"
|
||||
assert updated_job.json()["exclusions"] == ["*.cache"]
|
||||
execution = await client.post(
|
||||
f"/api/v2/jobs/{job.json()['id']}/executions", headers=headers
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user