postgresql modules: improve trust_input parameter's documentation, improve CI tests (#309)

* postgresql modules: improve trust_input parameter's documentation, improve CI tests

* fix CI
This commit is contained in:
Andrew Klychkov 2020-05-09 09:25:12 +03:00 committed by GitHub
commit 55c1ece888
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 110 additions and 15 deletions

View file

@ -116,6 +116,7 @@
objs: "test_table2"
db: "{{ db_name }}"
login_user: "{{ pg_user }}"
trust_input: no
register: result
- name: Check that ansible reports it changed the user
@ -144,6 +145,7 @@
objs: "test_table2,test_table1"
db: "{{ db_name }}"
login_user: "{{ pg_user }}"
trust_input: no
register: result
- name: Check that ansible reports it changed the user
@ -179,6 +181,7 @@
objs: "{{ db_name }}"
db: "{{ db_name }}"
login_user: "{{ pg_user }}"
trust_input: no
- name: Check that the user has the requested permissions (database)
become_user: "{{ pg_user }}"
@ -202,6 +205,7 @@
objs: "{{ db_name }}"
db: "{{ db_name }}"
login_user: "{{ pg_user }}"
trust_input: no
register: result
- name: Check that ansible reports it changed the user
@ -230,6 +234,7 @@
objs: "test_table1"
db: "{{ db_name }}"
login_user: "{{ pg_user }}"
trust_input: no
- name: Check that permissions were added (table1)
become_user: "{{ pg_user }}"
@ -252,6 +257,7 @@
objs: "test_table2,test_table1"
db: "{{ db_name }}"
login_user: "{{ pg_user }}"
trust_input: no
- name: Check that permissions were added (table1)
become_user: "{{ pg_user }}"
@ -307,6 +313,7 @@
objs: "test_table1"
db: "{{ db_name }}"
login_user: "{{ pg_user }}"
trust_input: no
- name: Check that permissions were added (table1)
become_user: "{{ pg_user }}"
@ -334,6 +341,7 @@
objs: TABLES
type: default_privs
target_roles: "{{ db_user_with_dots2 }}"
trust_input: no
#
# Cleanup