mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
Another CI change to list directory structure during summarize step.
This commit is contained in:
@@ -77,7 +77,7 @@ jobs:
|
||||
cd automated_detection_testing/ci/detection_testing_batch
|
||||
source .venv/bin/activate
|
||||
|
||||
python3 detection_testing_execution.py run --branch develop --mode all --num_containers 10 --mock
|
||||
python3 detection_testing_execution.py run --branch develop --mode changes --num_containers 10 --mock
|
||||
|
||||
- name: Upload Test Results Files
|
||||
uses: actions/upload-artifact@v2
|
||||
@@ -243,6 +243,7 @@ jobs:
|
||||
- name: Merge Detections into single File
|
||||
run: |
|
||||
cd automated_detection_testing/ci/detection_testing_batch
|
||||
ls -lah
|
||||
python summarize_json.py --files results_*/combined.json --output_filename summary_test_results.json
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ def outputResultsJSON(output_filename:str, data:list[dict], baseline:OrderedDict
|
||||
"FAIL_AND_ERROR":fail_and_error_count }
|
||||
|
||||
with open(output_filename, "w") as jsonFile:
|
||||
json.dump({'summary':summary, 'baseline': baseline, 'results':data}, jsonFile, indent=" ")
|
||||
json.dump({'summary':summary, 'baseline': baseline, 'results':data}, jsonFile, indent=" ")
|
||||
except Exception as e:
|
||||
print("There was an error generating [%s]: [%s]"%(output_filename, str(e)),file=sys.stderr)
|
||||
raise(e)
|
||||
|
||||
Reference in New Issue
Block a user