Fix failing tests on master and test all .0 minor releases

This commit is contained in:
Jose Diaz-Gonzalez
2016-08-27 05:14:18 -04:00
parent 2ebbeb67f4
commit 1a6ce26129
4 changed files with 47 additions and 3 deletions

View File

@@ -39,8 +39,11 @@ teardown() {
@test "($PLUGIN_COMMAND_PREFIX:unlink) removes link from docker-options" {
dokku "$PLUGIN_COMMAND_PREFIX:link" l my_app >&2
dokku "$PLUGIN_COMMAND_PREFIX:unlink" l my_app
options=$(dokku docker-options my_app)
assert_equal "$options" ""
options=$(dokku docker-options my_app | xargs)
check_value=""
[[ "$(dokku version)" == "master" ]] && check_value="Deploy options: --restart=on-failure:10"
[[ "$(at-least-version 0.7.0 "$(dokku version)")" == "true" ]] && check_value="Deploy options: --restart=on-failure:10"
assert_equal "$options" "$check_value"
}
@test "($PLUGIN_COMMAND_PREFIX:unlink) unsets config url from app" {