mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-02-22 09:35:35 -07:00
acme-dns E2E Testing Suite
This directory contains the end-to-end (E2E) testing suite for acme-dns. The suite runs in a containerized environment to ensure a consistent and isolated test execution.
Overview
The E2E suite consists of:
- A Dockerized
acme-dnsserver. - A Python-based
testercontainer that performs API and DNS operations. - A GitHub Actions workflow for CI/CD integration.
Prerequisites
Running Locally
To run the full E2E suite locally, execute the following command from the root of the repository:
docker compose -f test/e2e/docker-compose.yml up --build --abort-on-container-exit
The tester container will return an exit code of 0 on success and 1 on failure.
Test Flow
The tester.py script follows these steps:
- Wait for Ready: Polls the
/healthendpoint until the API is available. - Account Registration: Registers a NEW account at
/register. - TXT Update: Performs TWO sequential updates to the TXT records of the newly created subdomain.
- DNS Verification: Directly queries the
acme-dnsserver (on port 53) used in the test to verify that the TXT records have been correctly updated and are resolvable.
CI/CD integration
The tests are automatically run on every push and pull request to the master branch via GitHub Actions. The workflow configuration can be found in .github/workflows/e2e.yml.