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

Commit

Permalink
Add simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Jun 11, 2020
1 parent 2889f3a commit 0451199
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

helm install --name skydive .

export UI_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services skydive-skydive-service)
export UI_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")

max_retry=20
counter=0
until $command
do
sleep 3
[[ counter -eq $max_retry ]] && echo "Failed to reach Skydive UI" && exit 1
echo "Trying again. Try #$counter"
((counter++))
done

helm delete --purge skydive

0 comments on commit 0451199

Please sign in to comment.