Skip to content

Agent Mesh

tests/e2e: pin the chart values the bats lane asserts on

Tomas Tormoa0cffcccdd58
diff --git a/tests/e2e/lib/container_mesh.bash b/tests/e2e/lib/container_mesh.bash
index 8f066084..22fb3bf3 100644
--- a/tests/e2e/lib/container_mesh.bash
+++ b/tests/e2e/lib/container_mesh.bash
@@ -363,6 +363,10 @@ if [[ -z "${MESH_HELPERS_LOADED:-}" ]]; then
fi
fi
+ # router.externalAddrs: nodes resolve sam-router per-network via --add-host, so the router must
+ # announce that name. Announcing a node IP instead is unroutable from an isolated test network.
+ # bootstrap.nodeServices: policy.bats asserts the control plane denies an ungranted service, so
+ # this lane pins the grants it tests rather than inheriting the chart default.
"${helm_bin}" --kube-context="${KUBECONTEXT}" upgrade --install sam ./charts/sam-mesh \
--namespace default \
--set fullnameOverride="sam" \
@@ -375,7 +379,9 @@ if [[ -z "${MESH_HELPERS_LOADED:-}" ]]; then
--set controlPlane.hostPort=8080 \
--set router.useOidcToken=false \
--set router.hostPort=4501 \
- --set console.enabled=false
+ --set console.enabled=false \
+ --set 'router.externalAddrs={/dns4/sam-router/tcp/4501}' \
+ --set 'bootstrap.nodeServices={mcp://calculator,mcp://db-agent,mcp://http-tool,mcp://stdio-tool,system://sam.catalog}'
mesh_wait_for_rollout statefulset/sam-db
mesh_wait_for_rollout deployment/sam-control-plane