mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-30 15:51:14 +02:00
Test authentication
This commit is contained in:
@ -1 +1,14 @@
|
||||
package bypass
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestBypassLogin(t *testing.T) {
|
||||
backend, _ := New()
|
||||
ok, err := backend.Login("demo", "demo")
|
||||
if !ok {
|
||||
t.Error("Error while logging with the bypass authentication:", err)
|
||||
}
|
||||
backend.Close()
|
||||
}
|
||||
|
Reference in New Issue
Block a user