Skip to content

Commit 4dc3cf0

Browse files
committed
fix tests
1 parent c4c63ab commit 4dc3cf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

microservices/gatewayApi/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def decorated_function(*args, **kwargs):
5959

6060
def mock_keycloak(mocker):
6161
class mock_kc_admin:
62-
def get_group_by_path(path, search_in_subgroups):
62+
def get_group_by_path(path):
6363
if path == "/ns/mytest":
6464
return {"id": "g001"}
6565
elif path == "/ns/mytest2":

microservices/gatewayApi/v2/services/namespaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class NamespaceService:
88
std_attrs = []
99
priv_attrs = ['perm-domains', 'perm-protected-ns', 'perm-data-plane', 'perm-upstreams']
1010

11-
def __init__(self, in_admin_api):
11+
def __init__(self, in_admin_api = None):
1212
self.keycloak_admin = in_admin_api
1313
if in_admin_api is None:
1414
self.keycloak_admin = admin_api()

0 commit comments

Comments
 (0)