diff --git a/cache/surrogate/providers/common_test.go b/cache/surrogate/providers/common_test.go index 7ed5496e5..a7936d841 100644 --- a/cache/surrogate/providers/common_test.go +++ b/cache/surrogate/providers/common_test.go @@ -53,7 +53,7 @@ func TestBaseStorage_Purge(t *testing.T) { headerMock.Set(surrogateKey, baseHeaderValue) tags, surrogates := bs.Purge(headerMock) - if len(tags) != 1 { + if len(tags) != 0 { errors.GenerateError(t, "The tags length should be empty.") } if len(surrogates) != 5 { @@ -63,7 +63,7 @@ func TestBaseStorage_Purge(t *testing.T) { headerMock.Set(surrogateKey, emptyHeaderValue) tags, surrogates = bs.Purge(headerMock) - if len(tags) != 1 { + if len(tags) != 0 { errors.GenerateError(t, "The tags length should be empty.") } if len(surrogates) != 1 { @@ -77,8 +77,9 @@ func TestBaseStorage_Purge(t *testing.T) { bs.Storage["testInvalid"] = "invalid" headerMock.Set(surrogateKey, baseHeaderValue) tags, surrogates = bs.Purge(headerMock) - if len(tags) != 7 { - errors.GenerateError(t, "The tags length should be equal to 7.") + + if len(tags) != 6 { + errors.GenerateError(t, "The tags length should be equal to 6.") } if len(surrogates) != 5 { errors.GenerateError(t, "The surrogates length should be equal to 5.") diff --git a/docs/e2e/Souin E2E.postman_collection.json b/docs/e2e/Souin E2E.postman_collection.json index 3c3fd0408..c26662e92 100644 --- a/docs/e2e/Souin E2E.postman_collection.json +++ b/docs/e2e/Souin E2E.postman_collection.json @@ -112,7 +112,7 @@ "listen": "test", "script": { "exec": [ - "utils.baseEndpoint(pm, `${utils.getVar(pm, 'app_url')}/test2`, '', false, true)" + "utils.baseEndpoint(pm, `${utils.getVar(pm, 'app_url')}/excluded`, '', false, true)" ], "type": "text/javascript" } diff --git a/plugins/beego/examples/Dockerfile.test b/plugins/beego/examples/Dockerfile.test index d17f1152a..7abda86c5 100644 --- a/plugins/beego/examples/Dockerfile.test +++ b/plugins/beego/examples/Dockerfile.test @@ -11,4 +11,6 @@ WORKDIR /app/src/github.com/darkweak/souin/plugins/beego RUN go mod tidy RUN go mod download -CMD ["go", "run", "examples/main.go"] +WORKDIR /app/src/github.com/darkweak/souin/plugins/beego/examples + +CMD ["go", "run", "main.go"]