Skip to content

Commit d705a89

Browse files
committed
cicd: fixed bootstrap tests with new required option 'dbname'
1 parent 39a696a commit d705a89

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

github-actions-tests/tools/bootstrap.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ mamonsu bootstrap -x -U postgres -d test_db
116116
# check
117117
check_db_objects mamonsu test_db
118118

119-
echo && echo "------> mamonsu bootstrap -x -U test_superuser"
119+
echo && echo "------> mamonsu bootstrap -x -U test_superuser -d test_superuser"
120120
# prepare
121121
pg_drop_user mamonsu
122122
pg_drop_database test_db
@@ -125,21 +125,25 @@ pg_drop_database test_superuser
125125
$PSQL -c "CREATE USER test_superuser SUPERUSER"
126126
$PSQL -c "CREATE DATABASE test_superuser OWNER test_superuser"
127127
# test
128-
mamonsu bootstrap -x -U test_superuser
128+
mamonsu bootstrap -x -U test_superuser -d test_superuser
129129
# check
130130
check_db_objects mamonsu test_superuser
131131

132-
echo && echo "------>mamonsu bootstrap -x -U test_superuser -h localhost -p 5432"
132+
echo && echo "------>mamonsu bootstrap -x -U test_superuser -d test_superuser -h localhost -p 5432"
133133
# prepare
134134
pg_drop_user mamonsu
135135
pg_drop_user test_superuser
136136
pg_drop_database test_superuser
137137
$PSQL -c "CREATE USER test_superuser SUPERUSER"
138138
$PSQL -c "CREATE DATABASE test_superuser OWNER test_superuser"
139139
# test
140-
mamonsu bootstrap -x -U test_superuser -h localhost -p 5432
140+
mamonsu bootstrap -x -U test_superuser -d test_superuser -h localhost -p 5432
141141
# check
142142
check_db_objects mamonsu test_superuser
143+
# drop
144+
pg_drop_user mamonsu
145+
pg_drop_user test_superuser
146+
pg_drop_database test_superuser
143147

144148
# bootstrap for other tests
145149
mamonsu bootstrap -x -U postgres -d mamonsu_test_db

0 commit comments

Comments
 (0)