kong/t/01-pdk/08-response/10-set_body.t (7 lines of code) (raw):

use strict; use warnings FATAL => 'all'; use Test::Nginx::Socket::Lua; do "./t/Util.pm"; plan tests => repeat_each() * (blocks() * 3); run_tests(); __DATA__ === TEST 1: response.set_body() sets parsed body --- http_config eval: $t::Util::HttpConfig --- config location = /t { content_by_lua_block { -- TODO: implement } } --- request GET /t --- response_body --- no_error_log [error]