mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 08:02:19 +00:00
Test bad username in basic auth backend
This commit is contained in:
parent
431bc2e7de
commit
0fd1611836
@ -15,7 +15,13 @@ func TestBasicLogin(t *testing.T) {
|
||||
t.Error("Error while logging with the basic authentication:", err)
|
||||
}
|
||||
|
||||
// Test bad credentials
|
||||
// Test bad username
|
||||
ok, err = backend.Login("baduser", "demo")
|
||||
if ok {
|
||||
t.Error("Authentification failed to fail:", err)
|
||||
}
|
||||
|
||||
// Test bad password
|
||||
ok, err = backend.Login("demo", "badpass")
|
||||
if ok {
|
||||
t.Error("Authentification failed to fail:", err)
|
||||
|
Loading…
Reference in New Issue
Block a user