Skip to content

Commit

Permalink
also test ACME connections
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasertl committed Jan 5, 2025
1 parent 4203329 commit c4662aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions devscripts/validation/docker_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c4662aa

Please sign in to comment.