Skip to content

Commit d3c33b2

Browse files
committed
Added dummy table and publication for the subscription in RESQL test case of PGv17
1 parent 2f5fccd commit d3c33b2

File tree

2 files changed

+52
-2
lines changed

2 files changed

+52
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
CREATE SUBSCRIPTION test_create_subscription
22
CONNECTION 'host=localhost port=5917 user=postgres dbname=postgres connect_timeout=10 password=xxxxxx sslmode=prefer'
33
PUBLICATION test_publication
4-
WITH (connect = false, enabled = false, copy_data = false, create_slot = false, slot_name = test_create_subscription, synchronous_commit = 'remote_apply', binary = true, streaming = 'True', two_phase = true, disable_on_error = true, run_as_owner = true, password_required = true, origin = 'any', failover = false);
4+
WITH (connect = true, enabled = false, copy_data = false, create_slot = false, slot_name = test_create_subscription, synchronous_commit = 'remote_apply', binary = true, streaming = 'True', two_phase = true, disable_on_error = true, run_as_owner = true, password_required = true, origin = 'any', failover = false);

web/pgadmin/browser/server_groups/servers/databases/subscriptions/tests/17_plus/test.json

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
{
22
"scenarios": [
3+
{
4+
"type": "create",
5+
"name": "Create Table For Subscription",
6+
"endpoint": "NODE-table.obj",
7+
"sql_endpoint": "NODE-table.sql_id",
8+
"data": {
9+
"name": "test_table",
10+
"columns": [
11+
{
12+
"name": "emp_id",
13+
"cltype": "integer",
14+
"is_primary_key": true
15+
},
16+
{
17+
"name": "name",
18+
"cltype": "text"
19+
},
20+
{
21+
"name": "salary",
22+
"cltype": "bigint"
23+
}
24+
],
25+
"is_partitioned": false,
26+
"schema": "public",
27+
"spcname": "pg_default"
28+
},
29+
"store_object_id": true
30+
},
31+
{
32+
"type": "create",
33+
"name": "Create Publication for Subscription",
34+
"endpoint": "NODE-publication.obj",
35+
"sql_endpoint": "NODE-publication.sql_id",
36+
"msql_endpoint": "NODE-publication.msql",
37+
"data": {
38+
"name": "test_publication",
39+
"evnt_insert": true,
40+
"evnt_update": true,
41+
"evnt_delete": true,
42+
"evnt_truncate": true,
43+
"pubowner": "postgres",
44+
"publish_via_partition_root": false,
45+
"all_table": false,
46+
"only_table": false,
47+
"pubtable": [{
48+
"table_name": "public.test_table"
49+
}],
50+
"pubschema": ""
51+
}
52+
},
353
{
454
"type": "create",
555
"name": "Create Subscription",
@@ -20,7 +70,7 @@
2070
"copy_data": false,
2171
"create_slot": false,
2272
"enabled": false,
23-
"connect": false,
73+
"connect": true,
2474
"slot_name": "test_create_subscription",
2575
"sync": "remote_apply",
2676
"streaming": true,

0 commit comments

Comments
 (0)