You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously the test have not tested that the backup user was
created and can login.
Also implement cleanup hook for the s2i image, which now has
randomly generated name.
Implemented "create tempfile" method with garbage collector.
Copy file name to clipboardExpand all lines: test/test-app/postgresql-init/backup_user.sh
+8-4
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,11 @@
2
2
3
3
[[ -v POSTGRESQL_BACKUP_USER && -v POSTGRESQL_BACKUP_PASSWORD ]] || usage "You have to set all variables for user for doing backup: POSTGRESQL_BACKUP_USER, POSTGRESQL_BACKUP_PASSWORD"
4
4
5
-
# create backup user
6
-
7
-
psql -c "CREATE USER $POSTGRESQL_BACKUP_USER SUPERUSER password '$POSTGRESQL_BACKUP_PASSWORD';"
8
-
psql -c "ALTER USER $POSTGRESQL_BACKUP_USER set default_transaction_read_only = on;"
0 commit comments