Cuckoo unit test writingΒΆ
This piece of documentation will teach you how to write a unit test for Cuckoo-unittest.
After reading the pages in the documentation you will be able to:
- Create a test file
- What to put into each test
- Automatically verify that your test file is free of errors
The unit test files are used to tell Cuckoo-unittest what to look for in the Cuckoo log. A unit test file is written in JSON. Each test file consists of two sections; a section that contains information about the test, and a section that contains the actual tests.
Contents:
- Creating tests
- test_info keys
- Adding tests
- tests
- check_md5
- check_sha1
- check_sha256
- check_sha512
- check_expected_api_calls
- check_expected_regkeys_opened
- check_expected_regkeys_read
- check_expected_regkeys_written
- check_expected_regkeys_deleted
- check_expected_mutexes_created
- check_expected_ips_connected
- check_expected_hosts_connected
- check_expected_processes
- check_expected_dll_loaded
- check_expected_monitor_log_lines
- tests
- Utilities