Commit graph

19 commits

Author SHA1 Message Date
Laurent Indermuehle
fbb0290e19
Fix ansible-test unknown option
I copied blindly https://github.com/ansible-collections/community.sops/blob/main/.github/workflows/ansible-test.yml#L195
and forgot what ansible-test was expecting
2023-01-16 09:16:50 +01:00
Laurent Indermuehle
9bfd0a3b28
Fix error when using local registry by using quay.io 2023-01-14 00:17:40 +01:00
Laurent Indermuehle
05b5f627d7
Fix docker_container variable name 2023-01-13 17:05:44 +01:00
Laurent Indermuehle
70e23b25da
Add a virtualenv for ansible-test used locally 2023-01-13 16:15:20 +01:00
Laurent Indermuehle
b6160f3a8c
Ensure replicas are healthy before rebooting them 2023-01-12 22:59:37 +01:00
Laurent Indermuehle
b9d0e96deb
Fix replication settings
sh don't know 'echo -e', so we use bash instead.
Also, we need to wait for the container to be healthy before trying to
restart it. Otherwise that could corrupt it.
2023-01-12 13:49:34 +01:00
Laurent Indermuehle
2e56d5b53b
Add option to run only a single target 2023-01-06 18:07:16 +01:00
Laurent Indermuehle
7f69ead2a3
Attempt to set log-bin into docker 2023-01-06 18:00:30 +01:00
Laurent Indermuehle
3f64fb5f32
Add options to the makefile 2023-01-06 16:12:27 +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
9d3ce94e4d
Re-enable integration tests to validate db_engine_version is fixed 2023-01-06 10:06:36 +01:00
Laurent Indermuehle
a0a0493a0a
Disable tests to concentrate on the \n and quote issue with my files 2023-01-06 09:37:26 +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
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
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
87acd3d303
Add static test with replication containers 2023-01-04 17:16:29 +01:00
Laurent Indermuehle
d98aa89ada
Cut target filtering 2022-12-09 15:22:41 +01:00
Laurent Indermuehle
d781636f32
Add healthcheck to MariaDB before starting the tests
This prevent the first test to fail because the db isn't ready yet.
2022-12-09 15:22:40 +01:00
Laurent Indermuehle
86188a20aa
Draft: Add a mariadb container 2022-12-09 15:22:40 +01:00