Port stable 1 ci changes (#423)

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

* Refactor to use connectors' info declared in setup_mysql

* Fix 2nd replication stop marked changed by mysqlclient

(cherry picked from commit 61586ae4cc)
This commit is contained in:
Laurent Indermühle 2022-08-16 09:15:50 +02:00 committed by Laurent Indermuehle
commit c283ebf0ea
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
7 changed files with 18 additions and 16 deletions

View file

@ -343,7 +343,7 @@
that:
# PyMySQL driver throws a warning, so the following is correct
- result is not changed
when: connector.name.0 is search('pymysql')
when: connector_name is search('pymysql')
# Issue https://github.com/ansible-collections/community.mysql/issues/268
- assert:
@ -352,7 +352,7 @@
# if the state was changed or not.
# We assume that it was for DDL queryes by default in the code
- result is changed
when: connector.name.0 is search('mysqlclient')
when: connector_name is search('mysqlclient')
- name: Drop db {{ test_db }}
mysql_query: