@@ -151,7 +151,7 @@ foo: foovalue
151151
152152
153153
154- === TEST 10: Authentication with nginx link function header
154+ === TEST 10: sub request with nginx link function header
155155--- config
156156ngx_link_func_lib "NGINX_HTTP_LINK_FUNC_TEST_LIB_PATH/liblinkfuntest.so";
157157location /backend {
@@ -164,18 +164,20 @@ location = /auth {
164164location = /my_simple_authentication {
165165 ngx_link_func_add_req_header userId $arg_userId;
166166 ngx_link_func_add_req_header userPass $arg_userPass;
167- auth_request /auth;
167+ ngx_link_func_subrequest /auth;
168168 proxy_pass http://127.0.0.1:${server_port}/backend?userName=$http_userName;
169169}
170170--- request
171171GET /my_simple_authentication?userId=foo&userPass=xxxx
172172--- error_code: 200
173173--- response_body_like eval
174174qr/Welcome foo$/
175+ --- skip_nginx
176+ 1: < 1.13.4
175177
176178
177179
178- === TEST 11: Authentication with nginx link function header
180+ === TEST 11: sub request with nginx link function header
179181--- config
180182ngx_link_func_lib "NGINX_HTTP_LINK_FUNC_TEST_LIB_PATH/liblinkfuntest.so";
181183location /backend {
@@ -186,7 +188,7 @@ location = /auth {
186188 ngx_link_func_call "my_simple_authentication";
187189}
188190location = /my_simple_authentication {
189- auth_request /auth;
191+ ngx_link_func_subrequest /auth;
190192 proxy_pass http://127.0.0.1:${server_port}/backend?userName=$http_userName;
191193}
192194--- request
@@ -197,9 +199,8 @@ userPass:asdasds
197199--- error_code: 200
198200--- response_body_like eval
199201qr/Welcome foo$/
200-
201-
202- # Test Suite below is aio threads
202+ --- skip_nginx
203+ 1: < 1.13.4
203204
204205
205206=== TEST 21: aio threads Set LINK_FUNC_TEST_1
@@ -355,7 +356,7 @@ foo: foovalue
355356
356357
357358
358- === TEST 30: aio threads Authentication with nginx link function header
359+ === TEST 30: aio threads sub request with nginx link function header
359360--- main_config eval: $::main_conf
360361--- config
361362aio threads=my_thread_pool;
@@ -370,18 +371,20 @@ location = /auth {
370371location = /my_simple_authentication {
371372 ngx_link_func_add_req_header userId $arg_userId;
372373 ngx_link_func_add_req_header userPass $arg_userPass;
373- auth_request /auth;
374+ ngx_link_func_subrequest /auth;
374375 proxy_pass http://127.0.0.1:${server_port}/backend?userName=$http_userName;
375376}
376377--- request
377378GET /my_simple_authentication?userId=foo&userPass=xxxx
378379--- error_code: 200
379380--- response_body_like eval
380381qr/Welcome foo$/
382+ --- skip_nginx
383+ 1: < 1.13.4
381384
382385
383386
384- === TEST 31: aio threads Authentication with client header
387+ === TEST 31: aio threads sub request with client header
385388--- main_config eval: $::main_conf
386389--- config
387390aio threads=my_thread_pool;
@@ -394,7 +397,7 @@ location = /auth {
394397 ngx_link_func_call "my_simple_authentication";
395398}
396399location = /my_simple_authentication {
397- auth_request /auth;
400+ ngx_link_func_subrequest /auth;
398401 proxy_pass http://127.0.0.1:${server_port}/backend?userName=$http_userName;
399402}
400403--- request
@@ -405,4 +408,6 @@ userPass:asdasds
405408--- error_code: 200
406409--- response_body_like eval
407410qr/Welcome foo$/
411+ --- skip_nginx
412+ 1: < 1.13.4
408413
0 commit comments