mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-04 08:48:45 +00:00
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:
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"]
|
||||
+2
-1
@@ -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:
|
||||
+2
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user