mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
Updated test roles and scopes to correspond to new group structure
This commit is contained in:
@@ -568,9 +568,9 @@ async def test_load_roles_services(tmpdir, request, preserve_scopes):
|
|||||||
async def test_load_roles_groups(tmpdir, request):
|
async def test_load_roles_groups(tmpdir, request):
|
||||||
"""Test loading predefined roles for groups in app.py"""
|
"""Test loading predefined roles for groups in app.py"""
|
||||||
groups_to_load = {
|
groups_to_load = {
|
||||||
'group1': ['gandalf'],
|
'group1':{'users': ['gandalf'], 'properties': {}},
|
||||||
'group2': ['bilbo', 'gargamel'],
|
'group2':{'users':['bilbo', 'gargamel'], 'properties': {}},
|
||||||
'group3': ['cyclops'],
|
'group3':{'users': ['cyclops'], 'properties': {}},
|
||||||
}
|
}
|
||||||
roles_to_load = [
|
roles_to_load = [
|
||||||
{
|
{
|
||||||
|
@@ -747,6 +747,7 @@ async def test_service_model_filtering(
|
|||||||
'name',
|
'name',
|
||||||
'kind',
|
'kind',
|
||||||
'users',
|
'users',
|
||||||
|
'properties',
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
|
Reference in New Issue
Block a user