photoprism/pkg/authn/providers_test.go

16 lines
378 B
Go
Raw Normal View History

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