Commit 869d8e6f by Torkel Ödegaard

fix: ldap unit test

parent 65352dcc
...@@ -62,7 +62,7 @@ func TestLdapAuther(t *testing.T) { ...@@ -62,7 +62,7 @@ func TestLdapAuther(t *testing.T) {
sc.userQueryReturns(user1) sc.userQueryReturns(user1)
result, err := ldapAuther.GetGrafanaUserFor(&LdapUserInfo{MemberOf: []string{"CN=users"}}) result, err := ldapAuther.GetGrafanaUserFor(nil, &LdapUserInfo{MemberOf: []string{"CN=users"}})
So(err, ShouldBeNil) So(err, ShouldBeNil)
So(result, ShouldEqual, user1) So(result, ShouldEqual, user1)
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment