Following the example from https://docs.konghq.com/2.2.x/plugin-development/tests/
I am successfully running tests using Cassandra DB;
Is it possible to run these test using Postgres DB ?
When I set KONG_DATABASE=postgres , that value is nil inside the helper.lua and my code enumerate the default set (postgres, cassandra) failing on non existing strategy=cassandra. If I change the name of env variable to anything but KONG_DATABASE , everything works perfectly; for example KKONG_DATABASE=postgres? But that requires me to change the helpers.lua code?
I have notice that in case of tests setup with cassandra; following code also enumerates strategies <postgres, cassandra> but somehow postgres is ignored and tests are succeeding?
local helpers = require “spec.helpers”
for _, strategy in helpers.each_strategy() do
describe(“my plugin”, function()