mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 07:01:27 -07:00
Fix role integration tests for mariadb (#291)
* Fix: test_mysql_role : Check that the user have no active roles assertion * Fix: test_mysql_role : Check in DB assertion * Fix: test_mysql_role : Check in DB, if not granted, the query will fail for mariadb * Fix: test_mysql_role : Check that the role is active assertion * test_mysql_role : create checks for mariadb * Make 'when' conditions uniform * Fix: test_mysql_role : admin option tests * test_mysql_role : create checks for mariadb * Fix: add fixme on test which create role in check mode 'again' It changes only on mariadb 10.2 (doesn't change on mysql 8 or mariadb 10.5) * Fix: add fixme on test which create role 'again' * Simplify test without checking Host part * Fix 'show grant' checks for mariadb * Enable mariadb tests for test_mysql_role target * Add tests to verify role grants for roles * Add FIXME comments for tests which do not pass on mariadb 10.2 * Fix FIXME tests related to mariadb 10.2 * Exclude mysqlclient==2.0.1 with mariadb from integration tests
This commit is contained in:
parent
c273ee36a7
commit
82cedf8510
2 changed files with 432 additions and 37 deletions
4
.github/workflows/ansible-test-plugins.yml
vendored
4
.github/workflows/ansible-test-plugins.yml
vendored
|
@ -78,6 +78,10 @@ jobs:
|
|||
connector: pymysql==0.7.10
|
||||
- db_engine_version: mariadb_10.5.9
|
||||
connector: pymysql==0.7.10
|
||||
- db_engine_version: mariadb_10.3.34
|
||||
connector: mysqlclient==2.0.1
|
||||
- db_engine_version: mariadb_10.5.9
|
||||
connector: mysqlclient==2.0.1
|
||||
- python: 3.8
|
||||
ansible: stable-2.9
|
||||
- python: 3.8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue