Skip to content

Agent Mesh

remove websocket from e2e tests

Antonio Ojeacfd9631d8c65
diff --git a/tests/e2e/key_rotation_test.bats b/tests/e2e/key_rotation_test.bats
index 8803717d..99a68785 100644
--- a/tests/e2e/key_rotation_test.bats
+++ b/tests/e2e/key_rotation_test.bats
@@ -28,7 +28,8 @@ teardown() {
--issuer "http://mock-oidc:18080" \
--client-id "sam-e2e" \
--key "${key}" \
- --external-multiaddr "/dns4/sam-hub/tcp/9090/ws" \
+ --listen "/ip4/0.0.0.0/tcp/4002" \
+ --external-multiaddr "/dns4/sam-hub/tcp/4002" \
--mesh "e2e-mesh" \
--key-rotation-interval 5s >/dev/null
diff --git a/tests/e2e/lib/container_mesh.bash b/tests/e2e/lib/container_mesh.bash
index 7fc84afe..ff19da32 100644
--- a/tests/e2e/lib/container_mesh.bash
+++ b/tests/e2e/lib/container_mesh.bash
@@ -222,7 +222,8 @@ if [[ -z "${MESH_HELPERS_LOADED:-}" ]]; then
--client-id "sam-e2e" \
--allowed-audiences "sam-e2e,sam-mesh-audience" \
--key "${key}" \
- --external-multiaddr "/dns4/sam-hub/tcp/9090/ws" \
+ --listen "/ip4/0.0.0.0/tcp/4002" \
+ --external-multiaddr "/dns4/sam-hub/tcp/4002" \
--mesh "e2e-mesh" >/dev/null
MESH_CONTAINERS+=("${name}")
diff --git a/tests/e2e/policy.bats b/tests/e2e/policy.bats
index af9ba09e..3f96f1ab 100644
--- a/tests/e2e/policy.bats
+++ b/tests/e2e/policy.bats
@@ -185,7 +185,8 @@ EOF"
--client-id "sam-e2e" \
--allowed-audiences "sam-e2e" \
--key "${key}" \
- --external-multiaddr "/dns4/sam-hub/tcp/9090/ws" \
+ --listen "/ip4/0.0.0.0/tcp/4002" \
+ --external-multiaddr "/dns4/sam-hub/tcp/4002" \
--mesh "e2e-mesh" \
--policy-file "/etc/sam/policies.yaml" >/dev/null