feat: implement link querystring flags. Refs dokku/dokku-redis#64

This commit is contained in:
Jose Diaz-Gonzalez
2018-04-24 01:40:27 -04:00
parent a66c040cbc
commit 527b3bc54b
4 changed files with 13 additions and 3 deletions

View File

@@ -68,3 +68,10 @@ teardown() {
assert_contains "$url" "postgres2://postgres:$password@dokku-postgres-l:5432/l"
dokku "$PLUGIN_COMMAND_PREFIX:unlink" l my_app
}
@test "($PLUGIN_COMMAND_PREFIX:link) adds a querystring" {
dokku "$PLUGIN_COMMAND_PREFIX:link" l my_app --querystring "pool=5"
url=$(dokku config:get my_app DATABASE_URL)
assert_contains "$url" "?pool=4"
dokku "$PLUGIN_COMMAND_PREFIX:unlink" l my_app
}