Skip to content
Permalink
Browse files

sleep to ensure dashboard/webhook are ready (#189)

  • Loading branch information...
rbren committed Aug 14, 2019
1 parent 467ab94 commit 15b14555a6719373688e569fe9af50423cbe027c
Showing with 4 additions and 4 deletions.
  1. +1 −1 .circleci/config.yml
  2. +2 −2 test/kube_dashboard_test.sh
  3. +1 −1 test/webhook_test.sh
@@ -59,7 +59,7 @@ references:
name: Test Dashboard
command: |
go run main.go --dashboard --dashboard-port 3000 --audit-path ./examples &
sleep 5
sleep 30
curl -f http://localhost:3000 > /dev/null
curl -f http://localhost:3000/health > /dev/null
curl -f http://localhost:3000/favicon.ico > /dev/null
@@ -28,10 +28,10 @@ kubectl apply -f ./deploy/dashboard.yaml &>/dev/null
check_dashboard_is_ready

kubectl port-forward --namespace polaris svc/polaris-dashboard 3000:80 &
sleep 5
sleep 30
curl -f http://localhost:3000 > /dev/null
curl -f http://localhost:3000/health > /dev/null
curl -f http://localhost:3000/favicon.ico > /dev/null
curl -f http://localhost:3000/static/css/main.css > /dev/null
curl -f http://localhost:3000/results.json > /dev/null
curl -f http://localhost:3000/details/security > /dev/null
curl -f http://localhost:3000/details/security > /dev/null
@@ -59,7 +59,7 @@ kubectl apply -f ./deploy/webhook.yaml &> /dev/null

# wait for the webhook to come online
check_webhook_is_ready

sleep 30

# Webhook started, setting all tests as passed initially.
ALL_TESTS_PASSED=1

0 comments on commit 15b1455

Please sign in to comment.
You can’t perform that action at this time.