tests: "Can't create a custom user without database"

This commit is contained in:
Sameer Naik 2015-08-10 22:06:43 +05:30
parent 2f7811a1ef
commit 199f410130
1 changed files with 5 additions and 0 deletions

View File

@ -61,3 +61,8 @@ psql_client(){
run psql_client -U $POSTGRESQL_ROOT_USER -Axc "\l"
[[ "$output" =~ "Name|$POSTGRESQL_DATABASE" ]]
}
@test "Can't create a custom user without database" {
run create_container -it -e POSTGRESQL_USER=$POSTGRESQL_USER
[[ "$output" =~ "you need to provide the POSTGRESQL_DATABASE" ]]
}