Refactor to use connectors' info declared in setup_mysql

This commit is contained in:
Laurent Indermuehle 2022-08-15 09:32:00 +02:00
commit ef6a6c7573
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
5 changed files with 6 additions and 12 deletions

View file

@ -51,12 +51,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

@ -160,10 +160,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)