Skip to content

Commit

Permalink
Implement tests to reproduce #2300 issue from Tempesta
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeniiMekhanik committed Dec 5, 2024
1 parent 049949b commit 17e04b1
Showing 1 changed file with 33 additions and 1 deletion.
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
tester.TempestaTest.setUp(self)


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

0 comments on commit 17e04b1

Please sign in to comment.