Migrate configuration paths to /etc/easyhaproxy and improve health check support in E2E tests
- Refactored HAProxy configuration files, templates, and paths to use `/etc/easyhaproxy` instead of `/etc/haproxy`. - Updated Dockerfile to generate DH params and placeholder certificates in the new configuration directory. - Added health check support with timeout to `DockerComposeFixture` in E2E test utilities. - Adjusted tests, templates, and plugins to use the new `Consts`-based configuration paths. - Introduced pytest fixtures for environment isolation and temporary directory management.
This commit is contained in:
parent
3e963228f3
commit
045dd3817e
73 changed files with 600 additions and 287 deletions
|
|
@ -5,7 +5,7 @@
|
|||
# WHAT THIS TESTS:
|
||||
# - HAProxy routing of /.well-known/acme-challenge/ to certbot backend
|
||||
# - Certbot HTTP-01 challenge completion with Pebble ACME server
|
||||
# - Certificate issuance and storage in /certs/certbot/live/{domain}/
|
||||
# - Certificate issuance and storage in /etc/easyhaproxy/certs/live/{domain}/
|
||||
# - HTTPS serving with issued certificate
|
||||
# - Full end-to-end ACME protocol flow
|
||||
#
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
# docker compose -f docker-compose-acme-e2e.yml logs haproxy
|
||||
#
|
||||
# # Verify certificate was issued
|
||||
# ls -la ../../certs/certbot/live/test.local/
|
||||
# ls -la ../../certs/live/test.local/
|
||||
#
|
||||
# # Test HTTPS (will show certificate warning - expected for test certs)
|
||||
# curl -k https://localhost/ -H "Host: test.local"
|
||||
|
|
@ -104,7 +104,7 @@ services:
|
|||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
# Certificate storage (Docker volume for clean test isolation)
|
||||
- certbot-certs:/certs/certbot
|
||||
- certbot-certs:/etc/easyhaproxy/certs
|
||||
# Pebble CA certificate (downloaded during test session)
|
||||
- ./pebble-ca.pem:/etc/ssl/certs/pebble-ca.pem:ro
|
||||
ports:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue