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