chore(cloud): verify integration change
This commit is contained in:
@@ -177,7 +177,9 @@ def test_one_host_executes_assignment_through_outbound_protocol(tmp_path) -> Non
|
||||
async with _control_plane(tmp_path / "one-host.sqlite3", "host-a") as app:
|
||||
async with _host_client(app, "host-a", request_paths=paths) as client:
|
||||
await _sync_fake_device(client, "host-a", "device-a")
|
||||
task_id = app.state.cloud_services.scheduler.submit(goal="open settings")
|
||||
task_id = app.state.cloud_services.scheduler.submit(
|
||||
goal="open settings"
|
||||
)
|
||||
app.state.cloud_services.scheduler.assign()
|
||||
assignment = await client.claim()
|
||||
assert assignment is not None
|
||||
@@ -287,7 +289,9 @@ def test_host_agent_restart_reuses_active_lease(tmp_path) -> None:
|
||||
assert (await restarted_client.renew(assignment)).status == "renewed"
|
||||
await restarted_client.report_result(assignment, status="done")
|
||||
|
||||
assert app.state.cloud_services.repository.get_task(task_id).status == "done"
|
||||
assert (
|
||||
app.state.cloud_services.repository.get_task(task_id).status == "done"
|
||||
)
|
||||
|
||||
asyncio.run(scenario())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user