mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-06-05 07:49:11 -07:00
Cut filter for tests now that the right connector is used
This commit is contained in:
parent
069eba9c6a
commit
d574daf683
1 changed files with 2 additions and 12 deletions
|
@ -360,24 +360,16 @@
|
|||
register: result
|
||||
|
||||
# Issue https://github.com/ansible-collections/community.mysql/issues/268
|
||||
- name: "Assert that create table IF NOT EXISTS is not changed with pymysql \
|
||||
and mysqlclient > 2.0.1"
|
||||
- name: Assert that create table IF NOT EXISTS is not changed with pymysql
|
||||
assert:
|
||||
that:
|
||||
# PyMySQL driver throws a warning, so the following is correct
|
||||
- result is not changed
|
||||
when:
|
||||
- connector_name == 'pymysql'
|
||||
or db_engine == 'mariadb'
|
||||
or (
|
||||
db_engine == 'mysql'
|
||||
and connector_name == 'mysqlclient'
|
||||
and connector_version is version('2.0.1', '>')
|
||||
)
|
||||
|
||||
# Issue https://github.com/ansible-collections/community.mysql/issues/268
|
||||
- name: "Assert that create table IF NOT EXISTS is changed with mysqlclient \
|
||||
2.0.1 and mysql"
|
||||
- name: Assert that create table IF NOT EXISTS is changed with mysqlclient
|
||||
assert:
|
||||
that:
|
||||
# Mysqlclient 2.0.1, driver throws nothing with mysql, so it's
|
||||
|
@ -386,8 +378,6 @@
|
|||
- result is changed
|
||||
when:
|
||||
- connector_name == 'mysqlclient'
|
||||
- connector_version is version('2.0.1', '==')
|
||||
- db_engine == 'mysql'
|
||||
|
||||
- name: Drop db {{ test_db }}
|
||||
mysql_query:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue