Merge pull request #1516 from splunk/detection_testing_fix

Detection testing fix
This commit is contained in:
P4T12ICK
2021-07-14 13:04:03 +02:00
committed by GitHub
3 changed files with 24 additions and 8 deletions
+16 -7
View File
@@ -496,14 +496,22 @@ workflows:
filters:
tags:
only: /.*/
- detection-testing:
# build always
requires:
- validate-content
- build-sources
- build-package
filters:
tags:
only: /^v.*/
- run-appinspect:
# build always
requires:
- validate-content
- build-sources
- build-package
- detection-testing
filters:
tags:
only: /^v.*/
@@ -514,7 +522,7 @@ workflows:
- validate-content
- build-sources
- build-package
- detection-testing
- run-appinspect
filters:
tags:
@@ -527,7 +535,7 @@ workflows:
- validate-content
- build-sources
- build-package
- detection-testing
- run-appinspect
- create-report
filters:
@@ -541,7 +549,7 @@ workflows:
- validate-content
- build-sources
- build-package
- detection-testing
- run-appinspect
- create-report
- update-sources-github
@@ -556,7 +564,7 @@ workflows:
- validate-content
- build-sources
- build-package
- detection-testing
- run-appinspect
- create-report
- update-sources-github
@@ -571,7 +579,8 @@ workflows:
requires:
- validate-content
- build-sources
- build-package
- build-package
- detection-testing
- run-appinspect
- create-report
- update-sources-github
@@ -51,7 +51,12 @@ def test_detections(ssh_key_name, private_key, splunk_ip, splunk_password, test_
def test_detection(ssh_key_name, private_key, splunk_ip, splunk_password, test_file, test_index, uuid_test, uuid_var):
test_file_obj = load_file("security_content/" + test_file[2:])
try:
test_file_obj = load_file("security_content/" + test_file[2:])
except Exception as e:
print('Error: ' + str(e))
return
if not test_file_obj:
return
#print(test_file_obj)
@@ -54,3 +54,5 @@ tags:
- Processes.process_id
- Processes.parent_process_id
security_domain: endpoint