Add a test case

Signed-off-by: Vlad Safronov <vladislav.safronov@oracle.com>
This commit is contained in:
Vlad Safronov
2021-11-03 22:41:29 +03:00
committed by Rui Yang
parent 45932bd38a
commit 7c80e44caf
2 changed files with 39 additions and 1 deletions

View File

@@ -248,7 +248,9 @@ func (c *oauthConnector) addGroupsFromMap(groups map[string]struct{}, result map
groups[groupString] = struct{}{}
}
if groupMap, ok := group.(map[string]interface{}); ok {
groups[groupMap["name"]] = true
if groupName, ok := groupMap["name"].(string); ok {
groups[groupName] = true
}
}
}