refactor(web-app-keycloak): group the RBAC REST scripts in files/python/rbac

Gate pass 15 rejected rbac_reconcile.py and rbac_realm_groups.py as a prefix group. They are now rbac/reconcile.py and rbac/realm_groups.py with mirrored tests; the shared rest_script runner copies a script from its subpath and stages and runs it under its file name next to keycloak_admin.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5.5 committed 2026-10-31 19:40:58 +01:00
1 parent 00a60672bc
commit edf75b49dc
10 files changed
+15 -8

No files matched your search

@@ -0,0 +1,5 @@
from pathlib import Path
PROJECT_ROOT: Path = Path(__file__).resolve().parents[7]
__all__ = ["PROJECT_ROOT"]
@@ -11,8 +11,9 @@ from collections import Counter
from . import PROJECT_ROOT
sys.path.insert(0, str(PROJECT_ROOT / "roles/web-app-keycloak/files/python"))
sys.path.insert(0, str(PROJECT_ROOT / "roles/web-app-keycloak/files/python/rbac"))
import rbac_realm_groups as m
import realm_groups as m
class FakeKeycloak:
@@ -8,8 +8,9 @@ from pathlib import Path
from . import PROJECT_ROOT
sys.path.insert(0, str(PROJECT_ROOT / "roles/web-app-keycloak/files/python"))
sys.path.insert(0, str(PROJECT_ROOT / "roles/web-app-keycloak/files/python/rbac"))
import rbac_reconcile as m
import reconcile as m
LDAP = "ldap-1"