Skip to content

Commit

Permalink
WIP: Start work on moving display clouds to an integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRichardson committed Jan 6, 2020
1 parent 12db207 commit 40dfedb
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
Empty file.
25 changes: 25 additions & 0 deletions tests/suites/cli/display_clouds.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
run_show_clouds() {
echo

touch "${TEST_DIR}/public-clouds.yaml"

OUT=$(XDG_DATA_HOME="${TEST_DIR}" juju clouds --local --format=json 2>/dev/null)
if [ -n "${OUT}" ]; then
echo "expected empty ${OUT}"
fi
}

test_display_clouds() {
if [ "$(skip 'test_display_clouds')" ]; then
echo "==> TEST SKIPPED: display clouds"
return
fi

(
set_verbosity

cd .. || exit

run "run_show_clouds"
)
}
File renamed without changes.
7 changes: 4 additions & 3 deletions tests/suites/cli/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ test_cli() {
echo "==> Checking for dependencies"
check_dependencies juju

file="${TEST_DIR}/test-local-charms.txt"
file="${TEST_DIR}/test-cli.txt"

bootstrap "test-local-charms" "${file}"
bootstrap "test-cli" "${file}"

test_display_clouds
test_local_charms

destroy_controller "test-local-charms"
destroy_controller "test-cli"
}

0 comments on commit 40dfedb

Please sign in to comment.