We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84e40fa commit 0275f31Copy full SHA for 0275f31
1 file changed
t/custom-config.t
@@ -1,5 +1,5 @@
1
use lib 't';
2
-use Test::APIcast 'no_plan';
+use Test::APIcast::Blackbox 'no_plan';
3
4
$ENV{APICAST_CUSTOM_CONFIG} = "$Test::Nginx::Util::HtmlDir/custom.lua";
5
@@ -10,9 +10,9 @@ run_tests();
10
__DATA__
11
12
=== TEST 1: loading custom config file works
13
---- http_config
14
- lua_package_path "$TEST_NGINX_LUA_PATH";
15
---- config
+--- configuration
+{}
+--- upstream
16
location /t {
17
content_by_lua_block {
18
path = package.path
@@ -22,6 +22,10 @@ __DATA__
22
ngx.exit(ngx.HTTP_OK)
23
}
24
25
+--- upstream_name
26
+ctx
27
+--- more_headers
28
+Host: ctx
29
--- request
30
GET /t
31
--- user_files
0 commit comments