internal/directory: use both id and name for group (#1086)

Fixes #1085
This commit is contained in:
Cuong Manh Le 2020-07-17 00:15:11 +07:00 committed by GitHub
parent 96424dac0f
commit ee1f9093ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 59 additions and 49 deletions

View file

@ -152,15 +152,15 @@ func TestProvider_UserGroups(t *testing.T) {
assert.Equal(t, []*directory.User{
{
Id: "onelogin/111",
Groups: []string{"admin"},
Groups: []string{"0", "admin"},
},
{
Id: "onelogin/222",
Groups: []string{"test"},
Groups: []string{"1", "test"},
},
{
Id: "onelogin/333",
Groups: []string{"user"},
Groups: []string{"2", "user"},
},
}, users)
}