Refactor test using connector.name variable

This commit is contained in:
Laurent Indermuehle 2022-08-11 11:38:43 +02:00
commit 369c0bcb53
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

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