mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-06-10 10:19: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
|
register: result
|
||||||
|
|
||||||
# Issue https://github.com/ansible-collections/community.mysql/issues/268
|
# Issue https://github.com/ansible-collections/community.mysql/issues/268
|
||||||
- name: "Assert that create table IF NOT EXISTS is not changed with pymysql \
|
- name: Assert that create table IF NOT EXISTS is not changed with pymysql
|
||||||
and mysqlclient > 2.0.1"
|
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
# PyMySQL driver throws a warning, so the following is correct
|
# PyMySQL driver throws a warning, so the following is correct
|
||||||
- result is not changed
|
- result is not changed
|
||||||
when:
|
when:
|
||||||
- connector_name == 'pymysql'
|
- 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
|
# Issue https://github.com/ansible-collections/community.mysql/issues/268
|
||||||
- name: "Assert that create table IF NOT EXISTS is changed with mysqlclient \
|
- name: Assert that create table IF NOT EXISTS is changed with mysqlclient
|
||||||
2.0.1 and mysql"
|
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
# Mysqlclient 2.0.1, driver throws nothing with mysql, so it's
|
# Mysqlclient 2.0.1, driver throws nothing with mysql, so it's
|
||||||
|
@ -386,8 +378,6 @@
|
||||||
- result is changed
|
- result is changed
|
||||||
when:
|
when:
|
||||||
- connector_name == 'mysqlclient'
|
- connector_name == 'mysqlclient'
|
||||||
- connector_version is version('2.0.1', '==')
|
|
||||||
- db_engine == 'mysql'
|
|
||||||
|
|
||||||
- name: Drop db {{ test_db }}
|
- name: Drop db {{ test_db }}
|
||||||
mysql_query:
|
mysql_query:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue