tests: fix syntax

This commit is contained in:
Felix Hamme 2023-05-23 14:22:34 +02:00
commit 3edba3d8ca

View file

@ -40,8 +40,8 @@
- include_tasks: assert_var_output.yml - include_tasks: assert_var_output.yml
vars: vars:
changed: false changed: false
output: {{ result }} output: "{{ result }}"
var_name: {{ set_name }} var_name: "{{ set_name }}"
# ============================================================ # ============================================================
# Verify mysql_variable successfully updates a variable (issue:4568) # Verify mysql_variable successfully updates a variable (issue:4568)
@ -66,9 +66,9 @@
- include_tasks: assert_var.yml - include_tasks: assert_var.yml
vars: vars:
changed: false changed: false
output: {{ result }} output: "{{ result }}"
var_name: {{ set_name }} var_name: "{{ set_name }}"
var_value: {{ set_value }} var_value: "{{ set_value }}"
# ============================================================ # ============================================================
# Verify mysql_variable successfully updates a variable using single quotes # Verify mysql_variable successfully updates a variable using single quotes
@ -97,8 +97,8 @@
- include_tasks: assert_var.yml - include_tasks: assert_var.yml
vars: vars:
changed: true changed: true
output: {{ result }} output: "{{ result }}"
var_name: {{ set_name }} var_name: "{{ set_name }}"
var_value: '{{ set_value }}' var_value: '{{ set_value }}'
# ============================================================ # ============================================================
@ -124,8 +124,8 @@
- include_tasks: assert_var.yml - include_tasks: assert_var.yml
vars: vars:
changed: true changed: true
output: {{ result }} output: "{{ result }}"
var_name: {{ set_name }} var_name: "{{ set_name }}"
var_value: '{{ set_value }}' var_value: '{{ set_value }}'
# ============================================================ # ============================================================
@ -151,8 +151,8 @@
- include_tasks: assert_var.yml - include_tasks: assert_var.yml
vars: vars:
changed: true changed: true
output: {{ result }} output: "{{ result }}"
var_name: {{ set_name }} var_name: "{{ set_name }}"
var_value: '{{ set_value }}' var_value: '{{ set_value }}'
# ============================================================ # ============================================================
@ -168,7 +168,7 @@
- include_tasks: assert_fail_msg.yml - include_tasks: assert_fail_msg.yml
vars: vars:
output: {{ result }} output: "{{ result }}"
msg: 'Incorrect argument type to variable' msg: 'Incorrect argument type to variable'
# ============================================================ # ============================================================
@ -185,7 +185,7 @@
- include_tasks: assert_var.yml - include_tasks: assert_var.yml
vars: vars:
changed: true changed: true
output: {{ oor_result }} output: "{{ oor_result }}"
var_name: max_connect_errors var_name: max_connect_errors
var_value: 1 var_value: 1
when: when:
@ -194,7 +194,7 @@
- include_tasks: assert_fail_msg.yml - include_tasks: assert_fail_msg.yml
vars: vars:
output: {{ oor_result }} output: "{{ oor_result }}"
msg: 'Truncated incorrect' msg: 'Truncated incorrect'
when: when:
- connector_name == 'pymsql' - connector_name == 'pymsql'
@ -212,7 +212,7 @@
- include_tasks: assert_fail_msg.yml - include_tasks: assert_fail_msg.yml
vars: vars:
output: {{ nvv_result }} output: "{{ nvv_result }}"
msg: 'Incorrect argument type to variable' msg: 'Incorrect argument type to variable'
# ============================================================ # ============================================================
@ -228,7 +228,7 @@
- include_tasks: assert_fail_msg.yml - include_tasks: assert_fail_msg.yml
vars: vars:
output: {{ result }} output: "{{ result }}"
msg: 'Variable not available' msg: 'Variable not available'
# ============================================================ # ============================================================
@ -244,7 +244,7 @@
- include_tasks: assert_fail_msg.yml - include_tasks: assert_fail_msg.yml
vars: vars:
output: {{ result }} output: "{{ result }}"
msg: 'read only variable' msg: 'read only variable'
#============================================================= #=============================================================
@ -263,8 +263,8 @@
- include_tasks: assert_var_output.yml - include_tasks: assert_var_output.yml
vars: vars:
changed: false changed: false
output: {{ result }} output: "{{ result }}"
var_name: {{ set_name }} var_name: "{{ set_name }}"
- name: set mysql variable to temp value using user login and password (expect changed=true) - name: set mysql variable to temp value using user login and password (expect changed=true)
mysql_variables: mysql_variables:
@ -283,8 +283,8 @@
- include_tasks: assert_var.yml - include_tasks: assert_var.yml
vars: vars:
changed: true changed: true
output: {{result}} output: "{{result}}"
var_name: {{set_name}} var_name: "{{set_name}}"
var_value: '{{set_value}}' var_value: '{{set_value}}'
#============================================================ #============================================================
@ -306,7 +306,7 @@
- include_tasks: assert_fail_msg.yml - include_tasks: assert_fail_msg.yml
vars: vars:
output: {{ result }} output: "{{ result }}"
msg: 'unable to connect to database' msg: 'unable to connect to database'
- name: update mysql variable value using incorrect login_password (expect failed=true) - name: update mysql variable value using incorrect login_password (expect failed=true)
@ -322,7 +322,7 @@
- include_tasks: assert_fail_msg.yml - include_tasks: assert_fail_msg.yml
vars: vars:
output: {{ result }} output: "{{ result }}"
msg: 'unable to connect to database' msg: 'unable to connect to database'
#============================================================ #============================================================
@ -341,7 +341,7 @@
- include_tasks: assert_fail_msg.yml - include_tasks: assert_fail_msg.yml
vars: vars:
output: {{ result }} output: "{{ result }}"
msg: 'unable to connect to database' msg: 'unable to connect to database'
- block: - block:
@ -364,8 +364,8 @@
- include_tasks: assert_var.yml - include_tasks: assert_var.yml
vars: vars:
changed: true changed: true
output: {{ result }} output: "{{ result }}"
var_name: {{ set_name }} var_name: "{{ set_name }}"
var_value: '{{ set_value }}' var_value: '{{ set_value }}'
- name: try to update mysql variable value (expect changed=false) in persist mode again - name: try to update mysql variable value (expect changed=false) in persist mode again
@ -379,8 +379,8 @@
- include_tasks: assert_var.yml - include_tasks: assert_var.yml
vars: vars:
changed: false changed: false
output: {{ result }} output: "{{ result }}"
var_name: {{ set_name }} var_name: "{{ set_name }}"
var_value: '{{ set_value }}' var_value: '{{ set_value }}'
- name: set mysql variable to a temp value - name: set mysql variable to a temp value
@ -431,8 +431,8 @@
- include_tasks: assert_var.yml - include_tasks: assert_var.yml
vars: vars:
changed: true changed: true
output: {{ result }} output: "{{ result }}"
var_name: {{ set_name }} var_name: "{{ set_name }}"
var_value: '{{ def_val }}' var_value: '{{ def_val }}'
when: when: