From 26f708d98056bbe8e32beafd9ba8374e3fa75bee Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Tue, 25 Jul 2023 12:12:27 +1000 Subject: [PATCH] Fix acme.sh ci test --- backend/internal/acme/acmesh_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/internal/acme/acmesh_test.go b/backend/internal/acme/acmesh_test.go index a2381a9d..36e6509c 100644 --- a/backend/internal/acme/acmesh_test.go +++ b/backend/internal/acme/acmesh_test.go @@ -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",