mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-29 08:01:25 -07:00
change suggested
This commit is contained in:
parent
faf4469432
commit
4189c430a6
2 changed files with 23 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue