adapt tests to new --timeout flag

pull/224/head
iwilltry42 4 years ago
parent 1b7f5c5f78
commit 0f9ec09796
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 4
      tests/test_basic.sh
  2. 2
      tests/test_multi_master.sh

@ -7,8 +7,8 @@ CURR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source "$CURR_DIR/common.sh"
info "Creating two clusters..."
$EXE --verbose create cluster c1 --wait 60 --api-port 6443 || failed "could not create cluster c1"
$EXE --verbose create cluster c2 --wait 60 --api-port 6444 || failed "could not create cluster c2"
$EXE --verbose create cluster c1 --wait --timeout 60 --api-port 6443 || failed "could not create cluster c1"
$EXE --verbose create cluster c2 --wait --timeout 60 --api-port 6444 || failed "could not create cluster c2"
info "Checking we have access to both clusters..."
check_k3d_clusters "c1" "c2" || failed "error checking cluster"

@ -7,7 +7,7 @@ CURR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source "$CURR_DIR/common.sh"
info "Creating cluster multimaster..."
$EXE create cluster "multimaster" --masters 3 --api-port 6443 --wait 360 || failed "could not create cluster multimaster"
$EXE create cluster "multimaster" --masters 3 --api-port 6443 --wait --timeout 360 || failed "could not create cluster multimaster"
info "Checking we have access to the cluster..."
check_k3d_clusters "multimaster" || failed "error checking cluster"

Loading…
Cancel
Save