This commit is contained in:
Laurent Indermuehle 2023-01-17 17:59:49 +01:00
commit 757e974fe5
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -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