@@ -37,9 +37,9 @@ func TestScimUserAPI_Create(t *testing.T) {
37
37
args : args {
38
38
Schemas : []model.URN {model .UserSchema },
39
39
40
- Entitlements : []model.EntitlementsListItem {{"test-entitlement" }},
40
+ Entitlements : []model.EntitlementsListItem {{Value : "test-entitlement" }},
41
41
DisplayName : "test user" ,
42
- Roles : []model.RoleListItem {{"test-role" }},
42
+ Roles : []model.RoleListItem {{Value : "test-role" }},
43
43
},
44
44
wantErr : false ,
45
45
},
@@ -51,9 +51,9 @@ func TestScimUserAPI_Create(t *testing.T) {
51
51
args : args {
52
52
Schemas : []model.URN {model .UserSchema },
53
53
54
- Entitlements : []model.EntitlementsListItem {{"test-entitlement" }},
54
+ Entitlements : []model.EntitlementsListItem {{Value : "test-entitlement" }},
55
55
DisplayName : "test user" ,
56
- Roles : []model.RoleListItem {{"test-role" }},
56
+ Roles : []model.RoleListItem {{Value : "test-role" }},
57
57
},
58
58
wantErr : true ,
59
59
},
@@ -99,9 +99,9 @@ func TestScimUserAPI_Update(t *testing.T) {
99
99
& args {
100
100
Schemas : []model.URN {model .UserSchema },
101
101
102
- Entitlements : []model.EntitlementsListItem {{"test-entitlement" }},
102
+ Entitlements : []model.EntitlementsListItem {{Value : "test-entitlement" }},
103
103
DisplayName : "test user" ,
104
- Roles : []model.RoleListItem {{"test-role" }},
104
+ Roles : []model.RoleListItem {{Value : "test-role" }},
105
105
},
106
106
},
107
107
wantErr : false ,
@@ -118,9 +118,9 @@ func TestScimUserAPI_Update(t *testing.T) {
118
118
& args {
119
119
Schemas : []model.URN {model .UserSchema },
120
120
121
- Entitlements : []model.EntitlementsListItem {{"test-entitlement" }},
121
+ Entitlements : []model.EntitlementsListItem {{Value : "test-entitlement" }},
122
122
DisplayName : "test user" ,
123
- Roles : []model.RoleListItem {{"test-role" }},
123
+ Roles : []model.RoleListItem {{Value : "test-role" }},
124
124
},
125
125
},
126
126
wantErr : true ,
@@ -184,7 +184,7 @@ func TestScimUserAPI_Delete(t *testing.T) {
184
184
func TestScimUserAPI_SetUserAsAdmin (t * testing.T ) {
185
185
type args struct {
186
186
UserID string `json:"user_id,omitempty"`
187
- AdminGroupID string `json:"user_id ,omitempty"`
187
+ AdminGroupID string `json:"admin_group_id ,omitempty"`
188
188
}
189
189
tests := []struct {
190
190
name string
@@ -242,7 +242,7 @@ func TestScimUserAPI_SetUserAsAdmin(t *testing.T) {
242
242
func TestScimUserAPI_VerifyUserAsAdmin (t * testing.T ) {
243
243
type args struct {
244
244
UserID string `json:"user_id,omitempty"`
245
- AdminGroupID string `json:"user_id ,omitempty"`
245
+ AdminGroupID string `json:"admin_group_id ,omitempty"`
246
246
}
247
247
tests := []struct {
248
248
name string
@@ -354,7 +354,7 @@ func TestScimUserAPI_VerifyUserAsAdmin(t *testing.T) {
354
354
func TestScimUserAPI_RemoveUserAsAdmin (t * testing.T ) {
355
355
type args struct {
356
356
UserID string `json:"user_id,omitempty"`
357
- AdminGroupID string `json:"user_id ,omitempty"`
357
+ AdminGroupID string `json:"admin_group_id ,omitempty"`
358
358
}
359
359
tests := []struct {
360
360
name string
0 commit comments