Skip to content

Commit

Permalink
[ck test] kill controller afterwards
Browse files Browse the repository at this point in the history
  • Loading branch information
barrettj12 committed Aug 5, 2022
1 parent 95186b2 commit 0c6e3c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 2 additions & 7 deletions tests/suites/ck/ck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ run_deploy_ck() {
echo

local name model_name file overlay_path kube_home storage_path
name="${2}"
name="deploy-ck"
model_name="${name}"
file="${TEST_DIR}/${model_name}.log"

Expand Down Expand Up @@ -52,8 +52,6 @@ run_deploy_caas_workload() {

wait_for "active" '.applications["mariadb-k8s"] | ."application-status".current'
wait_for "active" '.applications["mediawiki-k8s"] | ."application-status".current'

destroy_model "${model_name}"
}

test_deploy_ck() {
Expand All @@ -66,11 +64,8 @@ test_deploy_ck() {
set_verbosity

cd .. || exit
local run_deploy_ck_name="deploy-ck"
run "run_deploy_ck" "${run_deploy_ck_name}"

run "run_deploy_ck"
run "run_deploy_caas_workload"

destroy_model "${run_deploy_ck_name}" 60m
)
}
3 changes: 2 additions & 1 deletion tests/suites/ck/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ test_ck() {

test_deploy_ck

destroy_controller "test-ck"
# CK takes too long to tear down (1h+), so forcibly destroy it
juju kill-controller -y -t 0s "test-ck" || true
}

0 comments on commit 0c6e3c2

Please sign in to comment.