mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-25 07:21:45 -07:00
Fix assertion by not running on failing connectors
This commit is contained in:
parent
d37871e148
commit
fa06f22cd5
1 changed files with 6 additions and 12 deletions
|
@ -207,16 +207,13 @@
|
|||
fail_on_error: true
|
||||
register: result
|
||||
|
||||
# Task is changed with mysqlclient 2.0.1 and pymysql 0.9.3
|
||||
- assert:
|
||||
that:
|
||||
- result is not changed
|
||||
when:
|
||||
- >
|
||||
connector_name is not search('pymysql')
|
||||
or (
|
||||
connector_name is search('pymysql')
|
||||
and connector_ver is version('0.9.3', '<=')
|
||||
)
|
||||
- connector_name is search('pymysql')
|
||||
- connector_ver is version('0.9.3', '<=')
|
||||
|
||||
# Test stopreplica mode:
|
||||
- name: Stop replica using deprecated stopslave choice
|
||||
|
@ -240,13 +237,10 @@
|
|||
fail_on_error: true
|
||||
register: result
|
||||
|
||||
# Task is changed with mysqlclient 2.0.1 and pymysql 0.9.3
|
||||
- assert:
|
||||
that:
|
||||
- result is not changed
|
||||
when:
|
||||
- >
|
||||
connector_name is not search('pymysql')
|
||||
or (
|
||||
connector_name is search('pymysql')
|
||||
and connector_ver is version('0.9.3', '<=')
|
||||
)
|
||||
- connector_name is search('pymysql')
|
||||
- connector_ver is version('0.9.3', '<=')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue