Skip to content

Commit 26f708d

Browse files
committed
Fix acme.sh ci test
1 parent 2ffb54a commit 26f708d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

backend/internal/acme/acmesh_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ func TestGetAcmeShFilePath(t *testing.T) {
204204

205205
func TestGetCommonEnvVars(t *testing.T) {
206206
t.Run("basic test", func(t *testing.T) {
207+
t.Setenv("ACMESH_CONFIG_HOME", "/data/.acme.sh/config")
208+
t.Setenv("ACMESH_HOME", "/data/.acme.sh")
209+
t.Setenv("CERT_HOME", "/data/.acme.sh/certs")
210+
t.Setenv("LE_CONFIG_HOME", "/data/.acme.sh/config")
211+
t.Setenv("LE_WORKING_DIR", "/data/.acme.sh")
212+
207213
expected := []string{
208214
"ACMESH_CONFIG_HOME=/data/.acme.sh/config",
209215
"ACMESH_HOME=/data/.acme.sh",

0 commit comments

Comments
 (0)