Skip to content

Commit

Permalink
Revert "fix(test): remove external dependency"
Browse files Browse the repository at this point in the history
This reverts commit 00a9f9b.
  • Loading branch information
chronolaw authored and dndx committed Nov 7, 2023
1 parent d88dc5a commit 6528af4
Showing 1 changed file with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,10 @@ describe("Admin API - Reconfiguration Completion -", function()

local function run_tests()

local res = admin_client:post("/plugins", {
body = {
name = "request-termination",
config = {
status_code = 200,
body = "kong terminated the request",
}
},
headers = { ["Content-Type"] = "application/json" },
})
assert.res_status(201, res)

res = admin_client:post("/services", {
local res = admin_client:post("/services", {
body = {
name = "test-service",
url = "http://127.0.0.1",
url = "http://example.com",
},
headers = { ["Content-Type"] = "application/json" },
})
Expand Down Expand Up @@ -79,8 +67,7 @@ describe("Admin API - Reconfiguration Completion -", function()
["X-If-Kong-Transaction-Id"] = kong_transaction_id
}
})
body = assert.res_status(200, res)
assert.equals("kong terminated the request", body)
assert.res_status(200, res)
end)
.has_no_error()
end
Expand Down

0 comments on commit 6528af4

Please sign in to comment.