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

This commit is contained in:
Jose Diaz-Gonzalez
2018-04-24 01:40:32 -04:00
parent 0bc9237c61
commit 4e746fc624
4 changed files with 13 additions and 3 deletions

View File

@@ -68,3 +68,10 @@ teardown() {
assert_contains "$url" "redis2://l:$password@dokku-redis-l:6379"
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 REDIS_URL)
assert_contains "$url" "?pool=4"
dokku "$PLUGIN_COMMAND_PREFIX:unlink" l my_app
}