2023-03-08 23:30:39 +01:00
|
|
|
package authn
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
2023-03-09 15:12:10 +01:00
|
|
|
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())
|
2023-03-08 23:30:39 +01:00
|
|
|
}
|