Skip to content
Snippets Groups Projects
my-echo-test.t 311 B
Newer Older
  • Learn to ignore specific revisions
  • use Test::Nginx::Socket 'no_plan';
    
    run_tests();
    
    __DATA__
    
    === TEST 1: hello, world
    This is just a simple demonstration of the echo directive provided by ngx_http_echo_module.
    --- config
    location = /hello {
        echo "hello, world!";
    }
    --- request
    GET /hello
    --- response_body
    hello, world!
    
    --- error_code: 200