We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a094f6 commit f41e229Copy full SHA for f41e229
node-installer/integration-test-minikube.sh
@@ -62,9 +62,12 @@ echo "Waiting for service to be ready..."
62
sleep 10
63
64
echo "Testing workload with curl..."
65
-minikube service wasm-spin --url -p minikube > service_url.txt
66
-SERVICE_URL=$(cat service_url.txt)
+PORT=8080
+kubectl port-forward service/wasm-spin $PORT:80 &
67
+PORT_FORWARD_PID=$!
68
+sleep 3
69
70
+SERVICE_URL="http://localhost:$PORT"
71
MAX_RETRIES=3
72
RETRY_COUNT=0
73
SUCCESS=false
@@ -80,6 +83,8 @@ while [ $RETRY_COUNT -lt $MAX_RETRIES ] && [ "$SUCCESS" = false ]; do
80
83
fi
81
84
done
82
85
86
+kill $PORT_FORWARD_PID 2>/dev/null || true
87
+
88
if [ "$SUCCESS" = true ]; then
89
echo "=== Integration Test Passed! ==="
90
minikube delete -p minikube
0 commit comments