github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/tests/suites/model/config.sh (about) 1 run_model_config() { 2 # Echo out to ensure nice output to the test suite. 3 echo 4 5 # The following ensures that a bootstrap juju exists. 6 file="${TEST_DIR}/test-model-config.log" 7 ensure "model-config" "${file}" 8 9 juju model-config provisioner-harvest-mode="none" 10 juju model-config provisioner-harvest-mode | grep "none" 11 juju model-config provisioner-harvest-mode="destroyed" 12 juju model-config provisioner-harvest-mode | grep "destroyed" 13 juju model-config provisioner-harvest-mode="invalid" || echo "ERROR" | grep "ERROR" 14 juju model-config --reset provisioner-harvest-mode 15 16 destroy_model "model-config" 17 } 18 19 test_model_config() { 20 if [ -n "$(skip 'test_model_config')" ]; then 21 echo "==> SKIP: Asked to skip model config tests" 22 return 23 fi 24 25 ( 26 set_verbosity 27 28 cd .. || exit 29 30 run "run_model_config" 31 ) 32 }