Skip to content

Commit

Permalink
tests(helpers): separate db functions (#13618)
Browse files Browse the repository at this point in the history
KAG-5322

- The original `dcdp` and `PLUGINS_LIST` now turn to functions, since they are initialized in `get_db_utils()`.
- Add a param `extra_fields` for the function `validate_plugin_config_schema()` to be compatible with EE
-  move `conf` out of `shell` module
  • Loading branch information
chronolaw authored Sep 11, 2024
1 parent 057a0b8 commit 227396f
Show file tree
Hide file tree
Showing 5 changed files with 485 additions and 398 deletions.
2 changes: 1 addition & 1 deletion spec/details/asserts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local colors = require("ansicolors")
local luassert = require("luassert.assert")


local conf = require("spec.details.shell").conf
local conf = require("spec.details.conf")
local misc = require("spec.details.misc")


Expand Down
8 changes: 8 additions & 0 deletions spec/details/conf.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local CONSTANTS = require("spec.details.constants")
local conf_loader = require("kong.conf_loader")


local conf = assert(conf_loader(CONSTANTS.TEST_CONF_PATH))


return conf
Loading

1 comment on commit 227396f

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:227396f2aa08dde4b68ea2e7daa447d6dfaa4fc2
Artifacts available https://github.com/Kong/kong/actions/runs/10807348824

Please sign in to comment.