mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 18:53:12 +00:00
Adding mysql configuration facts module (#45075)
This commit is contained in:
committed by
Yunge Zhu
parent
69dd03d472
commit
2bb8eea413
@@ -409,6 +409,42 @@
|
||||
- output.changed == False
|
||||
- "output.rules | length == 0"
|
||||
|
||||
#
|
||||
# configuration
|
||||
#
|
||||
- name: Gather facts MySQL Configuration
|
||||
azure_rm_mysqlconfiguration_facts:
|
||||
resource_group: "{{ resource_group }}"
|
||||
server_name: mysqlsrv{{ rpfx }}
|
||||
name: event_scheduler
|
||||
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 MySQL Configuration
|
||||
azure_rm_mysqlconfiguration_facts:
|
||||
resource_group: "{{ resource_group }}"
|
||||
server_name: mysqlsrv{{ rpfx }}
|
||||
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
|
||||
|
||||
#
|
||||
# clean up azure_rm_mysqlserver test
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user