mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Modified RE-SQL test to cover Password, Account Expire, Connection Limit and Variables for Roles.
This commit is contained in:
parent
53ab4d7e8d
commit
1ddc9cc889
@ -7,6 +7,10 @@ CREATE ROLE "Role2_$%{}[]()&*^!@""'`\/#" WITH
|
|||||||
INHERIT
|
INHERIT
|
||||||
NOCREATEDB
|
NOCREATEDB
|
||||||
CREATEROLE
|
CREATEROLE
|
||||||
REPLICATION;
|
NOREPLICATION
|
||||||
|
CONNECTION LIMIT 100
|
||||||
|
VALID UNTIL '2050-01-01 00:00:00+05:30';
|
||||||
|
|
||||||
|
ALTER ROLE "Role2_$%{}[]()&*^!@""'`\/#" IN DATABASE postgres SET application_name TO 'pg4';
|
||||||
|
|
||||||
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';
|
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';
|
||||||
|
@ -7,9 +7,10 @@ CREATE ROLE "Role2_$%{}[]()&*^!@""'`\/#" WITH
|
|||||||
INHERIT
|
INHERIT
|
||||||
CREATEDB
|
CREATEDB
|
||||||
NOCREATEROLE
|
NOCREATEROLE
|
||||||
NOREPLICATION;
|
NOREPLICATION
|
||||||
|
CONNECTION LIMIT 100
|
||||||
|
VALID UNTIL '2050-01-01 00:00:00+05:30';
|
||||||
|
|
||||||
|
ALTER ROLE "Role2_$%{}[]()&*^!@""'`\/#" IN DATABASE postgres SET application_name TO 'pg4';
|
||||||
UPDATE pg_authid SET rolcatupdate=false WHERE rolname = 'Role2_$%{}[]()&*^!@"''`\/#';
|
|
||||||
|
|
||||||
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';
|
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';
|
||||||
|
@ -45,12 +45,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "alter",
|
"type": "alter",
|
||||||
"name": "Alter Role superuser, createdb etc options",
|
"name": "Alter Role options",
|
||||||
"endpoint": "NODE-role.obj_id",
|
"endpoint": "NODE-role.obj_id",
|
||||||
"sql_endpoint": "NODE-role.sql_id",
|
"sql_endpoint": "NODE-role.sql_id",
|
||||||
"data": {
|
"data": {
|
||||||
"rolsuper": true,
|
"rolsuper": true,
|
||||||
"rolcreatedb": true
|
"rolcreatedb": true,
|
||||||
|
"rolreplication": false,
|
||||||
|
"rolpassword": "abc123",
|
||||||
|
"rolconnlimit": 100,
|
||||||
|
"rolvaliduntil": "2050-01-01 00:00:00 +05:30",
|
||||||
|
"variables": { "added": [{"name":"application_name","value":"pg4","database":"postgres"}] }
|
||||||
},
|
},
|
||||||
"expected_sql_file": "alter_role_options.sql"
|
"expected_sql_file": "alter_role_options.sql"
|
||||||
},
|
},
|
||||||
@ -105,12 +110,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "alter",
|
"type": "alter",
|
||||||
"name": "Alter Login Role superuser, createdb etc options",
|
"name": "Alter Login Role options",
|
||||||
"endpoint": "NODE-role.obj_id",
|
"endpoint": "NODE-role.obj_id",
|
||||||
"sql_endpoint": "NODE-role.sql_id",
|
"sql_endpoint": "NODE-role.sql_id",
|
||||||
"data": {
|
"data": {
|
||||||
"rolsuper": false,
|
"rolsuper": false,
|
||||||
"rolcreatedb": false
|
"rolcreatedb": false,
|
||||||
|
"rolreplication": false,
|
||||||
|
"rolpassword": "abc123",
|
||||||
|
"rolconnlimit": 100,
|
||||||
|
"rolvaliduntil": "2050-01-01 00:00:00 +05:30",
|
||||||
|
"variables": { "added": [{"name":"application_name","value":"pg4","database":"postgres"}] }
|
||||||
},
|
},
|
||||||
"expected_sql_file": "alter_login_role_options.sql"
|
"expected_sql_file": "alter_login_role_options.sql"
|
||||||
},
|
},
|
||||||
|
@ -7,6 +7,10 @@ CREATE ROLE "Role2_$%{}[]()&*^!@""'`\/#" WITH
|
|||||||
INHERIT
|
INHERIT
|
||||||
NOCREATEDB
|
NOCREATEDB
|
||||||
CREATEROLE
|
CREATEROLE
|
||||||
REPLICATION;
|
NOREPLICATION
|
||||||
|
CONNECTION LIMIT 100
|
||||||
|
VALID UNTIL '2050-01-01 00:00:00+05:30';
|
||||||
|
|
||||||
|
ALTER ROLE "Role2_$%{}[]()&*^!@""'`\/#" IN DATABASE postgres SET application_name TO 'pg4';
|
||||||
|
|
||||||
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';
|
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';
|
||||||
|
@ -7,6 +7,10 @@ CREATE ROLE "Role2_$%{}[]()&*^!@""'`\/#" WITH
|
|||||||
INHERIT
|
INHERIT
|
||||||
CREATEDB
|
CREATEDB
|
||||||
NOCREATEROLE
|
NOCREATEROLE
|
||||||
NOREPLICATION;
|
NOREPLICATION
|
||||||
|
CONNECTION LIMIT 100
|
||||||
|
VALID UNTIL '2050-01-01 00:00:00+05:30';
|
||||||
|
|
||||||
|
ALTER ROLE "Role2_$%{}[]()&*^!@""'`\/#" IN DATABASE postgres SET application_name TO 'pg4';
|
||||||
|
|
||||||
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';
|
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';
|
||||||
|
@ -45,12 +45,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "alter",
|
"type": "alter",
|
||||||
"name": "Alter Role superuser, createdb etc options",
|
"name": "Alter Role options",
|
||||||
"endpoint": "NODE-role.obj_id",
|
"endpoint": "NODE-role.obj_id",
|
||||||
"sql_endpoint": "NODE-role.sql_id",
|
"sql_endpoint": "NODE-role.sql_id",
|
||||||
"data": {
|
"data": {
|
||||||
"rolsuper": true,
|
"rolsuper": true,
|
||||||
"rolcreatedb": true
|
"rolcreatedb": true,
|
||||||
|
"rolreplication": false,
|
||||||
|
"rolpassword": "abc123",
|
||||||
|
"rolconnlimit": 100,
|
||||||
|
"rolvaliduntil": "2050-01-01 00:00:00 +05:30",
|
||||||
|
"variables": { "added": [{"name":"application_name","value":"pg4","database":"postgres"}] }
|
||||||
},
|
},
|
||||||
"expected_sql_file": "alter_role_options.sql"
|
"expected_sql_file": "alter_role_options.sql"
|
||||||
},
|
},
|
||||||
@ -105,12 +110,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "alter",
|
"type": "alter",
|
||||||
"name": "Alter Login Role superuser, createdb etc options",
|
"name": "Alter Login Role options",
|
||||||
"endpoint": "NODE-role.obj_id",
|
"endpoint": "NODE-role.obj_id",
|
||||||
"sql_endpoint": "NODE-role.sql_id",
|
"sql_endpoint": "NODE-role.sql_id",
|
||||||
"data": {
|
"data": {
|
||||||
"rolsuper": false,
|
"rolsuper": false,
|
||||||
"rolcreatedb": false
|
"rolcreatedb": false,
|
||||||
|
"rolreplication": false,
|
||||||
|
"rolpassword": "abc123",
|
||||||
|
"rolconnlimit": 100,
|
||||||
|
"rolvaliduntil": "2050-01-01 00:00:00 +05:30",
|
||||||
|
"variables": { "added": [{"name":"application_name","value":"pg4","database":"postgres"}] }
|
||||||
},
|
},
|
||||||
"expected_sql_file": "alter_login_role_options.sql"
|
"expected_sql_file": "alter_login_role_options.sql"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user