summaryrefslogtreecommitdiffstats
path: root/suricata-update/tests/integration_tests.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:40:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:40:14 +0000
commit2c370a1dd70130d82e9222945ff2421a4168e640 (patch)
tree670794b3ba895e1a01c834c5b7881d123eb46f38 /suricata-update/tests/integration_tests.py
parentAdding debian version 1:7.0.3-1. (diff)
downloadsuricata-2c370a1dd70130d82e9222945ff2421a4168e640.tar.xz
suricata-2c370a1dd70130d82e9222945ff2421a4168e640.zip
Merging upstream version 1:7.0.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'suricata-update/tests/integration_tests.py')
-rwxr-xr-xsuricata-update/tests/integration_tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/suricata-update/tests/integration_tests.py b/suricata-update/tests/integration_tests.py
index 8970585..c4b119b 100755
--- a/suricata-update/tests/integration_tests.py
+++ b/suricata-update/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={}):