Add test showing poolinfo validation works

In other words, that it errors out.
pull/2342/head
Jason Petersen 2018-08-06 20:49:03 -06:00
parent 900e88057c
commit c3c0d62ca6
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
2 changed files with 12 additions and 0 deletions

View File

@ -18,3 +18,10 @@ INSERT INTO pg_dist_authinfo VALUES (0, 'new_user', 'password=1234');
ERROR: cannot write to pg_dist_authinfo
DETAIL: Citus Community Edition does not support the use of custom authentication options.
HINT: To learn more about using advanced authentication schemes with Citus, please contact us at https://citusdata.com/about/contact_us
BEGIN;
INSERT INTO pg_dist_node VALUES (1234567890, 1234567890, 'localhost', 5432);
INSERT INTO pg_dist_poolinfo VALUES (1234567890, 'port=1234');
ERROR: cannot write to pg_dist_poolinfo
DETAIL: Citus Community Edition does not support the use of pooler options.
HINT: To learn more about using advanced pooling schemes with Citus, please contact us at https://citusdata.com/about/contact_us
ROLLBACK;

View File

@ -16,3 +16,8 @@ CREATE ROLE new_role;
CREATE USER new_user;
INSERT INTO pg_dist_authinfo VALUES (0, 'new_user', 'password=1234');
BEGIN;
INSERT INTO pg_dist_node VALUES (1234567890, 1234567890, 'localhost', 5432);
INSERT INTO pg_dist_poolinfo VALUES (1234567890, 'port=1234');
ROLLBACK;