LDAP: Fix debug view to display the actual computed mapping in ldap.go (#48103)

* LDAP debug fix with Org role inheritance

Co-authored-by: Jguer <joao.guerreiro@grafana.com>

* ldap debug coherent with ldap.go

Co-authored-by: Jguer <joao.guerreiro@grafana.com>

Co-authored-by: Jguer <joao.guerreiro@grafana.com>
This commit is contained in:
Gabriel MABILLE
2022-04-22 15:45:54 +02:00
committed by GitHub
parent 1566fa2ede
commit 94fd03f44f
4 changed files with 23 additions and 37 deletions

View File

@ -21,7 +21,7 @@ func TestIsMemberOf(t *testing.T) {
for _, tc := range tests {
t.Run(fmt.Sprintf("isMemberOf(%v, \"%s\") = %v", tc.memberOf, tc.group, tc.expected), func(t *testing.T) {
assert.Equal(t, tc.expected, isMemberOf(tc.memberOf, tc.group))
assert.Equal(t, tc.expected, IsMemberOf(tc.memberOf, tc.group))
})
}
}