change suggested

This commit is contained in:
Andrew Klychkov 2020-11-03 09:44:34 +03:00
commit 4189c430a6
2 changed files with 23 additions and 3 deletions

View file

@ -274,6 +274,21 @@
- result is failed
- result.msg is search('the query option value must be a string or list')
- name: Pass wrong query element
mysql_query:
<<: *mysql_params
login_db: '{{ test_db }}'
query:
- 'SELECT now()'
- {'this type is': 'wrong'}
register: result
ignore_errors: yes
- assert:
that:
- result is failed
- result.msg is search('the elements in query list must be strings')
- name: Drop db {{ test_db }}
mysql_query:
<<: *mysql_params