Skip to content

Commit

Permalink
Added 'juju switch' output check.
Browse files Browse the repository at this point in the history
  • Loading branch information
anvial committed Sep 19, 2022
1 parent 35d9f54 commit 0abee53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/suites/cli/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ test_cli() {

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

bootstrap "test-cli" "${file}"
# bootstrap "test-cli" "${file}"

test_display_clouds
test_local_charms
test_model_config
test_model_defaults
test_unregister

destroy_controller "test-cli"
# destroy_controller "test-cli"
}
6 changes: 6 additions & 0 deletions tests/suites/cli/unregister.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ EOF
exit 1
fi

echo "Check 'juju switch' returns the error"
if ! JUJU_DATA="${TEST_DIR}/juju" juju switch "unregister-test"; then
echo "'juju switch' returned the error as expected"
exit 0
fi

}

test_unregister() {
Expand Down

0 comments on commit 0abee53

Please sign in to comment.