Skip to content

Commit 9c7e40e

Browse files
committed
Update helper tool for SSLEofErrors injection
It needs to be done on 3rd, not 2nd connection Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
1 parent 2fd350d commit 9c7e40e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/integration/targets/certificate/files/pyproxy.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,11 @@ def tcp_proxy_one_conn(s, dst, connection_count):
174174

175175

176176
def inject_ssl_eof_error(connection_count):
177-
# We want to let 2 connections pass,
178-
# 3rd - SSL EOF error,
179-
# then pass
180-
if connection_count in [2]:
177+
# We want to let N connections pass normally,
178+
# and (N+1)-th to fail with SSL EOF error,
179+
# then again pass normally.
180+
nn = 3
181+
if connection_count == nn:
181182
return True
182183
return False
183184

tests/integration/targets/certificate/tasks/02_ssl_eof_error.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# get and run pyproxy.py
3939
- name: get pyproxy.py
4040
ansible.builtin.copy:
41-
# branch ssl-eof-error, commit 7df232733f4cf6deb24d886321ceb4812a114ca4, 2023.03.16
41+
# branch ssl-eof-error, commit 00e0b1b2be41c9a09f76aa517969abc61705793e, 2023.06.12
4242
# url: https://raw.githubusercontent.com/justinc1/pyproxy/ssl-eof-error/code/pyproxy.py
4343
# The file was committed into the collection.
4444
src: files/pyproxy.py

0 commit comments

Comments
 (0)