Skip to content

Commit

Permalink
custom-config.t conversion to APIcast::Blackbox
Browse files Browse the repository at this point in the history
  • Loading branch information
hector-vido committed Nov 3, 2023
1 parent 292d738 commit b4175c7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions t/custom-config.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use lib 't';
use Test::APIcast 'no_plan';
use Test::APIcast::Blackbox 'no_plan';

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

Expand All @@ -10,9 +10,9 @@ run_tests();
__DATA__
=== TEST 1: loading custom config file works
--- http_config
lua_package_path "$TEST_NGINX_LUA_PATH";
--- config
--- configuration
{}
--- upstream
location /t {
content_by_lua_block {
path = package.path
Expand All @@ -22,6 +22,10 @@ __DATA__
ngx.exit(ngx.HTTP_OK)
}
}
--- upstream_name
ctx
--- more_headers
Host: ctx
--- request
GET /t
--- user_files
Expand Down

0 comments on commit b4175c7

Please sign in to comment.