diff --git a/spec/02-integration/04-admin_api/04-plugins_routes_spec.lua b/spec/02-integration/04-admin_api/04-plugins_routes_spec.lua index 6648787ccc09..fa3e3663abf6 100644 --- a/spec/02-integration/04-admin_api/04-plugins_routes_spec.lua +++ b/spec/02-integration/04-admin_api/04-plugins_routes_spec.lua @@ -230,14 +230,16 @@ for _, strategy in helpers.each_strategy() do describe("/plugins/schema/{plugin}", function() describe("GET", function() - it("returns the schema of a plugin config", function() - local res = assert(client:send { - method = "GET", - path = "/plugins/schema/request-transformer", - }) - local body = assert.res_status(200, res) - local json = cjson.decode(body) - assert.is_table(json.fields) + it("returns the schema of all bundled plugins", function() + for plugin, _ in pairs(helpers.test_conf.loaded_plugins) do + local res = assert(client:send { + method = "GET", + path = "/plugins/schema/" .. plugin, + }) + local body = assert.res_status(200, res) + local json = cjson.decode(body) + assert.is_table(json.fields) + end end) it("returns 404 on invalid plugin", function() local res = assert(client:send {