mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-08 22:30:04 -07:00
[stable-9] Fix/improve tests (#9861)
Fix/improve tests (#9859)
* Fix tests.
* Improve callback tests.
(cherry picked from commit eff25c8a6e
)
This commit is contained in:
parent
0ccb961ff7
commit
de754eacbc
26 changed files with 184 additions and 154 deletions
|
@ -253,7 +253,7 @@
|
|||
path: "{{ output_file }}"
|
||||
section: mysqld
|
||||
option: "{{ item.o }}"
|
||||
value: "{{ item.v | d(omit) }}"
|
||||
value: "{{ item.v | default(omit) }}"
|
||||
allow_no_value: true
|
||||
loop:
|
||||
- { o: "skip-name-resolve" }
|
||||
|
@ -512,10 +512,10 @@
|
|||
- name: test-value 20 - Tests with empty strings
|
||||
ini_file:
|
||||
path: "{{ output_file }}"
|
||||
section: "{{ item.section | d('extensions') }}"
|
||||
section: "{{ item.section | default('extensions') }}"
|
||||
option: "{{ item.option }}"
|
||||
value: ""
|
||||
allow_no_value: "{{ item.no_value | d(omit) }}"
|
||||
allow_no_value: "{{ item.no_value | default(omit) }}"
|
||||
loop:
|
||||
- option: evolve
|
||||
- option: regress
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue