fix: correct tests and handle a few edge cases in remote command usage

This commit is contained in:
Jose Diaz-Gonzalez
2023-01-14 19:49:14 -05:00
parent 9d380e5654
commit a4136f4719
2 changed files with 16 additions and 5 deletions

View File

@@ -265,13 +265,12 @@ teardown() {
echo "output: $output"
echo "status: $status"
assert_success
assert_output "dokku2"
run /bin/bash -c "${BATS_TEST_DIRNAME}/../../contrib/dokku_client.sh remote:list"
echo "output: $output"
echo "status: $status"
assert_success
assert_output "dokku\dokku2"
assert_output "$(printf "dokku\ndokku2")"
run /bin/bash -c "${BATS_TEST_DIRNAME}/../../contrib/dokku_client.sh remote:remove dokku2"
echo "output: $output"
@@ -289,6 +288,11 @@ teardown() {
echo "status: $status"
assert_success
run /bin/bash -c "${BATS_TEST_DIRNAME}/../../contrib/dokku_client.sh remote:unset"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "${BATS_TEST_DIRNAME}/../../contrib/dokku_client.sh remote"
echo "output: $output"
echo "status: $status"