blob: ae26ec8596eceed0f5b66403634f92c15c938a4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# vi:filetype=
use lib 'lib';
use Test::Nginx::Socket;
plan tests => repeat_each() * 2 * blocks();
$ENV{TEST_NGINX_MEMCACHED_PORT} ||= 11211;
#no_diff;
run_tests();
__DATA__
=== TEST 1: the "version" command
--- config
location /ver {
set $memc_cmd version;
memc_pass 127.0.0.1:$TEST_NGINX_MEMCACHED_PORT;
}
--- request
GET /ver
--- response_body_like: ^VERSION \d+(\.\d+)+.*?\r\n$
|