Skip to content

Commit

Permalink
making test case larger.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason McFarland committed Oct 30, 2017
1 parent eacadab commit 734cee2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/cb-defense-server-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ def notification():
#
# Yes str vs json since this emulates what the Cb Defense returns
#
list_data = test_data["notifications"]

for i in range(10):
test_data["notifications"].extend(list_data)
return jsonify(test_data)

#return jsonify({})

class FuncThread(threading.Thread):
def __init__(self, target, *args):
Expand All @@ -45,7 +50,7 @@ def udp_server():
data, address = sock.recvfrom(4096)
print address
print len(data)
print data
print repr(data)


def tcp_server():
Expand All @@ -63,7 +68,7 @@ def tcp_server():
print new_client_socket, address
buffer = secured_client_socket.recv(4096)
print len(buffer)
print buffer
print repr(buffer)
secured_client_socket.close()

def tcp_tls_server():
Expand All @@ -86,7 +91,7 @@ def tcp_tls_server():
print new_client_socket, address
buffer = secured_client_socket.recv()
print len(buffer)
print buffer
print repr(buffer)
secured_client_socket.close()


Expand Down

0 comments on commit 734cee2

Please sign in to comment.