mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-09-30 13:33:26 -07:00
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.
This commit is contained in:
parent
9da866a7bf
commit
98ce2af28c
7 changed files with 35 additions and 22 deletions
6
Makefile
6
Makefile
|
@ -1,5 +1,7 @@
|
|||
.PHONY: test-integration
|
||||
test-integration:
|
||||
echo "mysql:8.0.22" > tests/integration/db_engine_version
|
||||
echo "pymysql==0.9.3" > tests/integration/connector
|
||||
podman run \
|
||||
--detach \
|
||||
--name primary \
|
||||
|
@ -32,7 +34,9 @@ test-integration:
|
|||
--volume ./tests/integration/targets/setup_mysql/replica2/:/etc/mysql/conf.d/ \
|
||||
mysql:8.0.22
|
||||
while ! podman healthcheck run primary && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
||||
-set -x; ansible-test integration -v --color --coverage --retry-on-error --continue-on-error --diff --docker --docker-network podman --python 3.8; set +x
|
||||
-set -x; ansible-test integration -v --color --coverage --retry-on-error --continue-on-error --diff --docker --docker-network podman --python 3.8; set +x
|
||||
rm tests/integration/db_engine_version
|
||||
rm tests/integration/connector
|
||||
podman stop --time 0 --ignore primary
|
||||
podman stop --time 0 --ignore replica1
|
||||
podman stop --time 0 --ignore replica2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue