-
Notifications
You must be signed in to change notification settings - Fork 171
t/apicast-async-reporting.t: convert to APIcast::Blackbox #1348
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/apicast-async-reporting.t: convert to APIcast::Blackbox #1348
Conversation
| ngx.log(ngx.ERR, 'invalid host: ', ngx.var.host) | ||
| ngx.exit(404) | ||
| end | ||
| if ngx.var.host == 'test_backend' then |
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.
not sure this is correct.
The Blackbox.pm sets backend override env var. This test, if it makes any sense, should "unset" the backend override endpoint and use the one configured from the configuration
backend = {
endpoint = 'http://localhost.example.com:$TEST_NGINX_SERVER_PORT'
},
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.
all set. I'm still using test_backend as a host so we don't actually need to reconfigure dns, but now the configuration comes from the backend/endpoint value
| ngx.log(ngx.ERR, 'invalid host: ', ngx.var.host) | ||
| ngx.exit(404) | ||
| end | ||
| if ngx.var.host == 'test_backend' then |
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.
not sure this is correct.
The Blackbox.pm sets backend override env var. This test, if it makes any sense, should "unset" the backend override endpoint and use the one configured from the configuration
backend = {
endpoint = 'http://localhost.example.com:$TEST_NGINX_SERVER_PORT'
},
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.
same as above ^
No description provided.