talos/hack/dev/integration.sh
Andrew Rynhard 1c2af06ba7
chore: add basic integration test (#502)
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-04-08 10:24:45 -07:00

15 lines
310 B
Bash
Executable File

#!/bin/bash
set -eou pipefail
{
sleep 300
echo "Timed out waiting for integration tests"
kill $$
} &
until ./osctl.sh kubeconfig > kubeconfig; do cat kubeconfig; sleep 5; done
until ./kubectl.sh get nodes -o json | jq '.items | length' | grep 4; do ./kubectl.sh get nodes; sleep 5; done
exit 0