-
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
add h2
static responses tests
#272
Conversation
556d29d
to
d01c099
Compare
I've encountered 2 Tempesta bugs during poking around these tests:
If you uncomment
as well in case if that would help, but it didn't — the test still fails.
This is a known Tempesta issue (#261, #1669).
basically means that requests get to the backend and Tempesta fails to return them back to the client. |
cache/test_cache.py
Outdated
@@ -3,6 +3,7 @@ | |||
from __future__ import print_function | |||
from testers import functional | |||
from helpers import chains | |||
from framework import tester | |||
|
|||
__author__ = 'Tempesta Technologies, Inc.' | |||
__copyright__ = 'Copyright (C) 2017 Tempesta Technologies, Inc.' |
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 update the copyright year
cache/test_cache.py
Outdated
|
||
got_response = client.wait_for_response(timeout=5) | ||
|
||
print(f"Amount of requests passed to the backend: {len(self.get_server('deproxy').requests)}") |
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 seems here should be an assertion, that backend receives only 1 request. Also too wide line
Issue (1) looks like about tempesta-tech/tempesta#1630 - could you please disable the test pointing out the issue. I think just using I added comment 7 about |
No, it's not tempesta-tech/tempesta#1630, it's about matching pseudo-headers by http tables. Now we can't match any pseudo-headers by using |
With the slack discussion it's worth testing configuration like:
|
http_rules/test_http_tables.py
Outdated
} | ||
|
||
http_chain { | ||
hdr "Host" == "tempesta-tech.com" -> redirection_chain; |
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.
Host
can't be matched, because you don't send it. Is it expected?
cache/test_cache.py
Outdated
clients = [{ | ||
'id': 'deproxy', | ||
'type': 'deproxy_h2', | ||
'addr': "${server_ip}", |
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.
I believe would be better to use ${tempesta_ip}
, because tempesta and backend can be on different hosts.
d01c099
to
57112cd
Compare
These tests aim to ensure that Tempesta generates correct static responses in most common use-cases using `h2` protocol.
57112cd
to
14d3bff
Compare
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
These tests aim to ensure that Tempesta generates correct static responses in most common use-cases using
h2
protocol.