Using kong 0.14.1
I’ve created plugin which has own database table.
I want to develop api tests for it.
Between tests I want to truncate plugin table, i’m doing it this way:
@ovazhnev try running your busted tests with KONG_TEST_CUSTOM_PLUGINS=my-plugin-id env var, or potentiallyKONG_TEST_PLUGINS=my-plugin-id environment var. I believe this is necessary for tests to run migrations on your custom daos.lua defined tables and for the dao to know about them in the context of the test environment / bootstrapping helper.
Thanks. It helped. But I also noticed such warning once:
019/03/18 12:22:03 [warn] the ‘custom_plugins’ configuration property is deprecated, use ‘plugins’ instead
Error: ./kong/cmd/start.lua:60: nginx: [warn] [lua] log.lua:63: log(): the ‘custom_plugins’ configuration property is deprecated, use ‘plugins’ instead
So I tried KONG_TEST_PLUGINS=my-plugin-id and it also works.
I suspect “KONG_TEST_PLUGINS” is preferred
Great. Yea I accidentally wrong KONG_TEST_CUSTOM_PLUGINS twice, but I meant for you to try the one without CUSTOM. Thanks for reading between the lines!