test-110-cli.sh 702 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. set -xeuo pipefail
  3. NAMESPACE="cli-test"
  4. OUTFILE="cli-test.log"
  5. kubectl create namespace "$NAMESPACE"
  6. ./rook --log-level DEBUG multus validation run \
  7. --namespace "$NAMESPACE" \
  8. --public-network default/public-net \
  9. --cluster-network default/cluster-net \
  10. --daemons-per-node 2 \
  11. 2>&1 | tee "$OUTFILE"
  12. grep "starting 2 osd validation clients for node type" "$OUTFILE"
  13. grep "starting 0 other (non-OSD) validation clients for node type" "$OUTFILE"
  14. grep "all 6 clients are 'Ready'" "$OUTFILE"
  15. # should be no non-terminating resources in namespace after successful test
  16. [[ -z "$(kubectl --namespace "$NAMESPACE" get pods --no-headers 2>/dev/null | grep -v Terminating)" ]]