Skip to content

Commit

Permalink
tests(serverless-functions) spec helpers usage (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
gszr authored Jun 20, 2018
1 parent d07e616 commit b89f8eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/01-pre-function/01-access_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe("Plugin: pre-function (access)", function()
local client, admin_client

setup(function()
helpers.run_migrations()
helpers.dao:run_migrations()

local api1 = assert(helpers.dao.apis:insert {
name = "api-1",
Expand Down Expand Up @@ -85,6 +85,7 @@ describe("Plugin: pre-function (access)", function()


assert(helpers.start_kong({
custom_plugins = "pre-function",
nginx_conf = "spec/fixtures/custom_nginx.template",
}))

Expand Down
3 changes: 2 additions & 1 deletion spec/02-post-function/01-access_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe("Plugin: post-function (access)", function()
local client, admin_client

setup(function()
helpers.run_migrations()
helpers.dao:run_migrations()

local api1 = assert(helpers.dao.apis:insert {
name = "api-1",
Expand Down Expand Up @@ -85,6 +85,7 @@ describe("Plugin: post-function (access)", function()


assert(helpers.start_kong({
custom_plugins = "post-function",
nginx_conf = "spec/fixtures/custom_nginx.template",
}))

Expand Down

0 comments on commit b89f8eb

Please sign in to comment.