fix: allow reporting domains when there are none specified

This previously bailed if the response was empty, which in this case is incorrect, as the response isn't based on whether the app is deployed or not.
This commit is contained in:
Jose Diaz-Gonzalez
2019-04-16 21:24:56 -04:00
parent 8a56740a7c
commit 65e82bcea1
2 changed files with 10 additions and 1 deletions

View File

@@ -63,7 +63,6 @@ cmd-domains-report-single() {
fi
done
[[ "$match" == "true" ]] || dokku_log_fail "Invalid flag passed, valid flags:${valid_flags}"
[[ "$value_exists" == "true" ]] || dokku_log_fail "not deployed"
fi
}

View File

@@ -173,6 +173,11 @@ teardown() {
echo "status: $status"
assert_success
run /bin/bash -c "dokku domains:report $TEST_APP"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku domains:clear $TEST_APP"
echo "output: $output"
echo "status: $status"
@@ -183,6 +188,11 @@ teardown() {
echo "status: $status"
assert_success
refute_line test.app.dokku.me
run /bin/bash -c "dokku domains:report $TEST_APP"
echo "output: $output"
echo "status: $status"
assert_success
}
@test "(domains) domains:add-global" {