fix for #50 - remove /0 , be heroku-compatible

This commit is contained in:
Marcio Marchini
2016-05-05 13:08:11 -03:00
parent 961aad764b
commit 423bf1a4ef
5 changed files with 15 additions and 15 deletions

View File

@@ -21,12 +21,12 @@ teardown() {
@test "($PLUGIN_COMMAND_PREFIX:info) success" {
run dokku "$PLUGIN_COMMAND_PREFIX:info" l
assert_contains "${lines[*]}" "DSN: redis://dokku-redis-l:6379/0"
assert_contains "${lines[*]}" "DSN: redis://dokku-redis-l:6379"
}
@test "($PLUGIN_COMMAND_PREFIX:info) replaces underscores by dash in hostname" {
dokku "$PLUGIN_COMMAND_PREFIX:create" test_with_underscores
run dokku "$PLUGIN_COMMAND_PREFIX:info" test_with_underscores
assert_contains "${lines[*]}" "DSN: redis://dokku-redis-test-with-underscores:6379/0"
assert_contains "${lines[*]}" "DSN: redis://dokku-redis-test-with-underscores:6379"
dokku --force "$PLUGIN_COMMAND_PREFIX:destroy" test_with_underscores
}