Skip to content

Commit

Permalink
Fix according review
Browse files Browse the repository at this point in the history
- Add comments
- Change Tempesta `run_start` to `reload`.
  • Loading branch information
EvgeniiMekhanik committed Dec 4, 2024
1 parent 34e3ed7 commit 049949b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tls/test_tls_stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ def test(self, name, alg):
def __reload_tempesta(self):
tempesta: Tempesta = self.get_tempesta()
while not self.stop_flag:
tempesta.run_start()
"""
BUG in Tempesta is reproduced on live reconfiguration of Tempesta FW
under heavy load.
"""
tempesta.reload()
self.stop_flag = False

@marks.Parameterize.expand(
Expand All @@ -213,7 +217,7 @@ def __reload_tempesta(self):
marks.Param(name="DHE-RSA-AES256-CCM", alg="tls-perf-DHE-RSA-AES256-CCM"),
]
)
@dmesg.unlimited_rate_on_tempesta_node
@dmesg.limited_rate_on_tempesta_node
def test_stress(self, name, alg):
"""
Check how Tempesta FW update sertificates under load.
Expand All @@ -226,6 +230,10 @@ def test_stress(self, name, alg):

t = threading.Thread(target=self.__reload_tempesta)
t.start()
"""
This test reproduces BUG, which was in Tempesta FW.
'5' runs usually enough to this purpose.
"""
for i in range(0, 5):
tls_perf.start()
self.wait_while_busy(tls_perf)
Expand Down

0 comments on commit 049949b

Please sign in to comment.