Skip to content
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

Forwarded HTTP header #1350 tests #219

Merged
merged 6 commits into from
Jun 27, 2022

Conversation

const-t
Copy link
Contributor

@const-t const-t commented May 17, 2022

  • Added tests for correctness of choosing host and accuracy of parsing.

 - Added tests for correctness of choosing host and accuracy of parsing.
@krizhanovsky krizhanovsky self-requested a review May 18, 2022 22:53
Copy link
Contributor

@krizhanovsky krizhanovsky left a comment

Choose a reason for hiding this comment

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

Looks good to merge. Thank you for the contribution!

Once the copyrights are updated, I'll merge the code, probably with masking the tests in tests_disabled.json before tempesta-tech/tempesta#1629 is merged.

forwarding/test_match_host_forwarded.py Show resolved Hide resolved

class SingleTest(object):
def test(self):
self._test()
Copy link
Contributor

Choose a reason for hiding this comment

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

Please consider this comment #221 (comment) - we'll need a unified helper for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please consider this comment #221 (comment) - we'll need a unified helper for this.

ok, I am waiting for helper and will update my tests.

@const-t const-t marked this pull request as draft June 17, 2022 05:58
@const-t
Copy link
Contributor Author

const-t commented Jun 21, 2022

Also need to update http_host_required test

Copy link
Contributor

@krizhanovsky krizhanovsky left a comment

Choose a reason for hiding this comment

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

LGTM after the http_host_required test

@krizhanovsky krizhanovsky requested review from nickzaev and pale-emperor and removed request for nickzaev June 24, 2022 08:23
@pale-emperor
Copy link
Contributor

Code looks well

@const-t const-t marked this pull request as ready for review June 27, 2022 16:34
@const-t const-t merged commit 6ba9d73 into tempesta-tech:master Jun 27, 2022
@const-t const-t deleted the ct-1350-forwarded-hdr-test branch June 28, 2022 15:19
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.

3 participants