mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 10:13:58 +00:00
- 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
13 lines
497 B
Python
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" |