Added test
This commit is contained in:
parent
f6c8b963c1
commit
04f3547be0
@ -32,3 +32,13 @@ def test_create(api: TestClient, test_flake_with_core: Path) -> None:
|
||||
),
|
||||
)
|
||||
assert response.status_code == 200, "Failed to inspect vm"
|
||||
|
||||
uuid = response.json()["uuid"]
|
||||
assert len(uuid) == 36
|
||||
assert uuid.count("-") == 4
|
||||
|
||||
response = api.get(f"/api/vms/{uuid}/status")
|
||||
for line in response.stream:
|
||||
print(line)
|
||||
|
||||
assert response.status_code == 200, "Failed to get vm status"
|
Loading…
Reference in New Issue
Block a user