Skip to content

Commit

Permalink
Merge pull request #15499 from jack-w-shaw/JUJU-3488_rename_expose_ec…
Browse files Browse the repository at this point in the history
…2_to_firewall

#15499

In future versions more firewall related tests have be added

Change the name here to keep the suite names consistent

## Checklist

- ~[ ] Code style: imports ordered, good names, simple structure, etc~
- ~[ ] Comments saying why design decisions were made~
- ~[ ] Go unit tests, with comments saying what you're testing~
- [x] [Integration tests](https://github.com/juju/juju/tree/develop/tests), with comments saying what you're testing
- ~[ ] [doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages~

## QA steps

```sh
./main.sh -v -c aws -p ec2 firewall
```
  • Loading branch information
jujubot committed Apr 18, 2023
2 parents 7976a61 + 3c1f901 commit a6cf482
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 tests"
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 a6cf482

Please sign in to comment.