From 199f410130e95c4933c3130cf8ef9f53cf29e29a Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Mon, 10 Aug 2015 22:06:43 +0530 Subject: [PATCH] tests: "Can't create a custom user without database" --- bitnami/postgresql/test.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bitnami/postgresql/test.sh b/bitnami/postgresql/test.sh index 57b3791a72e6..19a8d05f6861 100755 --- a/bitnami/postgresql/test.sh +++ b/bitnami/postgresql/test.sh @@ -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" ]] +}