nginx-proxy-manager-zh/backend/internal/config/vars_test.go

19 lines
393 B
Go
Raw Normal View History

2023-07-30 23:49:11 -04:00
package config
import (
"testing"
"github.com/stretchr/testify/assert"
2023-11-07 18:57:15 -05:00
"go.uber.org/goleak"
2023-07-30 23:49:11 -04:00
)
func TestAcmeshGetWellknown(t *testing.T) {
2023-11-07 18:57:15 -05:00
// goleak is used to detect goroutine leaks
defer goleak.VerifyNone(t, goleak.IgnoreAnyFunction("database/sql.(*DB).connectionOpener"))
2023-07-30 23:49:11 -04:00
a := acmesh{
Home: "/data/.acme.sh",
}
assert.Equal(t, "/data/.acme.sh/.well-known", a.GetWellknown())
}