Commit graph

106 commits

Author SHA1 Message Date
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
Laurent Indermuehle
9cb404b17b
Fix mysql_dump for MySQL 5.7 and MariaDB when using mysqldump 8 2023-01-09 17:00:41 +01:00
Laurent Indermuehle
b973849b53
Add unique name to simplify debugging 2023-01-09 15:43:31 +01:00
Laurent Indermuehle
6adb71a3ea
Linting 2023-01-09 15:40:55 +01:00
Laurent Indermuehle
a473e06e57
Enhance installation of mysql_client
Initially I wanted to install mysql-client-5.7 to test mysql server 5.7
but this package is not available for Ubuntu 18+.
I keep those changes because it allow us to specify the name of the
package based on the Ubuntu version.
2023-01-09 15:39:18 +01:00
Laurent Indermuehle
ac748983f8
Reformat for readability 2023-01-06 18:00:57 +01:00
Laurent Indermuehle
7f69ead2a3
Attempt to set log-bin into docker 2023-01-06 18:00:30 +01:00
Laurent Indermuehle
98dbc1e1ec
Add IF NOT EXISTS to prevent misleading error on retry 2023-01-06 16:13:24 +01:00
Laurent Indermuehle
0b6569d55a
Add same variables as other target for consistency 2023-01-06 16:13:08 +01:00
Laurent Indermuehle
9b7fbdfe5e
Linting 2023-01-06 14:34:16 +01:00
Laurent Indermuehle
994c6efab1
Use same variable as other target for consistency 2023-01-06 14:34:04 +01:00
Laurent Indermuehle
06ca921577
Cut useless task 2023-01-06 14:33:46 +01:00
Laurent Indermuehle
8d43f9e573
Refactor the way server_id is set for replicas
The simple way is to add '--server-id 2' after the name of the image of
the container. But GHA doesn't let us do that. The idea of mount a file
from our repo doesn't work because the repo is check out later in the
workflow and I failed to find a pre-job hook. Then I realized that this
MySQL option is dynamic! So we will set that in the test target!
2023-01-06 14:14:35 +01:00
Laurent Indermuehle
168de6bcfb
Cut unused file 2023-01-06 10:06:53 +01:00
Laurent Indermuehle
7ba0dbd7b9
lint 2023-01-06 10:06:46 +01:00
Laurent Indermuehle
192680888c
Fix trailing newline and quote in db_engine_version 2023-01-06 10:05:56 +01:00
Laurent Indermuehle
42fe4baf18
Fix tailing newline by not created it in the first place 2023-01-05 19:44:22 +01:00
Laurent Indermuehle
a271a9bcd2
Cut the newline added by lookup 'file' 2023-01-05 19:34:58 +01:00
Laurent Indermuehle
bc92ded791
Refactor test to use the db_version from setup_controller 2023-01-05 19:05:58 +01:00
Laurent Indermuehle
1de0f2ce77
Fix missing var 2023-01-05 19:05:02 +01:00
Laurent Indermuehle
98ce2af28c
Refactor way tests info are passed from sed to file with lookup
The idea is to avoid modifying test targets from the workflow to prevent
ansible-test to think every tests needs to be run.
2023-01-05 19:04:51 +01:00
Laurent Indermuehle
9da866a7bf
Refactor test_mysql_user to work with other host than localhost 2023-01-05 18:04:12 +01:00
Laurent Indermuehle
978676a6dc
Linting 2023-01-05 11:59:08 +01:00
Laurent Indermuehle
7cffcf3355
Add back a package to connect to MySQL 8+ 2023-01-05 11:56:11 +01:00
Laurent Indermuehle
2af8e4f273
Fix server_id in GHA
GHA lack a way to pass option to docker's command. Also server_id is
not read as a environment variable. So I'm forced to use a config file.
2023-01-05 11:55:54 +01:00
Laurent Indermuehle
9e3010dd00
Fix test_mysql_role 2023-01-04 18:02:39 +01:00
Laurent Indermuehle
7049a280cb
Refactor setup_mysql into setup_controller 2023-01-04 17:29:06 +01:00
Laurent Indermuehle
405b809a86
Linting 2023-01-04 17:17:53 +01:00
Laurent Indermuehle
1c863da888
Simplify version computation 2023-01-04 17:17:31 +01:00
Laurent Indermuehle
17f8ecef35
Fix replication due to usage of gateway_addr instead of localhost 2023-01-04 17:16:54 +01:00
Laurent Indermuehle
72b3ecb6da
Fix database not selected 2023-01-04 17:16:37 +01:00
Laurent Indermuehle
b821db97c5
Generalize mysql and mariadb version based on container name
This way we can split db_engine and db_version and simplify tests.
Also this is mandatory to use the matrix.db_engine_version as the
image name for our services containers.
2023-01-04 14:14:13 +01:00
Laurent Indermuehle
90266f1ad5
De-duplicate the mysql_command alias 2023-01-04 13:15:24 +01:00
Laurent Indermuehle
b72ca0d214
Prepare controller with Podman/Docker Network
We use the Podman/Docker network gateway address to communicate between
container. I haven't tested Docker. I would have preferred to use a pod
but only Podman support it and ansible-test only support the
--docker-network option.
2023-01-04 11:23:39 +01:00
Laurent Indermuehle
06666690eb
Fix package name and missing apt cache 2023-01-03 17:48:43 +01:00
Laurent Indermuehle
676509e88d
Install mysql_client the correct way 2023-01-03 15:17:47 +01:00
Laurent Indermühle
574fef5e50
Merge branch 'main' into lie_tests_using_containers 2022-12-09 15:33:33 +01:00
Laurent Indermuehle
eec9f972cc
Add path to default-file
/root doesn't exist with --venv
2022-12-09 15:22:41 +01:00
Laurent Indermuehle
01e664fb25
Fix comparison
We are not logged in as 127.0.0.1 anymore, but 10.88... as I couldn't
test this easily, I decided to simplify the test.
2022-12-09 15:22:41 +01:00
Laurent Indermuehle
c895a86c2a
Add % instead of the default 'localhost' since we use remote connection
Previously, everything was on localhost. Now ansible-test is in a
venv and the db is in a container. The db see the IP address from the
podman host (10.88.0.2)
2022-12-09 15:22:41 +01:00
Laurent Indermuehle
8c5806848f
Add default file for root necessary since using venv instead of docker 2022-12-09 15:22:41 +01:00
Laurent Indermuehle
5bd358e553
Add playbook to test connection to the server 2022-12-09 15:22:40 +01:00
Laurent Indermuehle
86188a20aa
Draft: Add a mariadb container 2022-12-09 15:22:40 +01:00
Diego Gullo
6ac89ca1f6
Display a more informative error when InvalidPrivsError is raised (#465) (#466)
* Display a more informative error when InvalidPrivsError is raised (Issue #465)

Co-authored-by: Laurent Indermühle <laurent.indermuehle@pm.me>
2022-12-06 13:12:01 +01:00
Andrew Klychkov
b8e2c02e89
CI: add stable-2.14 to test matrix (#449) 2022-09-22 11:24:01 +02:00