refactor(server): split oversized backend services

This commit is contained in:
caoxiaozhu
2026-05-22 10:42:31 +08:00
parent 2e57702638
commit 222ba0bfdc
84 changed files with 26263 additions and 21898 deletions

View File

@@ -80,7 +80,11 @@ def test_activate_pending_rule_endpoint_is_blocked() -> None:
response = client.post(
f"/api/v1/agent-assets/{pending_rule.id}/activate",
headers={"x-actor": "pytest"},
headers={
"x-actor": "pytest",
"x-auth-username": "pytest",
"x-auth-role-codes": "manager",
},
)
assert response.status_code == 400