mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
19 lines
393 B
Go
19 lines
393 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"go.uber.org/goleak"
|
|
)
|
|
|
|
func TestAcmeshGetWellknown(t *testing.T) {
|
|
// goleak is used to detect goroutine leaks
|
|
defer goleak.VerifyNone(t, goleak.IgnoreAnyFunction("database/sql.(*DB).connectionOpener"))
|
|
|
|
a := acmesh{
|
|
Home: "/data/.acme.sh",
|
|
}
|
|
assert.Equal(t, "/data/.acme.sh/.well-known", a.GetWellknown())
|
|
}
|