@@ -357,7 +357,7 @@ func TestImportingUsersGroupsSecretScopes(t *testing.T) {
357357 },
358358 {
359359 Method : "GET" ,
360- Resource : "/api/2.0/preview/scim/v2/Groups/a" ,
360+ Resource : "/api/2.0/preview/scim/v2/Groups/a?attributes=members " ,
361361 Response : scim.Group {ID : "a" , DisplayName : "admins" ,
362362 Members : []scim.ComplexValue {
363363 {
Display :
"[email protected] " ,
Value :
"123" ,
Ref :
"Users/123" },
@@ -369,12 +369,24 @@ func TestImportingUsersGroupsSecretScopes(t *testing.T) {
369369 },
370370 {
371371 Method : "GET" ,
372- Resource : "/api/2.0/preview/scim/v2/Groups/b" ,
372+ Resource : "/api/2.0/preview/scim/v2/Groups/a?attributes=displayName,externalId,entitlements" ,
373+ Response : scim.Group {ID : "a" , DisplayName : "admins" ,
374+ Members : []scim.ComplexValue {
375+ {
Display :
"[email protected] " ,
Value :
"123" ,
Ref :
"Users/123" },
376+ {Display : "Test group" , Value : "f" , Ref : "Groups/f" },
377+ {Display : "spn" , Value : "spn" , Ref : "ServicePrincipals/spn" },
378+ },
379+ },
380+ ReuseRequest : true ,
381+ },
382+ {
383+ Method : "GET" ,
384+ Resource : "/api/2.0/preview/scim/v2/Groups/b?attributes=displayName,externalId,entitlements" ,
373385 Response : scim.Group {ID : "b" , DisplayName : "users" },
374386 },
375387 {
376388 Method : "GET" ,
377- Resource : "/api/2.0/preview/scim/v2/Groups/c" ,
389+ Resource : "/api/2.0/preview/scim/v2/Groups/c?attributes=displayName,externalId,entitlements " ,
378390 Response : scim.Group {ID : "c" , DisplayName : "test" ,
379391 Groups : []scim.ComplexValue {
380392 {Display : "admins" , Value : "a" , Ref : "Groups/a" , Type : "direct" },
@@ -383,13 +395,13 @@ func TestImportingUsersGroupsSecretScopes(t *testing.T) {
383395 },
384396 {
385397 Method : "GET" ,
386- Resource : "/api/2.0/preview/scim/v2/Groups/f" ,
398+ Resource : "/api/2.0/preview/scim/v2/Groups/f?attributes=displayName,externalId,entitlements " ,
387399 Response : scim.Group {ID : "f" , DisplayName : "nested" },
388400 },
389401 // TODO: add groups to the output
390402 {
391403 Method : "GET" ,
392- Resource : "/api/2.0/preview/scim/v2/Users/123" ,
404+ Resource : "/api/2.0/preview/scim/v2/Users/123?attributes=userName,displayName,active,externalID,entitlements " ,
393405 Response : scim.
User {
ID :
"123" ,
DisplayName :
"[email protected] " ,
UserName :
"[email protected] " },
394406 },
395407 {
@@ -1614,7 +1626,7 @@ func TestImportingDLTPipelines(t *testing.T) {
16141626 },
16151627 {
16161628 Method : "GET" ,
1617- Resource : "/api/2.0/preview/scim/v2/Users/123" ,
1629+ Resource : "/api/2.0/preview/scim/v2/Users/123?attributes=userName,displayName,active,externalID,entitlements " ,
16181630 Response : scim.
User {
ID :
"123" ,
DisplayName :
"[email protected] " ,
UserName :
"[email protected] " },
16191631 },
16201632 {
0 commit comments