Bundle firecracker runtime and switch ollama demo to live logs
This commit is contained in:
parent
ef0ddeaa11
commit
65f7c0d262
26 changed files with 1896 additions and 408 deletions
24
tests/test_vm_profiles.py
Normal file
24
tests/test_vm_profiles.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from pyro_mcp.vm_profiles import get_profile, list_profiles, resolve_artifacts
|
||||
|
||||
|
||||
def test_list_profiles_includes_expected_entries() -> None:
|
||||
profiles = list_profiles()
|
||||
names = {str(entry["name"]) for entry in profiles}
|
||||
assert {"debian-base", "debian-git", "debian-build"} <= names
|
||||
|
||||
|
||||
def test_get_profile_rejects_unknown() -> None:
|
||||
with pytest.raises(ValueError, match="unknown profile"):
|
||||
get_profile("does-not-exist")
|
||||
|
||||
|
||||
def test_resolve_artifacts() -> None:
|
||||
artifacts = resolve_artifacts(Path("/tmp/artifacts"), "debian-git")
|
||||
assert str(artifacts.kernel_image).endswith("/debian-git/vmlinux")
|
||||
assert str(artifacts.rootfs_image).endswith("/debian-git/rootfs.ext4")
|
||||
Loading…
Add table
Add a link
Reference in a new issue