typo in NEEDS for test script.

This commit is contained in:
pyth0n1c
2021-11-05 14:57:46 -07:00
parent 522e2d03a6
commit 22656ffe23
+87 -3
View File
@@ -77,7 +77,7 @@ jobs:
cd automated_detection_testing/ci/detection_testing_batch
source .venv/bin/activate
#python3 detection_testing_execution.py -b ${{ steps.vars.outputs.branch }} -u 123456789 --splunkbase_username ${{ secrets.SPLUNKBASE_TESTING_USERNAME }} --splunkbase_password ${{ secrets.SPLUNKBASE_TESTING_KEY }} -m new -n2
python3 detection_testing_execution.py -b RegistryDetectionFixes -u 123456789 --splunkbase_username ${{ secrets.SPLUNKBASE_TESTING_USERNAME }} --splunkbase_password ${{ secrets.SPLUNKBASE_TESTING_KEY }} -m all -n5 -split
python3 detection_testing_execution.py -b RegistryDetectionFixes -u 123456789 --splunkbase_username ${{ secrets.SPLUNKBASE_TESTING_USERNAME }} --splunkbase_password ${{ secrets.SPLUNKBASE_TESTING_KEY }} -m new -n10 -split
echo "DONE!"
- name: Upload Test Results Files
@@ -91,6 +91,11 @@ jobs:
automated_detection_testing/ci/detection_testing_batch/container_2_tests.txt
automated_detection_testing/ci/detection_testing_batch/container_3_tests.txt
automated_detection_testing/ci/detection_testing_batch/container_4_tests.txt
automated_detection_testing/ci/detection_testing_batch/container_5_tests.txt
automated_detection_testing/ci/detection_testing_batch/container_6_tests.txt
automated_detection_testing/ci/detection_testing_batch/container_7_tests.txt
automated_detection_testing/ci/detection_testing_batch/container_8_tests.txt
automated_detection_testing/ci/detection_testing_batch/container_9_tests.txt
docker-detection-testing-execution:
@@ -98,7 +103,16 @@ jobs:
needs: [validate-tag-if-present, quit-for-dependabot, docker-detection-testing-setup]
strategy:
matrix:
test_filename: ["container_0_tests.txt", "container_1_tests.txt", "container_2_tests.txt", "container_3_tests.txt", "container_4_tests.txt"]
test_filename: ["container_0_tests.txt",
"container_1_tests.txt",
"container_2_tests.txt",
"container_3_tests.txt",
"container_4_tests.txt",
"container_5_tests.txt",
"container_6_tests.txt",
"container_7_tests.txt",
"container_8_tests.txt",
"container_9_tests.txt"]
steps:
- name: Get branch and PR required for detection testing main.py
id: vars
@@ -158,4 +172,74 @@ jobs:
automated_detection_testing/ci/detection_testing_batch/error.json
automated_detection_testing/ci/detection_testing_batch/failure.json
automated_detection_testing/ci/detection_testing_batch/combined.json
docker-detection-testing-execution-merge-results:
runs-on: ubuntu-latest
needs: [validate-tag-if-present, quit-for-dependabot, docker-detection-testing-setup, docker-detection-testing-execution]
steps:
- name: Get branch and PR required for detection testing main.py
id: vars
run: |
echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
- name: Checkout Repo
uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: container_0_tests.txt.results
path: automated_detection_testing/ci/detection_testing_batch/results
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: container_1_tests.txt.results
path: automated_detection_testing/ci/detection_testing_batch/results
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: container_2_tests.txt.results
path: automated_detection_testing/ci/detection_testing_batch/results
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: container_3_tests.txt.results
path: automated_detection_testing/ci/detection_testing_batch/results
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: container_4_tests.txt.results
path: automated_detection_testing/ci/detection_testing_batch/results
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: container_5_tests.txt.results
path: automated_detection_testing/ci/detection_testing_batch/results
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: container_6_tests.txt.results
path: automated_detection_testing/ci/detection_testing_batch/results
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: container_7_tests.txt.results
path: automated_detection_testing/ci/detection_testing_batch/results
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: container_8_tests.txt.results
path: automated_detection_testing/ci/detection_testing_batch/results
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: container_9_tests.txt.results
path: automated_detection_testing/ci/detection_testing_batch/results
- name: Merge Detections into single File
run: |
cd automated_detection_testing/ci/detection_testing_batch/results
ls -lah
echo "DONE!"