github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/tests/includes/controller.sh (about) 1 # Bootstraps alternate controller in test 2 bootstrap_alt_controller() { 3 local name 4 5 name=${1} 6 7 START_TIME=$(date +%s) 8 echo "====> Bootstrapping ${name}" 9 10 # Unset to re-generate from the new agent-version. 11 unset BOOTSTRAP_ADDITIONAL_ARGS 12 13 file="${TEST_DIR}/${name}.log" 14 juju_bootstrap "${BOOTSTRAP_CLOUD}" "${name}" "misc" "${file}" 15 16 END_TIME=$(date +%s) 17 echo "====> Bootstrapped ${name} ($((END_TIME - START_TIME))s)" 18 } 19 20 # Bootstraps custom controller in test 21 bootstrap_custom_controller() { 22 local name cloud_name 23 24 name=${1} 25 cloud_name=${2} 26 27 START_TIME=$(date +%s) 28 echo "====> Bootstrapping ${name}" 29 30 # Unset to re-generate from the new agent-version. 31 unset BOOTSTRAP_ADDITIONAL_ARGS 32 33 file="${TEST_DIR}/${name}.log" 34 juju_bootstrap "${cloud_name}" "${name}" "misc" "${file}" 35 36 END_TIME=$(date +%s) 37 echo "====> Bootstrapped ${name} ($((END_TIME - START_TIME))s)" 38 }