From: Jason Ish Date: Tue, 12 Mar 2024 19:18:57 +0000 (-0600) Subject: tests: test for file hash list extraction X-Git-Tag: 1.3.2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e624231d9f7fbc08d92313f0e85597d25a00bee7;p=thirdparty%2Fsuricata-update.git tests: test for file hash list extraction --- diff --git a/tests/integration_tests.py b/tests/integration_tests.py index 8970585..c4b119b 100755 --- a/tests/integration_tests.py +++ b/tests/integration_tests.py @@ -118,6 +118,15 @@ run(common_args + [ "testing-header-with-spaces", "file:///doesnotexist" ]) +run(common_args + [ + "add-source", + "suricata-test-rules", + "file://{}/tests/suricata-test-rules.zip".format(os.getcwd()), +]) +run(common_args) +assert(os.path.exists(os.path.join(DATA_DIR, "rules/testmyids.md5"))) +assert(os.path.exists(os.path.join(DATA_DIR, "rules/testmyids.sha1"))) +assert(os.path.exists(os.path.join(DATA_DIR, "rules/testmyids.sha256"))) class IntegrationTest: def __init__(self, configs={}): diff --git a/tests/suricata-test-rules.zip b/tests/suricata-test-rules.zip new file mode 100644 index 0000000..4f834f8 Binary files /dev/null and b/tests/suricata-test-rules.zip differ