Add changes from stable-1 integrations tests (PR 418)

This commit is contained in:
Laurent Indermuehle 2022-08-12 17:26:01 +02:00
commit aa7818f922
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
12 changed files with 47 additions and 24 deletions

View file

@ -55,12 +55,12 @@
- assert:
that:
- result is failed
when: connector.name.0 is search('pymysql')
when: connector_name is search('pymysql')
- assert:
that:
- result is succeeded
when: connector.name.0 is not search('pymysql')
when: connector_name is not search('pymysql')
- name: attempt connection with newly created user ignoring hostname
mysql_replication:

View file

@ -218,10 +218,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: (pymysql_version.stdout | default('1000', true)) is version('0.9.3', '<=')
- result is not changed
when:
- connector_name is search('pymysql')
- connector_ver is version('0.9.3', '<=')
# Test stopreplica mode:
- name: Stop replica
@ -247,8 +250,7 @@
- assert:
that:
- result is not changed
when: (pymysql_version.stdout | default('1000', true)) is version('0.9.3', '<=')
- result is not changed
# master / slave related choices were removed in 3.0.0
# https://github.com/ansible-collections/community.mysql/pull/252