mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
adding postgresqlconfiguration facts (#45071)
This commit is contained in:
@@ -6,3 +6,4 @@ azure_rm_postgresqldatabase
|
||||
azure_rm_postgresqldatabase_facts
|
||||
azure_rm_postgresqlfirewallrule
|
||||
azure_rm_postgresqlfirewallrule_facts
|
||||
azure_rm_postgresqlserverconfiguration_facts
|
||||
|
||||
@@ -170,6 +170,41 @@
|
||||
- output.servers[1]['user_visible_state'] != None
|
||||
- output.servers[1]['fully_qualified_domain_name'] != None
|
||||
|
||||
#
|
||||
# azure_rm_postgresqlconfiguration_facts tests below
|
||||
#
|
||||
- name: Gather facts PostgreSQL Configuration
|
||||
azure_rm_postgresqlconfiguration_facts:
|
||||
resource_group: "{{ resource_group }}"
|
||||
server_name: postgresqlsrv{{ rpfx }}
|
||||
name: deadlock_timeout
|
||||
register: output
|
||||
- name: Assert that facts are returned
|
||||
assert:
|
||||
that:
|
||||
- output.changed == False
|
||||
- output.settings[0].id != None
|
||||
- output.settings[0].name != None
|
||||
- output.settings[0].value != None
|
||||
- output.settings[0].description != None
|
||||
- output.settings[0].source != None
|
||||
- output.settings | length == 1
|
||||
|
||||
- name: Gather facts PostgreSQL Configuration
|
||||
azure_rm_postgresqlconfiguration_facts:
|
||||
resource_group: "{{ resource_group }}"
|
||||
server_name: postgresqlsrv{{ rpfx }}
|
||||
register: output
|
||||
- name: Get all settings
|
||||
assert:
|
||||
that:
|
||||
- output.changed == False
|
||||
- output.settings[0].id != None
|
||||
- output.settings[0].name != None
|
||||
- output.settings[0].value != None
|
||||
- output.settings[0].description != None
|
||||
- output.settings[0].source != None
|
||||
- output.settings | length > 1
|
||||
|
||||
#
|
||||
# azure_rm_postgresqldatabase tests below
|
||||
|
||||
Reference in New Issue
Block a user