1
0
Fork 0

Add Docker build and cache cleanup steps in CI, prevent redundant builds in Swarm E2E tests

- Updated GitHub workflow to include Docker cache cleanup and image build steps.
- Modified Swarm E2E test logic to skip Docker image build if it already exists, optimizing CI performance.
This commit is contained in:
Joao Gilberto Magalhaes 2026-02-18 16:58:55 -05:00
parent 3710b08995
commit 81495216a7
2 changed files with 8 additions and 22 deletions

View file

@ -521,12 +521,6 @@ class TestSwarmBasicServices:
assert response.status_code == 301
assert response.headers.get("location") == "https://host2.local/"
def test_haproxy_stats(self, swarm_basic_services):
"""Test HAProxy stats interface is accessible."""
from conftest import verify_haproxy_stats
verify_haproxy_stats()
# =============================================================================
# Tests: plugins-combined.yml - Multiple Security Plugins in Swarm
# =============================================================================
@ -631,8 +625,3 @@ class TestSwarmPluginsCombined:
assert response.status_code == 200, \
(f"Expected admin access from Docker ingress IP (in 10.0.0.0/8), "
f"got {response.status_code}")
def test_haproxy_stats(self, swarm_plugins_combined):
"""Test HAProxy stats interface is accessible."""
from conftest import verify_haproxy_stats
verify_haproxy_stats()