add filter because only MySQL 5.7 is case sensitive for users privs

This commit is contained in:
Laurent Indermuehle 2023-10-03 15:49:32 +02:00
parent 8a872490ac
commit 472cea898e
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -52,7 +52,7 @@
or column_case_insensitive_grants.query_result[0][1]
is not search("DD", ignorecase=false)
- name: Mysql_user Column case sensitive | Assert 1 column is accessible on MySQL
- name: Mysql_user Column case sensitive | Assert 1 column is accessible on MySQL 5.7
community.mysql.mysql_query:
<<: *mysql_params
login_user: column_case_sensitive
@ -62,9 +62,9 @@
failed_when:
- assert_1_col_accessible.rowcount[0] | int != 1
when:
- db_engine == 'mysql'
- db_engine == 'mysql' and db_version is version('5.7', '<=')
- name: Mysql_user Column case sensitive | Assert 4 column are accessible on MariaDB
- name: Mysql_user Column case sensitive | Assert 4 column are accessible on MariaDB and MySQL 8+
community.mysql.mysql_query:
<<: *mysql_params
login_user: column_case_sensitive
@ -74,7 +74,9 @@
failed_when:
- assert_4_col_accessible.rowcount[0] | int != 4
when:
- db_engine == 'mariadb'
- >-
db_engine == 'mariadb'
or (db_engine == 'mysql' and db_version is version('8.0', '>='))
# ======================== Test fix ======================================