-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests for containers #363
base: development
Are you sure you want to change the base?
Tests for containers #363
Conversation
core/load.py
Outdated
@@ -887,7 +887,7 @@ def load_honeypot_engine(): | |||
if run_as_test: | |||
network_traffic_capture_process.terminate() | |||
# without ci it will be terminate after a few seconds, it needs to kill the tshark and update pcap file collection | |||
network_traffic_capture_process.join() | |||
# network_traffic_capture_process.join() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this doing?
3c1f170
to
dcff265
Compare
break | ||
sys.stdout.buffer.write(c) | ||
output += c.decode("utf-8") | ||
if messages["network_traffic_capture_start"] in output and is_network_traffic_capture_started is False: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for variables lets use = operator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for output we cant use ==
as output is being appended after getting data from the output stream
Description
Added test cases to test graceful shutting of modules.
docker kill module_container_name
)Ctrl + C
event to the command line)Screenshots (if appropriate):