mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 07:01:27 -07:00
Linting
This commit is contained in:
parent
31d29057fa
commit
757e974fe5
1 changed files with 4 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
# test code to assert variables in mysql_variables module
|
# test code to assert variables in mysql_variables module
|
||||||
# (c) 2014, Wayne Rosario <wrosario@ansible.com>
|
# (c) 2014, Wayne Rosario <wrosario@ansible.com>
|
||||||
|
|
||||||
|
@ -19,16 +20,16 @@
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# Assert mysql variable name and value from mysql database
|
# Assert mysql variable name and value from mysql database
|
||||||
#
|
#
|
||||||
- name: assert output message changed value
|
- name: Assert output message changed value
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "output.changed | bool == changed | bool"
|
- "output.changed | bool == changed | bool"
|
||||||
|
|
||||||
- name: run mysql command to show variable
|
- name: Run mysql command to show variable
|
||||||
command: "{{ mysql_command }} \"-e show variables like '{{ var_name }}'\""
|
command: "{{ mysql_command }} \"-e show variables like '{{ var_name }}'\""
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: assert output mysql variable name and value
|
- name: Assert output mysql variable name and value
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- result is changed
|
- result is changed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue