Skip to content

Commit

Permalink
Merge pull request #1425 from hector-vido/conversion_black_box_custom…
Browse files Browse the repository at this point in the history
…_config

custom-config.t conversion to APIcast::Blackbox
  • Loading branch information
eguzki authored Nov 14, 2023
2 parents eb92543 + b4175c7 commit 99aef88
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 99aef88

Please sign in to comment.