Skip to content
Snippets Groups Projects
Commit edf92cc9 authored by lcappelli's avatar lcappelli
Browse files

Remove old test files

parent 174f01e4
No related branches found
No related tags found
1 merge request!23Use nginx with njs instead of openresty with lua
use Test::Nginx::Socket 'no_plan';
run_tests();
__DATA__
=== TEST 1: hello world
--- main_config
load_module /etc/nginx/modules/ngx_http_js_module.so;
load_module /etc/nginx/modules/ngx_stream_js_module.so;
--- http_config
js_path "/home/nginx/t";
js_import main from testvoms.js;
--- config
location = /hello {
js_content main.hello;
}
--- request
GET /hello
--- response_body
Hello world!
function version(r) {
r.return(200, njs.version);
}
function hello(r) {
r.return(200, "Hello world!\n");
}
export default {version, hello}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment