Repository URLs, version strings, and example creds normalized for the public git.sulkta.com endpoint. No code-behavior change. Audit-applied by the public-flip rolling-audit pass — see kayos/openclaw-workspace memory/2026-05-27 logs for the campaign context.
31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
"""Shared fixtures.
|
|
|
|
Live-smoke tests read ``ISPCONFIG_TEST_URL``, ``ISPCONFIG_TEST_USER``, and
|
|
``ISPCONFIG_TEST_PASS`` from the environment. If any is missing, those tests
|
|
are skipped — so the default ``pytest`` run on a laptop never phones home.
|
|
|
|
Set ``ISPCONFIG_TEST_VERIFY_SSL=0`` for panels with self-signed or
|
|
mismatched certs.
|
|
|
|
Tests that read a specific record additionally read
|
|
``ISPCONFIG_TEST_DOMAIN_ID`` (a ``web_domain`` primary id) and
|
|
``ISPCONFIG_TEST_DOMAIN_NAME`` (the matching domain/zone origin). They skip
|
|
individually if either is missing — see ``tests/test_smoke.py``.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def live_creds() -> dict[str, str]:
|
|
url = os.environ.get("ISPCONFIG_TEST_URL")
|
|
user = os.environ.get("ISPCONFIG_TEST_USER")
|
|
password = os.environ.get("ISPCONFIG_TEST_PASS")
|
|
if not (url and user and password):
|
|
pytest.skip("live smoke test: set ISPCONFIG_TEST_URL/USER/PASS to enable")
|
|
verify = os.environ.get("ISPCONFIG_TEST_VERIFY_SSL", "1")
|
|
return {"url": url, "user": user, "password": password, "verify": verify}
|