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

@ -28,6 +28,7 @@
postgresql_user:
<<: *pg_parameters
name: '{{ test_user }}'
trust_input: no
- assert:
that:
@ -96,6 +97,7 @@
<<: *pg_parameters
name: '{{ test_user }}'
comment: '{{ test_comment1 }}'
trust_input: no
- assert:
that:
@ -346,6 +348,7 @@
<<: *pg_parameters
name: '{{ test_user }}'
expires: 'Jan 31 2020'
trust_input: no
- assert:
that:
@ -397,6 +400,7 @@
<<: *pg_parameters
name: '{{ test_user }}'
role_attr_flags: CREATEROLE,CREATEDB
trust_input: no
- assert:
that:
@ -516,6 +520,7 @@
<<: *pg_parameters
name: '{{ test_user }}'
priv: '{{ test_table }}:SELECT'
trust_input: no
- assert:
that:
@ -643,6 +648,7 @@
name: '{{ test_group1 }}'
groups: '{{ test_group2 }}'
role_attr_flags: NOLOGIN
trust_input: no
- assert:
that:
@ -700,6 +706,7 @@
groups:
- '{{ test_group1 }}'
- '{{ test_group2 }}'
trust_input: no
- assert:
that:

View file

@ -50,6 +50,7 @@
password: "password"
role_attr_flags: "CREATEDB,LOGIN,CREATEROLE"
login_user: "{{ pg_user }}"
trust_input: no
db: postgres
- name: Create db
@ -80,6 +81,7 @@
login_user: "{{ db_user1 }}"
login_password: "password"
login_host: "localhost"
trust_input: no
- name: Check that it was created
become: yes
@ -123,6 +125,7 @@
login_user: "{{ db_user1 }}"
login_password: "password"
login_host: "localhost"
trust_input: no
- name: Check that they were removed
become: yes