-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Portal API organizations/{org}/roles
endpoint does not return organization role permissions after many organizations have been created.
Test Case
ENV
Has only been replicated in local dev env so far.
-
DEV
-
TEST
-
PROD
TESTCASE
- Create 50 organizations (e.g. by running buildOrgGatewayDatasetAndProduct repeatedly).
- Authenticate as
janis@idir
- Call http://oauth2proxy.localtest.me:4180/ds/api/v3/organizations/ministry-of-health/roles
EXPECTED
- returns:
{
"name": "ministry-of-health",
"parent": "/ca.bc.gov",
"roles": [
{
"name": "organization-admin",
"permissions": [
{
"resource": "org/ministry-of-health",
"scopes": [
"Dataset.Manage",
"GroupAccess.Manage",
"Namespace.Assign"
]
}
]
}
]
}
ACTUAL
- returns:
{
"name": "ministry-of-health",
"parent": "/ca.bc.gov",
"roles": [
{
"name": "organization-admin",
"permissions": []
}
]
}
Possible cause
- maybe there is some paging that hasn't been accounted for when calling the Keycloak API?