mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 17:42:35 +08:00
LDAP: nitpicks (#18309)
* LDAP: nitpicks * Add more tests * Correct and clarify comment for Login() method * Rename methods (hail consistency!) * Uppercases first letter of the logs everywhere * Moves method definitions around to more appropriate places Fixes #18295
This commit is contained in:
@ -146,7 +146,7 @@ func TestPublicAPI(t *testing.T) {
|
||||
})
|
||||
})
|
||||
|
||||
Convey("AuthAdmin()", t, func() {
|
||||
Convey("AdminBind()", t, func() {
|
||||
Convey("Should use admin DN and password", func() {
|
||||
connection := &MockConnection{}
|
||||
var actualUsername, actualPassword string
|
||||
@ -166,7 +166,7 @@ func TestPublicAPI(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
err := server.AuthAdmin()
|
||||
err := server.AdminBind()
|
||||
|
||||
So(err, ShouldBeNil)
|
||||
So(actualUsername, ShouldEqual, dn)
|
||||
@ -193,7 +193,7 @@ func TestPublicAPI(t *testing.T) {
|
||||
log: log.New("test-logger"),
|
||||
}
|
||||
|
||||
err := server.AuthAdmin()
|
||||
err := server.AdminBind()
|
||||
So(err, ShouldEqual, expected)
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user