Skip to content

Commit 91e3050

Browse files
committed
fix(examples): make tiny-smoke connectivity check bounded and app-agnostic
1 parent d518dfd commit 91e3050

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/tiny-smoke/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ What `run.sh` does:
3333
2. Waits for both VMs to reach `Running`.
3434
3. Finds the `imp-agent` pod on the client VM node.
3535
4. Port-forwards the agent API.
36-
5. Executes an HTTP request from client VM to server VM over the ImpNetwork.
36+
5. Executes a guest-agent command from client VM to server VM (`ping`) over the ImpNetwork.
3737
6. Fails unless guest-exec returns exit code `0`.
3838

3939
## Cleanup

examples/tiny-smoke/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ fi
7676
echo "[5/6] execute connectivity check from ${CLIENT_VM} -> ${SERVER_IP}"
7777
REQ_BODY="$(
7878
cat <<EOF
79-
{"command":["/bin/sh","-lc","wget -qO- http://${SERVER_IP} | grep -qi nginx"]}
79+
{"command":["/bin/sh","-lc","ping -c1 -W2 ${SERVER_IP}"]}
8080
EOF
8181
)"
8282
RESP="$(
83-
curl -fsS -X POST \
83+
curl --max-time 60 -fsS -X POST \
8484
-H "Content-Type: application/json" \
8585
--data "${REQ_BODY}" \
8686
"http://127.0.0.1:${LOCAL_AGENT_PORT}/v1/exec/${NS}/${CLIENT_VM}"

0 commit comments

Comments
 (0)