mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Clean up roles from roleattributes test
Having the roles remain after the test ends up causing repeated 'make installcheck' runs to fail and may be risky from a security perspective also, so remove them at the end of the test.
This commit is contained in:
parent
e68be16b0d
commit
072710dff3
@ -230,7 +230,20 @@ SELECT * FROM pg_authid WHERE rolname = 'test_bypassrls';
|
|||||||
test_bypassrls | f | t | f | f | f | f | t | -1 | |
|
test_bypassrls | f | t | f | f | f | f | t | -1 | |
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- remove the one role with LOGIN rights
|
-- clean up roles
|
||||||
|
DROP ROLE test_def_superuser;
|
||||||
|
DROP ROLE test_superuser;
|
||||||
|
DROP ROLE test_def_inherit;
|
||||||
|
DROP ROLE test_inherit;
|
||||||
|
DROP ROLE test_def_createrole;
|
||||||
|
DROP ROLE test_createrole;
|
||||||
|
DROP ROLE test_def_createdb;
|
||||||
|
DROP ROLE test_createdb;
|
||||||
|
DROP ROLE test_def_role_canlogin;
|
||||||
DROP ROLE test_role_canlogin;
|
DROP ROLE test_role_canlogin;
|
||||||
-- other roles not removed to test pg_dumpall role dump through
|
DROP USER test_def_user_canlogin;
|
||||||
-- pg_upgrade
|
DROP USER test_user_canlogin;
|
||||||
|
DROP ROLE test_def_replication;
|
||||||
|
DROP ROLE test_replication;
|
||||||
|
DROP ROLE test_def_bypassrls;
|
||||||
|
DROP ROLE test_bypassrls;
|
||||||
|
@ -78,8 +78,20 @@ SELECT * FROM pg_authid WHERE rolname = 'test_bypassrls';
|
|||||||
ALTER ROLE test_bypassrls WITH BYPASSRLS;
|
ALTER ROLE test_bypassrls WITH BYPASSRLS;
|
||||||
SELECT * FROM pg_authid WHERE rolname = 'test_bypassrls';
|
SELECT * FROM pg_authid WHERE rolname = 'test_bypassrls';
|
||||||
|
|
||||||
-- remove the one role with LOGIN rights
|
-- clean up roles
|
||||||
|
DROP ROLE test_def_superuser;
|
||||||
|
DROP ROLE test_superuser;
|
||||||
|
DROP ROLE test_def_inherit;
|
||||||
|
DROP ROLE test_inherit;
|
||||||
|
DROP ROLE test_def_createrole;
|
||||||
|
DROP ROLE test_createrole;
|
||||||
|
DROP ROLE test_def_createdb;
|
||||||
|
DROP ROLE test_createdb;
|
||||||
|
DROP ROLE test_def_role_canlogin;
|
||||||
DROP ROLE test_role_canlogin;
|
DROP ROLE test_role_canlogin;
|
||||||
|
DROP USER test_def_user_canlogin;
|
||||||
-- other roles not removed to test pg_dumpall role dump through
|
DROP USER test_user_canlogin;
|
||||||
-- pg_upgrade
|
DROP ROLE test_def_replication;
|
||||||
|
DROP ROLE test_replication;
|
||||||
|
DROP ROLE test_def_bypassrls;
|
||||||
|
DROP ROLE test_bypassrls;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user