Skip to content

Commit b26d1a1

Browse files
committed
Make sure we create the users both on provider and subscriber in tests
1 parent 5ef4940 commit b26d1a1

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

expected/init.out

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
-- but it's blocked by bug 37906
33
SELECT * FROM pglogical_regress_variables()
44
\gset
5+
\c :provider_dsn
6+
SET client_min_messages = 'warning';
7+
DROP USER IF EXISTS nonsuper;
8+
DROP USER IF EXISTS super;
9+
CREATE USER nonsuper WITH replication;
10+
CREATE USER super SUPERUSER;
11+
\c :subscriber_dsn
512
SET client_min_messages = 'warning';
613
DROP USER IF EXISTS nonsuper;
714
DROP USER IF EXISTS super;

sql/init.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
SELECT * FROM pglogical_regress_variables()
44
\gset
55

6+
\c :provider_dsn
7+
SET client_min_messages = 'warning';
8+
DROP USER IF EXISTS nonsuper;
9+
DROP USER IF EXISTS super;
10+
11+
CREATE USER nonsuper WITH replication;
12+
CREATE USER super SUPERUSER;
13+
14+
\c :subscriber_dsn
615
SET client_min_messages = 'warning';
716
DROP USER IF EXISTS nonsuper;
817
DROP USER IF EXISTS super;

0 commit comments

Comments
 (0)