Fix verify database version

Sometimes, version_full contains trailing information (-log). To prevent
issues it's best to concatenate major and minor version.
This commit is contained in:
Laurent Indermuehle 2023-01-20 13:59:57 +01:00
commit 14cc5ccbee
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -19,7 +19,9 @@
- name: Assert that test container runs the expected MySQL/MariaDB version
assert:
that:
- primary_info.version.full == db_version
- >
{{ primary_info.version.major }}.{{ primary_info.version.minor }}
== {{ db_version }}
- name: Assert that mysql_info module used the expected connector
assert: