Commit graph

150 commits

Author SHA1 Message Date
Laurent Indermuehle
6288c8b0e3
Fix test connection to the database and tasks names 2023-02-21 17:44:24 +01:00
Laurent Indermuehle
4a5220105b
Merge branch 'main' into lie_tests_using_containers 2023-02-21 16:00:04 +01:00
Laurent Indermuehle
03a925f820
Fix variable assignation to the include task 2023-02-21 13:11:34 +01:00
Laurent Indermuehle
eadf0a6643
Fix cleanup task 2023-02-21 13:10:51 +01:00
Andrew Klychkov
9b8455c2e6
Fix sanity (#508)
* Fix sanity

* Remove as unnecessary
2023-02-14 09:57:44 +01:00
Markus Bergholz
b34c23d07d
Fix revoke only grant (#503)
* fix

* test

* changelog
2023-02-08 09:24:35 +01:00
Laurent Indermuehle
740e3e6b8b
Fix test after merge of PR497 2023-02-01 15:21:23 +01:00
Laurent Indermuehle
8658f191d9
Merge branch 'main' into lie_tests_using_containers 2023-01-31 17:39:58 +01:00
Laurent Indermühle
a5f3296d73
mysql_info - Add connector_name and connector_version to returned value (#497)
* Add methods to retrieve connector name and version
* Document that mysqlclient is also named MySQLdb
* Document version_added
* Add connector name and version in the returned block
* Cut condition to display any name that is return

In case of MySQLdb is renamed in mysqlclient. In that case, the
integration tests will catch this the day we update the connector
version.

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2023-01-30 13:35:24 +01:00
Laurent Indermuehle
84373e905e
Cut folder re-created by merge from main 2023-01-25 09:51:53 +01:00
Laurent Indermuehle
f1749db40a
Merge branch 'main' into lie_tests_using_containers 2023-01-25 09:50:50 +01:00
Jorge Rodriguez (A.K.A. Tiriel)
00fa058a18
491-CI-fix-tarball-download (#491)
* Fix mariadb test setup

* Update mysql src URL

* Add changelog fragment

* Update 491_fix_download_url.yaml

Sanity test failed because minor_changes in not an element of a list.

* Fix casing

Co-authored-by: Laurent Indermühle <laurent.indermuehle@pm.me>
2023-01-24 19:12:35 +02:00
Andrew Klychkov
930a5a5d49
mysql_user: add session_vars argument (#489)
* mysql_user: add session_vars argument

* Update tests/integration/targets/test_mysql_user/tasks/main.yml

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2023-01-24 14:53:29 +01:00
Laurent Indermuehle
affcd1e93c
Rename folder to better purpose 2023-01-23 21:43:31 +01:00
Laurent Indermuehle
7d50a68546
Fix ansible version extraction for "devel" 2023-01-23 09:20:33 +01:00
Laurent Indermuehle
325320ac9e
Fix verify ansible 'devel' for which the version is unknown
Today 'devel' means 2.15, but in the future it will be something else.
2023-01-23 09:20:10 +01:00
Laurent Indermuehle
37e5c71366
Fix variable name 2023-01-20 19:50:00 +01:00
Laurent Indermuehle
e412aa5142
Add clean up in "always" phase of the block
Because our tests use --retry-on-error, and the first thing the test
does is to try to create the database. We must cleanup otherwise if
there is a retry, it will throw a misleading "database already exists"
error.
2023-01-20 18:19:29 +01:00
Laurent Indermuehle
d6956e236e
Fix python version lookup 2023-01-20 17:13:16 +01:00
Laurent Indermuehle
b2cbd3bc78
Fix test of mysql/mariadb version in use 2023-01-20 16:07:39 +01:00
Laurent Indermuehle
d574daf683
Cut filter for tests now that the right connector is used 2023-01-20 16:07:21 +01:00
Laurent Indermuehle
05215dc1c3
Rename variable for consistency 2023-01-20 14:02:28 +01:00
Laurent Indermuehle
f59e94ee04
Fix verify for mysqlclient second name MySQLdb 2023-01-20 14:00:35 +01:00
Laurent Indermuehle
14cc5ccbee
Fix verify database version
Sometimes, version_full contains trailing information (-log). To prevent
issues it's best to concatenate major and minor version.
2023-01-20 13:59:57 +01:00
Laurent Indermuehle
6bc293a022
Add a verify stage at setup of test to assert all version are correct 2023-01-19 16:37:06 +01:00
Laurent Indermuehle
2254e72d6b
Cut playbook that are now handled by the test-containers 2023-01-19 13:56:58 +01:00
Laurent Indermuehle
db72c7948b
Fix assertion for older mysqlclient than 2.0.1 with mysql (mariadb ok) 2023-01-17 18:11:19 +01:00
Laurent Indermuehle
757e974fe5
Linting 2023-01-17 17:59:49 +01:00
Laurent Indermuehle
31d29057fa
Fix assertion for mariadb 2023-01-17 17:59:37 +01:00
Laurent Indermuehle
f9f185c050
Add names to tests 2023-01-17 13:29:10 +01:00
Laurent Indermuehle
73ee8f07c9
Add filter for issues resolved in newer version of mysqlclient 2023-01-17 13:29:03 +01:00
Laurent Indermuehle
06ed7374d7
Fix queries for roles 2023-01-17 10:46:56 +01:00
Laurent Indermuehle
8f0d1f5b14
Cut column-statistics disabling
Thanks to our test-container, we now use the correspond mysql-client.
So to test mysql 5.7 we use mysql-client-5.7 and to test mysql 8 we
use mysql-client-8.
2023-01-16 09:18:42 +01:00
Laurent Indermuehle
db995249cb
Add PoC using custom ansible-test containers 2023-01-13 16:22:57 +01:00
Laurent Indermuehle
199b7a5b64
Simplify connector_name variables 2023-01-13 16:22:35 +01:00
Laurent Indermuehle
3b379d0837
Workaround for plugin role that fails with any MariaDB versions 2023-01-12 21:01:51 +01:00
Laurent Indermuehle
85f24bd8c6
Refactor to remove useless variables 2023-01-12 20:34:50 +01:00
Laurent Indermuehle
7fa1bf890b
Disable tests that fails only on MariaDB 2023-01-12 18:52:56 +01:00
Laurent Indermuehle
4e0c048965
Refactor user@<gateway ip addr> into user@% 2023-01-12 18:52:28 +01:00
Laurent Indermuehle
39de75bebd
Use mysql_host var name instead of gateway_addr in tests 2023-01-12 18:49:12 +01:00
Laurent Indermuehle
3f0f4ffdf5
Add more descriptive tests names 2023-01-12 17:40:10 +01:00
Laurent Indermuehle
f79355f2b8
Add TODO verify that the version of mysql/mariadb is correct 2023-01-12 17:01:22 +01:00
Laurent Indermuehle
ae41a50626
Add unique test names 2023-01-11 16:58:35 +01:00
Laurent Indermuehle
91e76d190e
Add unique test names 2023-01-10 18:03:16 +01:00
Laurent Indermuehle
ce8d166259
Disable replication with channel tests entirely for MySQL 5.7 2023-01-09 19:33:24 +01:00
Laurent Indermuehle
fb72e4402d
Disable test for replication with chanel for mysql 5.7 2023-01-09 19:01:05 +01:00
Laurent Indermuehle
ec76110d12
Fix dump with mysqldump 8 against mysql 5.7 2023-01-09 18:59:09 +01:00
Laurent Indermuehle
d7db57c986
Lining 2023-01-09 17:01:59 +01:00
Laurent Indermuehle
47a4b49a91
Deduplicate tasks 2023-01-09 17:01:52 +01:00
Laurent Indermuehle
a3c67c31d1
Add unique name to simplify debugging 2023-01-09 17:01:33 +01:00