60162b3fc5
Signed-off-by: Michael Mayer <michael@photoprism.app>
15 lines
395 B
Go
15 lines
395 B
Go
package authn
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestProviderString(t *testing.T) {
|
|
assert.Equal(t, "default", ProviderString(""))
|
|
assert.Equal(t, "default", ProviderString(ProviderDefault))
|
|
assert.Equal(t, "none", ProviderString(ProviderNone))
|
|
assert.Equal(t, "local", ProviderString(ProviderLocal))
|
|
assert.Equal(t, "ldap", ProviderString(ProviderLDAP))
|
|
}
|