Added test

This commit is contained in:
Luis Hebendanz 2023-09-26 12:14:26 +02:00 committed by Mic92
parent f6c8b963c1
commit 04f3547be0

View File

@ -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"