From 7a7d6840b30dd31742b03e5e6dca4a315765e80d Mon Sep 17 00:00:00 2001 From: autonomic-bot Date: Mon, 1 Jun 2026 19:55:39 +0000 Subject: [PATCH] fix(tests): track custom-html /var docroot --- tests/custom-html/functional/test_content_roundtrip.py | 4 ++-- tests/custom-html/functional/test_content_type_header.py | 2 +- tests/custom-html/ops.py | 4 ++-- tests/custom-html/test_backup.py | 2 +- tests/custom-html/test_restore.py | 2 +- tests/custom-html/test_upgrade.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/custom-html/functional/test_content_roundtrip.py b/tests/custom-html/functional/test_content_roundtrip.py index cbbb9e3..f675c51 100644 --- a/tests/custom-html/functional/test_content_roundtrip.py +++ b/tests/custom-html/functional/test_content_roundtrip.py @@ -23,11 +23,11 @@ def test_content_roundtrip(live_app): exact bytes round-trip. Non-vacuous: a stale page or misrouted backend would not return our randomly-generated content.""" marker = f"ccci-roundtrip-{uuid.uuid4().hex}" - # written into the served volume; nginx routes / to /srv/www/html/ + # written into the served volume; nginx routes / to /var/www/html/ filename = f"ccci-roundtrip-{uuid.uuid4().hex[:12]}.txt" lifecycle.exec_in_app( live_app, - ["sh", "-c", f"mkdir -p /srv/www/html && printf %s {marker} > /srv/www/html/{filename}"], + ["sh", "-c", f"mkdir -p /var/www/html && printf %s {marker} > /var/www/html/{filename}"], ) url = f"https://{live_app}/{filename}" diff --git a/tests/custom-html/functional/test_content_type_header.py b/tests/custom-html/functional/test_content_type_header.py index 0b2728f..99e6648 100644 --- a/tests/custom-html/functional/test_content_type_header.py +++ b/tests/custom-html/functional/test_content_type_header.py @@ -40,7 +40,7 @@ def test_content_type_html_and_txt(live_app): body = "hello" for name in (html_name, txt_name): lifecycle.exec_in_app( - live_app, ["sh", "-c", f"mkdir -p /srv/www/html && printf %s {body} > /srv/www/html/{name}"] + live_app, ["sh", "-c", f"mkdir -p /var/www/html && printf %s {body} > /var/www/html/{name}"] ) s_html, h_html = _head(f"https://{live_app}/{html_name}") diff --git a/tests/custom-html/ops.py b/tests/custom-html/ops.py index 5fae7f6..5295ba9 100644 --- a/tests/custom-html/ops.py +++ b/tests/custom-html/ops.py @@ -1,7 +1,7 @@ """custom-html — pre-op seed hooks (Phase 1e HC3). The orchestrator runs `pre_(domain, meta)` BEFORE it performs the op; the matching test_.py asserts the post-op state (assertion-only). -nginx serves the volume at /srv/www/html, so the marker file survives an upgrade / a +nginx serves the volume at /var/www/html, so the marker file survives an upgrade / a backup+restore of that volume and is both HTTP-readable and exec-readable.""" import os @@ -10,7 +10,7 @@ import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "runner")) from harness import lifecycle # noqa: E402 -MARKER_PATH = "/srv/www/html/ci-marker.txt" +MARKER_PATH = "/var/www/html/ci-marker.txt" def _write(domain: str, val: str) -> None: diff --git a/tests/custom-html/test_backup.py b/tests/custom-html/test_backup.py index 22ee74d..35b629c 100644 --- a/tests/custom-html/test_backup.py +++ b/tests/custom-html/test_backup.py @@ -12,7 +12,7 @@ import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "runner")) from harness import lifecycle # noqa: E402 -MARKER_PATH = "/srv/www/html/ci-marker.txt" +MARKER_PATH = "/var/www/html/ci-marker.txt" def test_backup_captures_state(live_app): diff --git a/tests/custom-html/test_restore.py b/tests/custom-html/test_restore.py index 43cbd89..bafba6b 100644 --- a/tests/custom-html/test_restore.py +++ b/tests/custom-html/test_restore.py @@ -12,7 +12,7 @@ import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "runner")) from harness import lifecycle # noqa: E402 -MARKER_PATH = "/srv/www/html/ci-marker.txt" +MARKER_PATH = "/var/www/html/ci-marker.txt" def test_restore_returns_state(live_app): diff --git a/tests/custom-html/test_upgrade.py b/tests/custom-html/test_upgrade.py index 8a64b3b..5490014 100644 --- a/tests/custom-html/test_upgrade.py +++ b/tests/custom-html/test_upgrade.py @@ -11,7 +11,7 @@ import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "runner")) from harness import lifecycle # noqa: E402 -MARKER_PATH = "/srv/www/html/ci-marker.txt" +MARKER_PATH = "/var/www/html/ci-marker.txt" def test_upgrade_preserves_data(live_app):