Skip to content

Commit f41e229

Browse files
committed
WIP: try minikube2
Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
1 parent 0a094f6 commit f41e229

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

node-installer/integration-test-minikube.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,12 @@ echo "Waiting for service to be ready..."
6262
sleep 10
6363

6464
echo "Testing workload with curl..."
65-
minikube service wasm-spin --url -p minikube > service_url.txt
66-
SERVICE_URL=$(cat service_url.txt)
65+
PORT=8080
66+
kubectl port-forward service/wasm-spin $PORT:80 &
67+
PORT_FORWARD_PID=$!
68+
sleep 3
6769

70+
SERVICE_URL="http://localhost:$PORT"
6871
MAX_RETRIES=3
6972
RETRY_COUNT=0
7073
SUCCESS=false
@@ -80,6 +83,8 @@ while [ $RETRY_COUNT -lt $MAX_RETRIES ] && [ "$SUCCESS" = false ]; do
8083
fi
8184
done
8285

86+
kill $PORT_FORWARD_PID 2>/dev/null || true
87+
8388
if [ "$SUCCESS" = true ]; then
8489
echo "=== Integration Test Passed! ==="
8590
minikube delete -p minikube

0 commit comments

Comments
 (0)