Skip to content

Conversation

@samugi
Copy link
Contributor

@samugi samugi commented May 31, 2022

No description provided.

@samugi samugi requested a review from a team as a code owner May 31, 2022 13:11
@samugi samugi requested review from a team and removed request for a team May 31, 2022 13:12
ngx.log(ngx.ERR, 'invalid host: ', ngx.var.host)
ngx.exit(404)
end
if ngx.var.host == 'test_backend' then
Copy link
Member

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'
          },

Copy link
Contributor Author

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
Copy link
Member

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'
          },

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above ^

@samugi samugi merged commit 34f1cd3 into tests-conversion-to-blackbox Jun 1, 2022
@samugi samugi deleted the blackbox-async-reporting-test branch June 1, 2022 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants