-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(ci): cleanup kong before running test suite (a spec file) #12567
Conversation
d134cee
to
b39ef16
Compare
8f99845
to
9a2ed78
Compare
9a2ed78
to
2ba6996
Compare
2ba6996
to
5835178
Compare
7e92cbd
to
9c89854
Compare
9ee6959
to
20b47ac
Compare
### Summary Cleanup Kong before running the test suite (a spec file). Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
local cjson = require 'cjson' | ||
local socket_unix = require 'socket.unix' | ||
local function cleanup() | ||
local prefix = assert(require("kong.conf_loader")(os.getenv("KONG_SPEC_TEST_CONF_PATH") or "spec/kong_tests.conf")).prefix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that only one prefix directory is being deleted here. However, if there are tests like spec-ee/02-integration/03-vitals/08-hybrid_spec.lua
that create multiple prefix paths, how can we clear all of them?
PR review discussion: Have already implemented other solutions, close this one |
Summary
Cleanup Kong before running the test suite (a spec file).
KAG-3735