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

Add simple test #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 curl $UI_IP:$UI_PORT
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