forked from kevoreilly/CAPEv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added file test_agent.py - Tests can be run in Windows or Linux - Tests will be run in github actions - Test most existing functionality of the agent - In send_file open the file in binary mode (bug fix) - Updates to the agent to make it testable, including: - Pass a multiprocessing event to the run() method when under test, so the test knows when the agent process is ready - Tweaks to the shutdown method enabling testing - Let jsonify not crash if values cannot be serialized - Add a new command-line parameter, -v, useful when testing interactively - When -v is given, stdout and stderr will simply go to the console - Allow the 'date' command to be executed from localhost; for testing ran ruff.
- Loading branch information
Showing
4 changed files
with
549 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[pytest] | ||
pythonpath = . | ||
asyncio_mode = auto |
Oops, something went wrong.