feat: TenantSource 抽象——File源(测试/档案)与DB源(生产),registry 数据源可切换+reload upsert

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-10-13 08:50:16 +08:00
parent 386b5eb90a
commit c7fd533320
9 changed files with 720 additions and 85 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
# 的 test_tenant_middleware_is_outermost_user_middleware 覆盖
# (user_middleware[0] 断言)——全量回归确认仍绿,此处不重复建。
NOPE_HOST = "nope.example.com"
from tests.conftest import NOPE_HOST
def test_platform_api_bypasses_tenant_resolution(app_client):