Use authentication when creating database

This commit is contained in:
Loïc Guitaut
2015-09-15 19:35:20 +02:00
parent 2059c8356f
commit 31cefc9387
7 changed files with 24 additions and 12 deletions

View File

@@ -21,5 +21,6 @@ teardown() {
@test "($PLUGIN_COMMAND_PREFIX:info) success" {
run dokku "$PLUGIN_COMMAND_PREFIX:info" l
assert_contains "${lines[*]}" "DSN: mongodb://172.17.0.34:27017/l"
password="$(cat "$PLUGIN_DATA_ROOT/l/PASSWORD")"
assert_contains "${lines[*]}" "DSN: mongodb://l:$password@172.17.0.34:27017/l"
}