From 5386bc94ffc9df0e92cccd5dda80907ecb78e9ef Mon Sep 17 00:00:00 2001 From: Julia Date: Tue, 23 Aug 2022 12:16:30 +0200 Subject: [PATCH] fix(#3165): revert upload vim package to S3 --- .../data/playbooks/generate_events.yaml | 2 +- .../data/test_cases/cases_vulnerability_detector_linux.yaml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/end_to_end/test_basic_cases/test_vulnerability_detector/test_vulnerability_detector_linux/data/playbooks/generate_events.yaml b/tests/end_to_end/test_basic_cases/test_vulnerability_detector/test_vulnerability_detector_linux/data/playbooks/generate_events.yaml index baa5825f8d..3aedb196b7 100644 --- a/tests/end_to_end/test_basic_cases/test_vulnerability_detector/test_vulnerability_detector_linux/data/playbooks/generate_events.yaml +++ b/tests/end_to_end/test_basic_cases/test_vulnerability_detector/test_vulnerability_detector_linux/data/playbooks/generate_events.yaml @@ -12,7 +12,7 @@ - name: "{{ event_description }}" become: true - shell: "{{ shell }}" + shell: "{{ command }}" - name: Get alerts file hosts: managers diff --git a/tests/end_to_end/test_basic_cases/test_vulnerability_detector/test_vulnerability_detector_linux/data/test_cases/cases_vulnerability_detector_linux.yaml b/tests/end_to_end/test_basic_cases/test_vulnerability_detector/test_vulnerability_detector_linux/data/test_cases/cases_vulnerability_detector_linux.yaml index 527d4c1ab8..b0130dfdeb 100644 --- a/tests/end_to_end/test_basic_cases/test_vulnerability_detector/test_vulnerability_detector_linux/data/test_cases/cases_vulnerability_detector_linux.yaml +++ b/tests/end_to_end/test_basic_cases/test_vulnerability_detector/test_vulnerability_detector_linux/data/test_cases/cases_vulnerability_detector_linux.yaml @@ -4,9 +4,7 @@ metadata: extra_vars: event_description: Install vulnerable vim package - shell: | - curl {{ s3_url }}/vulnerability_detector/vim_vulnerable_package.deb -o vim_vulnerable_package.deb - dpkg -i vim_vulnerable_package.deb + command: apt install -y vim=2:8.1.2269-1ubuntu5.7 rule.id: 23505 rule.level: 10 rule.description: CVE-2022-1621 affects vim