fix(appctl): set app_type to core when resolving core stack query
Core Architecture & Invariant CI / validate (push) Successful in 38s
Core Architecture & Invariant CI / validate (push) Successful in 38s
This commit is contained in:
1 parent
6052019f2c
commit
a9ada28c65
2 files changed
+17
No files matched your search
@@ -397,6 +397,7 @@ def resolve_app(
|
||||
container="",
|
||||
description="Homelab Core Platform Stack",
|
||||
dir_path=CORE_DIR,
|
||||
app_type="core",
|
||||
)
|
||||
|
||||
return None
|
||||
|
||||
@@ -362,3 +362,19 @@ def test_homepage_sync_core_services_domain_isolation(
|
||||
assert "https://traefik.roadtotech.me" in content
|
||||
assert "https://auth.roadtotech.me" in content
|
||||
assert "mermaid.roadtotech.me" not in content
|
||||
|
||||
|
||||
def test_resolve_core_stack_type():
|
||||
"""
|
||||
Ensure resolving 'core' returns app_type='core' (entire stack),
|
||||
while individual core services return app_type='core_service'.
|
||||
"""
|
||||
core = engine.resolve_app("core")
|
||||
assert core is not None
|
||||
assert core.to_dict()["type"] == "core"
|
||||
assert core.container == ""
|
||||
|
||||
traefik = engine.resolve_app("traefik")
|
||||
assert traefik is not None
|
||||
assert traefik.to_dict()["type"] == "core_service"
|
||||
assert traefik.container == "traefik"
|
||||
Reference in new issue
Block a user