1
0
Fork 0

Set pytest.fixture scope to class, add Swarm E2E tests, and update Docker Swarm configurations

- Modified `pytest.fixture` scope to `class` across tests to improve fixture lifecycle and reduce setup overhead.
- Introduced a new `tests_e2e/test_swarm.py` test suite for Docker Swarm stack configurations.
- Added E2E tests for Swarm mode with scenarios such as basic services and combined plugins.
- Updated HAProxy image in Swarm stack `.yml` files to `byjg/easy-haproxy:local` for local testing consistency.
- Added `swarm` marker in `pyproject.toml` for differentiating Docker Swarm-specific tests.
- Updated GitHub workflows to include a new Swarm E2E test pipeline.
This commit is contained in:
Joao Gilberto Magalhaes 2026-02-18 15:28:07 -05:00
parent 16fcee4280
commit d9c7ff89cc
11 changed files with 682 additions and 22 deletions

View file

@ -70,7 +70,7 @@ version: "3.7"
services:
haproxy:
image: byjg/easy-haproxy:5.0.0
image: byjg/easy-haproxy:local
volumes:
- /var/run/docker.sock:/var/run/docker.sock
configs:

View file

@ -54,7 +54,7 @@
services:
haproxy:
image: byjg/easy-haproxy:5.0.0
image: byjg/easy-haproxy:local
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./certs:/certs/haproxy

View file

@ -65,7 +65,7 @@ version: "3.7"
services:
haproxy:
image: byjg/easy-haproxy:5.0.0
image: byjg/easy-haproxy:local
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:

View file

@ -78,7 +78,7 @@ version: "3.7"
services:
haproxy:
image: byjg/easy-haproxy:5.0.0
image: byjg/easy-haproxy:local
volumes:
- /var/run/docker.sock:/var/run/docker.sock
configs:

View file

@ -94,7 +94,7 @@ version: "3.7"
services:
haproxy:
image: byjg/easy-haproxy:5.0.0
image: byjg/easy-haproxy:local
volumes:
- /var/run/docker.sock:/var/run/docker.sock
configs: