79b8784934
* Code: compatible with semantic import versioning * Tools & Docs: compatible with semantic import versioning * Clean go.mod & go.sum
17 lines
361 B
Go
17 lines
361 B
Go
package authn
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/cloudreve/Cloudreve/v3/pkg/cache"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestInit(t *testing.T) {
|
|
asserts := assert.New(t)
|
|
cache.Set("setting_siteURL", "http://cloudreve.org", 0)
|
|
cache.Set("setting_siteName", "Cloudreve", 0)
|
|
res, err := NewAuthnInstance()
|
|
asserts.NotNil(res)
|
|
asserts.NoError(err)
|
|
}
|