1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/postgresql/tasks
Feike Steenbergen 38e70ea317 Add session_role to postgresql modules (#43650)
* Allow session_role to be set for PostgreSQL

By implementing session_role it becomes possible to run the specific
PostgreSQL commands as a different role.
The usecase that is immediately served by this, is the one that one
ansible playbook can be shared by multiple users, which all have
their
own PostgreSQL login_user. They do not need to share login
credentials,
as they can share the role within the PostgreSQL database.

The following example may give some insight:

$ psql -U jdoe -X -d postgres

postgres=> CREATE DATABASE abc;
ERROR:  permission denied to create database
postgres=> set role postgres;
SET
postgres=# CREATE DATABASE abc;
CREATE DATABASE

fixes #43592

* Tests for session_role in PostgreSQL

* Bump version_added for session_role feature

* Remove explicit encrypted parameter from tests
2019-02-02 20:12:14 +01:00
..
main.yml Add session_role to postgresql modules (#43650) 2019-02-02 20:12:14 +01:00
pg_authid_not_readable.yml Deprecate tests used as filters (#32361) 2017-11-27 17:58:08 -05:00
session_role.yml Add session_role to postgresql modules (#43650) 2019-02-02 20:12:14 +01:00
state_dump_restore.yml fixed test using removed feature 2018-08-01 15:17:28 -04:00
test_no_password_change.yml Deprecate tests used as filters (#32361) 2017-11-27 17:58:08 -05:00
test_password.yml postgresql_user: fix test errors on newer Fedora versions (#47166) 2018-10-17 14:01:11 +10:00