mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-17 07:51:26 -07:00
Skip tests that rely on sha256_password if pymysql < 0.9
This commit is contained in:
parent
38a7d416b9
commit
096f7dc592
1 changed files with 58 additions and 49 deletions
|
@ -310,8 +310,16 @@
|
||||||
- include: remove_user.yml user_name={{ test_user_name }} user_password={{ test_plugin_auth_string }}
|
- include: remove_user.yml user_name={{ test_user_name }} user_password={{ test_plugin_auth_string }}
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# Test plugin auth switching from one type of plugin to another.
|
# Test plugin auth switching from one type of plugin to another. The only other plugins that are loaded by default
|
||||||
|
# are sha2*, but these aren't compatible with pymysql < 0.9, so skip these tests for those versions.
|
||||||
#
|
#
|
||||||
|
- name: Get pymysql version
|
||||||
|
shell: pip show pymysql | awk '/Version/ {print $2}'
|
||||||
|
register: pymysql_version
|
||||||
|
|
||||||
|
- name: Test plugin auth switching which doesn't work on pymysql < 0.9
|
||||||
|
when: pymysql_version.stdout is version('0.9', '>=')
|
||||||
|
block:
|
||||||
|
|
||||||
- name: Create user with plugin auth (empty auth string)
|
- name: Create user with plugin auth (empty auth string)
|
||||||
mysql_user:
|
mysql_user:
|
||||||
|
@ -321,6 +329,7 @@
|
||||||
priv: '{{ test_default_priv }}'
|
priv: '{{ test_default_priv }}'
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
|
||||||
- name: Check that the module made a change
|
- name: Check that the module made a change
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue