Fix acme.sh ci test

This commit is contained in:
Jamie Curnow 2023-07-25 12:12:27 +10:00
parent 2ffb54a720
commit 26f708d980
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

View File

@ -204,6 +204,12 @@ func TestGetAcmeShFilePath(t *testing.T) {
func TestGetCommonEnvVars(t *testing.T) {
t.Run("basic test", func(t *testing.T) {
t.Setenv("ACMESH_CONFIG_HOME", "/data/.acme.sh/config")
t.Setenv("ACMESH_HOME", "/data/.acme.sh")
t.Setenv("CERT_HOME", "/data/.acme.sh/certs")
t.Setenv("LE_CONFIG_HOME", "/data/.acme.sh/config")
t.Setenv("LE_WORKING_DIR", "/data/.acme.sh")
expected := []string{
"ACMESH_CONFIG_HOME=/data/.acme.sh/config",
"ACMESH_HOME=/data/.acme.sh",