mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Fix acme.sh ci test
This commit is contained in:
parent
2ffb54a720
commit
26f708d980
@ -204,6 +204,12 @@ func TestGetAcmeShFilePath(t *testing.T) {
|
|||||||
|
|
||||||
func TestGetCommonEnvVars(t *testing.T) {
|
func TestGetCommonEnvVars(t *testing.T) {
|
||||||
t.Run("basic test", func(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{
|
expected := []string{
|
||||||
"ACMESH_CONFIG_HOME=/data/.acme.sh/config",
|
"ACMESH_CONFIG_HOME=/data/.acme.sh/config",
|
||||||
"ACMESH_HOME=/data/.acme.sh",
|
"ACMESH_HOME=/data/.acme.sh",
|
||||||
|
Loading…
Reference in New Issue
Block a user