- add startup/shutdown scripts that render a Caddyfile from JSON config and run health checks - add Python utilities and a sample sites.json for declarative multi-site configuration - document the workflow and ignore generated Caddy state artifacts - normalize double-quote style across challenge workflow controllers, nodes, and tests
12 lines
377 B
Python
12 lines
377 B
Python
from __future__ import annotations
|
|
|
|
from flask.testing import FlaskClient
|
|
|
|
|
|
class TestWebChallenges:
|
|
def test_list_and_detail(self, test_client_with_containers: FlaskClient):
|
|
# list
|
|
resp = test_client_with_containers.get("/api/web/challenges")
|
|
assert resp.status_code == 200
|
|
data = resp.get_json()
|
|
assert data["result"] == "success"
|