mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 11:40:33 -07:00
Improve test coverage
This commit is contained in:
parent
1d7d16ad13
commit
079afc7bb1
1 changed files with 13 additions and 0 deletions
|
@ -261,6 +261,19 @@
|
||||||
that:
|
that:
|
||||||
- result.rowcount == [2]
|
- result.rowcount == [2]
|
||||||
|
|
||||||
|
- name: Pass wrong query type
|
||||||
|
mysql_query:
|
||||||
|
<<: *mysql_params
|
||||||
|
login_db: '{{ test_db }}'
|
||||||
|
query: {'this type is': 'wrong'}
|
||||||
|
register: result
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- result is failed
|
||||||
|
- result.msg is search('the query option value must be a string or list')
|
||||||
|
|
||||||
- name: Drop db {{ test_db }}
|
- name: Drop db {{ test_db }}
|
||||||
mysql_query:
|
mysql_query:
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
|
|
Loading…
Add table
Reference in a new issue