github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/tests/suites/firewall/task.sh (about) 1 test_firewall() { 2 if [ "$(skip 'test_firewall')" ]; then 3 echo "==> TEST SKIPPED: firewall tests" 4 return 5 fi 6 7 set_verbosity 8 9 echo "==> Checking for dependencies" 10 check_dependencies juju aws 11 12 file="${TEST_DIR}/test-firewall.txt" 13 14 bootstrap "test-firewall" "${file}" 15 16 case "${BOOTSTRAP_PROVIDER:-}" in 17 "ec2") 18 test_firewall_ssh 19 ;; 20 *) 21 echo "==> TEST SKIPPED: test_firewall_ssh test runs on aws only" 22 ;; 23 esac 24 25 case "${BOOTSTRAP_PROVIDER:-}" in 26 "ec2") 27 test_expose_app_ec2 28 ;; 29 *) 30 echo "==> TEST SKIPPED: test_expose_app_ec2 test runs on aws only" 31 ;; 32 esac 33 34 case "${BOOTSTRAP_PROVIDER:-}" in 35 "ec2") 36 test_bundle_with_exposed_endpoints 37 ;; 38 *) 39 echo "==> TEST SKIPPED: test_bundle_with_exposed_endpoints test runs on aws only" 40 ;; 41 esac 42 43 destroy_controller "test-firewall" 44 }