2020-09-28 19:18:49 +00:00
|
|
|
package bypass
|
2020-10-01 18:11:43 +00:00
|
|
|
|
|
|
|
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()
|
|
|
|
}
|