photoprism/pkg/authn/providers_test.go
Michael Mayer d8ab9616a5 Auth: Refactor user management API and CLI commands #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 15:12:10 +01:00

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())
}