Skip to content

Commit 0275f31

Browse files
Hector Vidotkan145
authored andcommitted
custom-config.t conversion to APIcast::Blackbox
1 parent 84e40fa commit 0275f31

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

t/custom-config.t

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use lib 't';
2-
use Test::APIcast 'no_plan';
2+
use Test::APIcast::Blackbox 'no_plan';
33

44
$ENV{APICAST_CUSTOM_CONFIG} = "$Test::Nginx::Util::HtmlDir/custom.lua";
55

@@ -10,9 +10,9 @@ run_tests();
1010
__DATA__
1111
1212
=== TEST 1: loading custom config file works
13-
--- http_config
14-
lua_package_path "$TEST_NGINX_LUA_PATH";
15-
--- config
13+
--- configuration
14+
{}
15+
--- upstream
1616
location /t {
1717
content_by_lua_block {
1818
path = package.path
@@ -22,6 +22,10 @@ __DATA__
2222
ngx.exit(ngx.HTTP_OK)
2323
}
2424
}
25+
--- upstream_name
26+
ctx
27+
--- more_headers
28+
Host: ctx
2529
--- request
2630
GET /t
2731
--- user_files

0 commit comments

Comments
 (0)