19 lines
393 B
Go
Raw Normal View History

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