Rename Castle -> Wild PC across the repo
Repo-side rename only (Phases 1-3 of the migration plan); the live box (~/.castle, systemd units, /data/castle, domains) is a separate cutover. - Slug `castle` -> `wildpc`: CLI command, module names (wildpc_core/cli/api), dist names, entry point `wildpc = wildpc_cli.main:main`. - Identifiers: CastleConfig/NATSClient/DirError/MDNS -> Wildpc*. - Env/constants: CASTLE_* -> WILDPC_*; ~/.castle -> ~/.wildpc, castle.yaml -> wildpc.yaml, /data/castle -> /data/wildpc. - Systemd UNIT_PREFIX castle- -> wildpc-; own programs castle-api/gateway/etc. - Display prose "Castle" -> "Wild PC" in docs, agent-guide files, README, frontend. - Package dirs and bootstrap yaml renamed via git mv; lockfiles regenerated; redundant nested uv.lock files dropped (workspace root lock is authoritative). Tests: core 273, cli 47, wildpc-api 120 all pass. Frontend type-checks + builds. Fixed a stale test fixture (secret_env_path kind arg) broken pre-rename.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""Tests for castle info command."""
|
||||
"""Tests for wildpc info command."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -11,14 +11,14 @@ from unittest.mock import patch
|
||||
class TestInfoCommand:
|
||||
"""Tests for the info command."""
|
||||
|
||||
def test_info_service(self, castle_root: Path, capsys) -> None:
|
||||
def test_info_service(self, wildpc_root: Path, capsys) -> None:
|
||||
"""Show info for a service."""
|
||||
from castle_cli.config import load_config
|
||||
from wildpc_cli.config import load_config
|
||||
|
||||
with patch("castle_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(castle_root)
|
||||
with patch("wildpc_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(wildpc_root)
|
||||
|
||||
from castle_cli.commands.info import run_info
|
||||
from wildpc_cli.commands.info import run_info
|
||||
|
||||
result = run_info(Namespace(name="test-svc", json=False))
|
||||
|
||||
@@ -28,14 +28,14 @@ class TestInfoCommand:
|
||||
assert "service" in output
|
||||
assert "19000" in output
|
||||
|
||||
def test_info_tool(self, castle_root: Path, capsys) -> None:
|
||||
def test_info_tool(self, wildpc_root: Path, capsys) -> None:
|
||||
"""Show info for a tool."""
|
||||
from castle_cli.config import load_config
|
||||
from wildpc_cli.config import load_config
|
||||
|
||||
with patch("castle_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(castle_root)
|
||||
with patch("wildpc_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(wildpc_root)
|
||||
|
||||
from castle_cli.commands.info import run_info
|
||||
from wildpc_cli.commands.info import run_info
|
||||
|
||||
result = run_info(Namespace(name="test-tool", json=False))
|
||||
|
||||
@@ -44,14 +44,14 @@ class TestInfoCommand:
|
||||
assert "test-tool" in output
|
||||
assert "tool" in output
|
||||
|
||||
def test_info_not_found(self, castle_root: Path, capsys) -> None:
|
||||
def test_info_not_found(self, wildpc_root: Path, capsys) -> None:
|
||||
"""Info for nonexistent component returns error."""
|
||||
from castle_cli.config import load_config
|
||||
from wildpc_cli.config import load_config
|
||||
|
||||
with patch("castle_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(castle_root)
|
||||
with patch("wildpc_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(wildpc_root)
|
||||
|
||||
from castle_cli.commands.info import run_info
|
||||
from wildpc_cli.commands.info import run_info
|
||||
|
||||
result = run_info(Namespace(name="nope", json=False))
|
||||
|
||||
@@ -59,14 +59,14 @@ class TestInfoCommand:
|
||||
output = capsys.readouterr().out
|
||||
assert "nope" in output
|
||||
|
||||
def test_info_json_service(self, castle_root: Path, capsys) -> None:
|
||||
def test_info_json_service(self, wildpc_root: Path, capsys) -> None:
|
||||
"""--json produces valid JSON with service fields."""
|
||||
from castle_cli.config import load_config
|
||||
from wildpc_cli.config import load_config
|
||||
|
||||
with patch("castle_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(castle_root)
|
||||
with patch("wildpc_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(wildpc_root)
|
||||
|
||||
from castle_cli.commands.info import run_info
|
||||
from wildpc_cli.commands.info import run_info
|
||||
|
||||
result = run_info(Namespace(name="test-svc", json=True))
|
||||
|
||||
@@ -76,14 +76,14 @@ class TestInfoCommand:
|
||||
assert data["kind"] == "service"
|
||||
assert data["service"]["expose"]["http"]["internal"]["port"] == 19000
|
||||
|
||||
def test_info_shows_env(self, castle_root: Path, capsys) -> None:
|
||||
def test_info_shows_env(self, wildpc_root: Path, capsys) -> None:
|
||||
"""Info displays environment variables."""
|
||||
from castle_cli.config import load_config
|
||||
from wildpc_cli.config import load_config
|
||||
|
||||
with patch("castle_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(castle_root)
|
||||
with patch("wildpc_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(wildpc_root)
|
||||
|
||||
from castle_cli.commands.info import run_info
|
||||
from wildpc_cli.commands.info import run_info
|
||||
|
||||
result = run_info(Namespace(name="test-svc", json=False))
|
||||
|
||||
@@ -91,14 +91,14 @@ class TestInfoCommand:
|
||||
output = capsys.readouterr().out
|
||||
assert "TEST_SVC_DATA_DIR" in output
|
||||
|
||||
def test_info_shows_kind(self, castle_root: Path, capsys) -> None:
|
||||
def test_info_shows_kind(self, wildpc_root: Path, capsys) -> None:
|
||||
"""Info displays the derived kind."""
|
||||
from castle_cli.config import load_config
|
||||
from wildpc_cli.config import load_config
|
||||
|
||||
with patch("castle_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(castle_root)
|
||||
with patch("wildpc_cli.commands.info.load_config") as mock_load:
|
||||
mock_load.return_value = load_config(wildpc_root)
|
||||
|
||||
from castle_cli.commands.info import run_info
|
||||
from wildpc_cli.commands.info import run_info
|
||||
|
||||
result = run_info(Namespace(name="test-svc", json=False))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user