nginx-proxy-manager/backend/internal/config/vars_test.go
2023-11-08 09:57:15 +10:00

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