Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 0f582b9

Browse files
committed
Add simple test
1 parent 2889f3a commit 0f582b9

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/run-tests.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
3+
helm install --name skydive .
4+
5+
export UI_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services skydive-skydive-service)
6+
export UI_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")
7+
8+
max_retry=20
9+
counter=0
10+
until curl $UI_IP:$UI_PORT
11+
do
12+
sleep 3
13+
[[ counter -eq $max_retry ]] && echo "Failed to reach Skydive UI" && exit 1
14+
echo "Trying again. Try #$counter"
15+
((counter++))
16+
done
17+
18+
helm delete --purge skydive

0 commit comments

Comments
 (0)