diff options
Diffstat (limited to 'test/integration/targets/mysql_variables')
4 files changed, 6 insertions, 9 deletions
diff --git a/test/integration/targets/mysql_variables/defaults/main.yml b/test/integration/targets/mysql_variables/defaults/main.yml index 4683ee0d78..a53a9f6761 100644 --- a/test/integration/targets/mysql_variables/defaults/main.yml +++ b/test/integration/targets/mysql_variables/defaults/main.yml @@ -2,4 +2,3 @@ # defaults file for test_mysql_variables user: 'user1' password: 'password1' - diff --git a/test/integration/targets/mysql_variables/tasks/assert_var.yml b/test/integration/targets/mysql_variables/tasks/assert_var.yml index db7f3d188a..7a3e963463 100644 --- a/test/integration/targets/mysql_variables/tasks/assert_var.yml +++ b/test/integration/targets/mysql_variables/tasks/assert_var.yml @@ -19,10 +19,10 @@ # ============================================================ # Assert mysql variable name and value from mysql database # -- name: assert output message changed value +- name: assert output message changed value assert: { that: "output.changed == {{changed}}" } -- name: run mysql command to show variable +- name: run mysql command to show variable command: mysql "-e show variables like '{{var_name}}';" register: result @@ -32,5 +32,3 @@ - "result.changed == true" - "'{{var_name}}' in result.stdout" - "'{{var_value}}' in result.stdout" - - diff --git a/test/integration/targets/mysql_variables/tasks/assert_var_output.yml b/test/integration/targets/mysql_variables/tasks/assert_var_output.yml index 6a321a6f83..7214fa27dd 100644 --- a/test/integration/targets/mysql_variables/tasks/assert_var_output.yml +++ b/test/integration/targets/mysql_variables/tasks/assert_var_output.yml @@ -19,14 +19,14 @@ # ============================================================ # Assert output variable name/value match mysql variable name/value # -- name: assert output message changed value +- name: assert output message changed value assert: { that: "output.changed == {{changed}}" } - set_fact: key_name: "{{var_name}}" key_value: "{{output.msg[0][0]}}" -- name: run mysql command to show variable +- name: run mysql command to show variable command: mysql "-e show variables like '{{var_name}}';" register: result diff --git a/test/integration/targets/mysql_variables/tasks/main.yml b/test/integration/targets/mysql_variables/tasks/main.yml index 26fc03c867..0ba23e8907 100644 --- a/test/integration/targets/mysql_variables/tasks/main.yml +++ b/test/integration/targets/mysql_variables/tasks/main.yml @@ -133,7 +133,7 @@ # ============================================================ # Verify mysql_variable fails when setting a read-only variable -# +# - name: set value of a read only mysql variable mysql_variables: variable=character_set_system value=utf16 register: result @@ -199,4 +199,4 @@ register: result ignore_errors: true -- include: assert_fail_msg.yml output={{result}} msg='unable to connect to database'
\ No newline at end of file +- include: assert_fail_msg.yml output={{result}} msg='unable to connect to database' |