Skip to content

Commit

Permalink
tests: test for file hash list extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Mar 12, 2024
1 parent c8c5384 commit af2e25b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ def delete(path):
"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={}):
Expand Down
Binary file added tests/suricata-test-rules.zip
Binary file not shown.

0 comments on commit af2e25b

Please sign in to comment.