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

Implement tests to reproduce #2300 issue from Tempesta #739

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion ws/test_ws_ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from helpers import dmesg, tf_cfg
from helpers.cert_generator_x509 import CertGenerator
from test_suite import tester
from test_suite import marks, tester

__author__ = "Tempesta Technologies, Inc."
__copyright__ = "Copyright (C) 2017-2024 Tempesta Technologies, Inc."
Expand Down Expand Up @@ -328,6 +328,38 @@ def test(self):
self.p2.join()


@marks.parameterize_class(
[{"name": "HttpsH2", "proto": "https,h2"}, {"name": "H2Https", "proto": "h2,https"}]
)
class WssPingMultipleListeners(WssPing):
tempesta_template = {
"config": """
listen 81;
listen 82 proto=%s;

srv_group default {

server ${server_ip}:8099;
}
frang_limits {http_strict_host_checking false;}
tls_certificate ${general_workdir}/cert.pem;
tls_certificate_key ${general_workdir}/key.pem;
tls_match_any_server_name;
vhost default {
proxy_pass default;
}

http_chain {
-> default;
}
""",
}

def setUp(self):
self.tempesta["config"] = self.tempesta_template["config"] % self.proto
super().setUp()


class WssPingProxy(WssPing):
"""
Ping test for websocket wss scheme with nginx proxying TLS
Expand Down