test(hermes): align native provider contracts
This commit is contained in:
parent
65f2120a20
commit
a253d2b4ff
@ -809,7 +809,10 @@ def test_agent_network_boundary_allows_only_authenticated_web_and_broker_surface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ports": [{"protocol": "TCP", "port": 9003}],
|
"ports": [
|
||||||
|
{"protocol": "TCP", "port": 9003},
|
||||||
|
{"protocol": "TCP", "port": 9006},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
assert isolation["spec"]["egress"] == [{}]
|
assert isolation["spec"]["egress"] == [{}]
|
||||||
@ -847,13 +850,17 @@ def test_switchyard_has_a_dedicated_non_owner_identity_and_read_only_catalog():
|
|||||||
for item in service_accounts
|
for item in service_accounts
|
||||||
)
|
)
|
||||||
|
|
||||||
deployment = yaml.safe_load((HERMES / "switchyard-deployment.yaml").read_text())
|
switchyard = yaml.safe_load(
|
||||||
pod = deployment["spec"]["template"]["spec"]
|
(HERMES / "switchyard-deployment.yaml").read_text()
|
||||||
assert pod["serviceAccountName"] == "hermes-switchyard"
|
)
|
||||||
for container_name in ("claude-oauth-broker", "worker-route-broker"):
|
switchyard_pod = switchyard["spec"]["template"]["spec"]
|
||||||
container = next(
|
assert switchyard_pod["serviceAccountName"] == "hermes-switchyard"
|
||||||
item for item in pod["containers"] if item["name"] == container_name
|
agent_pod = _agent_deployment()["spec"]["template"]["spec"]
|
||||||
)
|
for pod, container_name in (
|
||||||
|
(switchyard_pod, "worker-route-broker"),
|
||||||
|
(agent_pod, "claude-broker"),
|
||||||
|
):
|
||||||
|
container = next(item for item in pod["containers"] if item["name"] == container_name)
|
||||||
catalog = next(
|
catalog = next(
|
||||||
item
|
item
|
||||||
for item in container["volumeMounts"]
|
for item in container["volumeMounts"]
|
||||||
@ -1079,7 +1086,7 @@ def test_codex_runtime_patch_uses_cli_and_forwards_route(tmp_path: Path):
|
|||||||
auxiliary_content = auxiliary_out.read_text()
|
auxiliary_content = auxiliary_out.read_text()
|
||||||
assert 'os.environ.get("CODEX_HOME"' in auxiliary_content
|
assert 'os.environ.get("CODEX_HOME"' in auxiliary_content
|
||||||
assert 'Path(codex_home).expanduser() / "auth.json"' in auxiliary_content
|
assert 'Path(codex_home).expanduser() / "auth.json"' in auxiliary_content
|
||||||
assert "sole owner" in auxiliary_content
|
assert "never creates a metered API-key lane" in auxiliary_content
|
||||||
|
|
||||||
|
|
||||||
def test_agent_mounts_codex_auxiliary_runtime_patch():
|
def test_agent_mounts_codex_auxiliary_runtime_patch():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user