Skip to content

Commit

Permalink
Rename expose_ec2 to firewall
Browse files Browse the repository at this point in the history
In future versions more firewall related tests will be added
  • Loading branch information
jack-w-shaw committed Apr 18, 2023
1 parent 7976a61 commit 2366674
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion tests/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ TEST_NAMES="agents \
deploy \
deploy_aks \
deploy_caas \
expose_ec2 \
firewall \
hooks \
hooktools \
kubeflow \
Expand Down
20 changes: 0 additions & 20 deletions tests/suites/expose_ec2/task.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ run_bundle_with_exposed_endpoints() {
assert_deploy_bundle_with_expose_flag_and_exposed_endpoints_fails() {
echo "==> Checking that deploying a bundle with both the expose flag and exposed endpoint sections is not allowed"

bundle=./tests/suites/expose_ec2/bundles/invalid.yaml
bundle=./tests/suites/firewall/bundles/invalid.yaml
got=$(juju deploy ${bundle} 2>&1 || true)
check_contains "${got}" 'exposed-endpoints cannot be specified together with "exposed:true" in application "ubuntu-lite" as this poses a security risk when deploying bundles to older controllers'
}
Expand Down
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions tests/suites/firewall/task.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
test_firewall() {
if [ "$(skip 'test_firewall')" ]; then
echo "==> TEST SKIPPED: firewall application tests (EC2)"
return
fi

set_verbosity

echo "==> Checking for dependencies"
check_dependencies juju aws

file="${TEST_DIR}/test-firewall.log"

bootstrap "test-firewall" "${file}"

test_expose_app_ec2
test_bundle_with_exposed_endpoints

destroy_controller "test-firewall"
}

0 comments on commit 2366674

Please sign in to comment.