mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-31 00:51:25 -07:00
Simplify connector_name variables
This commit is contained in:
parent
70e23b25da
commit
199b7a5b64
11 changed files with 44 additions and 26 deletions
|
@ -56,13 +56,15 @@
|
|||
assert:
|
||||
that:
|
||||
- result is failed
|
||||
when: connector_name is search('pymysql')
|
||||
when:
|
||||
- connector_name == 'pymysql'
|
||||
|
||||
- name: Issue-28 | Assert connection succeeded
|
||||
assert:
|
||||
that:
|
||||
- result is succeeded
|
||||
when: connector_name is not search('pymysql')
|
||||
when:
|
||||
- connector_name != 'pymysql'
|
||||
|
||||
- name: Issue-28 | Attempt connection with newly created user ignoring hostname
|
||||
mysql_user:
|
||||
|
|
|
@ -370,9 +370,9 @@
|
|||
- name: Plugin auth | Test plugin auth switching which doesn't work on pymysql < 0.9
|
||||
when:
|
||||
- >
|
||||
connector_name is not search('pymysql')
|
||||
connector_name != 'pymysql'
|
||||
or (
|
||||
connector_name is search('pymysql')
|
||||
connector_name == 'pymysql'
|
||||
and connector_ver is version('0.9', '>=')
|
||||
)
|
||||
block:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue