@@ -158,12 +158,16 @@ func TestClientGetProfileAndToken(t *testing.T) {
158158 Role : common.RoleResponse {
159159 Slug : "admin" ,
160160 },
161- Groups : []string {"Admins" , "Developers" },
161+ Groups : []string {"Admins" , "Developers" },
162+ CustomAttributes : map [string ]interface {}{
163+ "license" : "professional" ,
164+ },
162165 RawAttributes : map [string ]interface {}{
163166 "idp_id" : "123" ,
164167 "email" : "foo@test.com" ,
165168 "first_name" : "foo" ,
166169 "last_name" : "bar" ,
170+ "license" : "professional" ,
167171 },
168172 },
169173 },
@@ -223,12 +227,16 @@ func profileAndTokenTestHandler(w http.ResponseWriter, r *http.Request) {
223227 Role : common.RoleResponse {
224228 Slug : "admin" ,
225229 },
226- Groups : []string {"Admins" , "Developers" },
230+ Groups : []string {"Admins" , "Developers" },
231+ CustomAttributes : map [string ]interface {}{
232+ "license" : "professional" ,
233+ },
227234 RawAttributes : map [string ]interface {}{
228235 "idp_id" : "123" ,
229236 "email" : "foo@test.com" ,
230237 "first_name" : "foo" ,
231238 "last_name" : "bar" ,
239+ "license" : "professional" ,
232240 },
233241 },
234242 })
@@ -270,12 +278,16 @@ func TestClientGetProfile(t *testing.T) {
270278 Role : common.RoleResponse {
271279 Slug : "admin" ,
272280 },
273- Groups : []string {"Admins" , "Developers" },
281+ Groups : []string {"Admins" , "Developers" },
282+ CustomAttributes : map [string ]interface {}{
283+ "license" : "professional" ,
284+ },
274285 RawAttributes : map [string ]interface {}{
275286 "idp_id" : "123" ,
276287 "email" : "foo@test.com" ,
277288 "first_name" : "foo" ,
278289 "last_name" : "bar" ,
290+ "license" : "professional" ,
279291 },
280292 },
281293 },
@@ -325,12 +337,16 @@ func profileTestHandler(w http.ResponseWriter, r *http.Request) {
325337 Role : common.RoleResponse {
326338 Slug : "admin" ,
327339 },
328- Groups : []string {"Admins" , "Developers" },
340+ Groups : []string {"Admins" , "Developers" },
341+ CustomAttributes : map [string ]interface {}{
342+ "license" : "professional" ,
343+ },
329344 RawAttributes : map [string ]interface {}{
330345 "idp_id" : "123" ,
331346 "email" : "foo@test.com" ,
332347 "first_name" : "foo" ,
333348 "last_name" : "bar" ,
349+ "license" : "professional" ,
334350 },
335351 },
336352 )
0 commit comments