Add runtime capability scaffolding and align docs
This commit is contained in:
parent
fb8b985049
commit
cbf212bb7b
19 changed files with 1048 additions and 71 deletions
|
|
@ -5,7 +5,7 @@ from pathlib import Path
|
|||
|
||||
import pytest
|
||||
|
||||
from pyro_mcp.runtime import doctor_report, resolve_runtime_paths
|
||||
from pyro_mcp.runtime import doctor_report, resolve_runtime_paths, runtime_capabilities
|
||||
|
||||
|
||||
def test_resolve_runtime_paths_default_bundle() -> None:
|
||||
|
|
@ -67,7 +67,19 @@ def test_doctor_report_has_runtime_fields() -> None:
|
|||
report = doctor_report()
|
||||
assert "runtime_ok" in report
|
||||
assert "kvm" in report
|
||||
assert "networking" in report
|
||||
if report["runtime_ok"]:
|
||||
runtime = report.get("runtime")
|
||||
assert isinstance(runtime, dict)
|
||||
assert "firecracker_bin" in runtime
|
||||
networking = report["networking"]
|
||||
assert isinstance(networking, dict)
|
||||
assert "tun_available" in networking
|
||||
|
||||
|
||||
def test_runtime_capabilities_reports_shim_bundle() -> None:
|
||||
paths = resolve_runtime_paths()
|
||||
capabilities = runtime_capabilities(paths)
|
||||
assert capabilities.supports_vm_boot is False
|
||||
assert capabilities.supports_guest_exec is False
|
||||
assert capabilities.supports_guest_network is False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue