-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[t] use one base class #458
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
use Test::Nginx::Socket::Lua 'no_plan'; | ||
use Cwd qw(cwd); | ||
use lib 't'; | ||
|
||
my $pwd = cwd(); | ||
my $apicast = $ENV{TEST_NGINX_APICAST_PATH} || "$pwd/apicast"; | ||
use TestAPIcast 'no_plan'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't really know. I guess it defines in what order to execute the tests. Search for https://openresty.gitbooks.io/programming-openresty/content/ also have few mentions of it. |
||
|
||
$ENV{TEST_NGINX_LUA_PATH} = "$apicast/src/?.lua;;"; | ||
$ENV{TEST_NGINX_MANAGEMENT_CONFIG} = "$apicast/conf.d/management.conf"; | ||
|
||
require("$pwd/t/dns.pl"); | ||
|
||
log_level('debug'); | ||
repeat_each(2); | ||
no_root_location(); | ||
run_tests(); | ||
|
||
__DATA__ | ||
|
@@ -177,8 +167,8 @@ POST /boot | |
{"status":"ok","config":{"services":[{"id":42}]}} | ||
--- error_code: 200 | ||
--- udp_listen: 1953 | ||
--- udp_reply eval | ||
$::dns->("localhost.local", "127.0.0.1", 60) | ||
--- udp_reply dns | ||
[ "localhost.local", "127.0.0.1", 60 ] | ||
--- no_error_log | ||
[error] | ||
|
||
|
@@ -206,8 +196,8 @@ POST /test | |
{"status":"ok","config":{"services":[{"id":42}]}} | ||
--- error_code: 200 | ||
--- udp_listen: 1953 | ||
--- udp_reply eval | ||
$::dns->("localhost.local", "127.0.0.1", 60) | ||
--- udp_reply dns | ||
[ "localhost.local", "127.0.0.1", 60 ] | ||
--- no_error_log | ||
[error] | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed now, but not before? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is needed for local run. There is no way to ignore folders on local build.