prole/tests/test_no_common_services_literal_in_etc_scripts.py
chrisfu d397b3000e Fix installer ctx apply flow and registry namespace
- Add explicit Apply button for kubectl context switching to avoid half-applied changes

- Allow kubeconfig/context-based auth without requiring K3S_TOKEN when kubeconfig is valid

- Prompt cleanup/reset of previous Common Core services namespace to prevent resource collisions

- Remove hardcoded 'common-services' registry namespace; default registry deploy/check to SERVICE_NAMESPACE/REGISTRY_NAMESPACE

- Update mocks and add regression tests for namespace resolution and installer behavior
2026-03-07 10:35:27 -08:00

13 lines
497 B
Python

from __future__ import annotations
from pathlib import Path
def test_no_common_services_literal_in_etc_init_scripts():
"""Regression: registry namespace must be driven by config; do not hardcode `common-services`."""
init_scripts = sorted(Path("etc").glob("init_*.sh"))
assert init_scripts, "expected init_*.sh scripts under etc/"
for p in init_scripts:
text = p.read_text(encoding="utf-8")
assert "common-services" not in text, f"{p} hardcodes common-services"