blob: e390bf60e7afb94fcfc637499eaf275d9402d463 [file] [log] [blame] [raw]
# vim:set ft= ts=4 sw=4 et fdm=marker:
use lib 'lib';
use Test::Nginx::Socket::Lua;
repeat_each(2);
plan tests => blocks() * repeat_each() * 2;
run_tests();
__DATA__
=== TEST 1: sanity (integer)
--- config
location /lua {
echo 2;
}
--- request
GET /lua
--- response_body
2
=== TEST 2: sanity (string)
--- config
location /lua {
echo "helloworld";
}
--- request
GET /lua
--- response_body
helloworld