Added test
This commit is contained in:
@@ -32,3 +32,13 @@ def test_create(api: TestClient, test_flake_with_core: Path) -> None:
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
assert response.status_code == 200, "Failed to inspect vm"
|
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"
|
||||||
Reference in New Issue
Block a user