Port stable 1 ci changes (#423) (#425)

* 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-22 12:36:44 +02:00 committed by GitHub
parent 4cfdbe64a3
commit 108c4ae729
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 18 additions and 16 deletions

View file

@ -35,6 +35,6 @@
- name: assert output variable info match mysql variable info
assert:
that:
- "result.changed == true"
- "result.changed | bool == true"
- "key_name in result.stdout"
- "key_value in result.stdout"

View file

@ -46,12 +46,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_variables:

View file

@ -161,10 +161,10 @@
ignore_errors: true
- include: assert_var.yml changed=true output={{ oor_result }} var_name=max_connect_errors var_value=1
when: connector.name.0 is not search('pymysql')
when: connector_name is not search('pymysql')
- include: assert_fail_msg.yml output={{ oor_result }} msg='Truncated incorrect'
when: connector.name.0 is search('pymysql')
when: connector_name is search('pymysql')
# ============================================================
# Verify mysql_variable fails when setting an incorrect value (incorrect type)