We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26f708d commit d555af6Copy full SHA for d555af6
backend/internal/acme/acmesh_test.go
@@ -197,8 +197,12 @@ func TestBuildCertRequestArgs(t *testing.T) {
197
func TestGetAcmeShFilePath(t *testing.T) {
198
t.Run("basic test", func(t *testing.T) {
199
path, err := getAcmeShFilePath()
200
- assert.Equal(t, "/bin/acme.sh", path)
201
- assert.Equal(t, nil, err)
+ if err != nil {
+ assert.Equal(t, "Cannot find acme.sh execuatable script in PATH: exec: \"acme.sh\": executable file not found in $PATH", err.Error())
202
+ assert.Equal(t, "", path)
203
+ } else {
204
+ assert.Equal(t, "/bin/acme.sh", path)
205
+ }
206
})
207
}
208
0 commit comments