-
Notifications
You must be signed in to change notification settings - Fork 5
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
Forwarded HTTP header #1350 tests #219
Conversation
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.
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.
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_forwarded_hdr.py
Outdated
|
||
class SingleTest(object): | ||
def test(self): | ||
self._test() |
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.
Please consider this comment #221 (comment) - we'll need a unified helper for this.
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.
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.
Also need to update |
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.
LGTM after the http_host_required
test
Code looks well |
-Added case to verify host empty square brackets