From c4662aab96b8bc377ec3c8c7e46cae329279e23b Mon Sep 17 00:00:00 2001 From: Mathias Ertl Date: Sun, 5 Jan 2025 13:58:14 +0100 Subject: [PATCH] also test ACME connections --- devscripts/validation/docker_compose.py | 4 ++++ .../include/quickstart_with_docker_compose/setup-cas.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/devscripts/validation/docker_compose.py b/devscripts/validation/docker_compose.py index 9ece610ba..a04bacd5a 100644 --- a/devscripts/validation/docker_compose.py +++ b/devscripts/validation/docker_compose.py @@ -260,6 +260,10 @@ def validate_endpoints(base_url: str, verify: Optional[str] = None): resp = requests.get(f"{base_url}/static/admin/css/base.css", verify=verify, timeout=10) resp.raise_for_status() + # Test (principal) ACME connection + resp = requests.get(f"{base_url}/acme/directory/", verify=verify, timeout=10) + resp.raise_for_status() + def test_tutorial(release: str) -> int: # pylint: disable=too-many-locals # noqa: PLR0915 """Validate the docker compose quickstart tutorial.""" diff --git a/docs/source/include/quickstart_with_docker_compose/setup-cas.yaml b/docs/source/include/quickstart_with_docker_compose/setup-cas.yaml index 4a47638fa..e0b2bc2a1 100644 --- a/docs/source/include/quickstart_with_docker_compose/setup-cas.yaml +++ b/docs/source/include/quickstart_with_docker_compose/setup-cas.yaml @@ -2,4 +2,4 @@ commands: - command: docker compose exec backend manage createsuperuser run: docker compose exec backend manage shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('user', 'user@example.com', 'nopass')" - command: docker compose exec backend manage init_ca --path-length=1 Root CN=Root - - command: docker compose exec backend manage init_ca --path=ca/shared/ --parent=Root Intermediate CN=Intermediate + - command: docker compose exec backend manage init_ca --path=ca/shared/ --parent=Root --acme-enable Intermediate CN=Intermediate