Skip to content

Commit

Permalink
Update run_* tests to test_* so juju-qa-jenkins generator picks them up
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt committed Apr 6, 2022
1 parent 5a29872 commit 00ed729
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/suites/caasadmission/admission.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
run_controller_model_admission() {
test_controller_model_admission() {
# Echo out to ensure nice output to the test suite.
echo

Expand Down Expand Up @@ -82,7 +82,7 @@ EOF
destroy_model "${model_name}"
}

run_new_model_admission() {
test_new_model_admission() {
# Echo out to ensure nice output to the test suite.
echo

Expand Down Expand Up @@ -167,7 +167,7 @@ EOF

# Tests that after the model operator pod restarts it can come back up without
# having to be validated by itself.
run_model_chicken_and_egg() {
test_model_chicken_and_egg() {
# Echo out to ensure nice output to the test suite.
echo

Expand Down
6 changes: 3 additions & 3 deletions tests/suites/caasadmission/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ test_caasadmission() {
microk8s.config >"${TEST_DIR}"/kube.conf
export KUBE_CONFIG="${TEST_DIR}"/kube.conf

run_controller_model_admission
run_new_model_admission
run_model_chicken_and_egg
test_controller_model_admission
test_new_model_admission
test_model_chicken_and_egg
;;
*)
echo "==> TEST SKIPPED: caas admission tests, not a k8s provider"
Expand Down
2 changes: 1 addition & 1 deletion tests/suites/sidecar/sidecar.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
run_deploy_and_remove_application() {
test_deploy_and_remove_application() {
echo

# Ensure that a valid Juju controller exists
Expand Down
2 changes: 1 addition & 1 deletion tests/suites/sidecar/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_sidecar() {

case "${BOOTSTRAP_PROVIDER:-}" in
"k8s")
run_deploy_and_remove_application
test_deploy_and_remove_application
;;
*)
echo "==> TEST SKIPPED: sidecar charm tests, not a k8s provider"
Expand Down

0 comments on commit 00ed729

Please sign in to comment.