nginx = self.get_server('nginx')
nginx.start()
self.start_tempesta()
self.assertTrue(nginx.wait_for_connections(timeout=1))
wrk1: wrk_client.Wrk = self.get_client('wrk_1')
wrk1.start()
self.wait_while_busy(wrk1)
wrk1.stop()
self.assertNotEqual(
0,
wrk1.requests,
'"wrk" client has not sent requests or received results.',
)
Client 'wrk' receives the amount of requests - 0
test (selftests.test_framework.ExampleTest) ... Running 10s test @ http://127.0.0.1:80/
6 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 606.96us 1.32ms 40.31ms 95.16%
Req/Sec 2.40k 0.90k 4.22k 56.67%
143356 requests in 10.06s, 47.57MB read
Non-2xx or 3xx responses: 143356
Requests/sec: 14255.44
Transfer/sec: 4.73MB
---- RESULTS --------
Status 403 : 143227 times
Status 502 : 129 times
---- END ------------
FAIL
======================================================================
FAIL: test (selftests.test_framework.ExampleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cookies/tempesta-test/selftests/test_framework.py", line 121, in test
self.assertNotEqual(
AssertionError: 0 == 0 : "wrk" client has not sent requests or received results.
For
selftests.test_framework.ExampleTest.test
:Client 'wrk' receives the amount of requests - 0