Skip to content

Commit

Permalink
integration tests: since there is now a NVD cleanup step, use static …
Browse files Browse the repository at this point in the history
…versions of the files
  • Loading branch information
devl00p committed Sep 22, 2024
1 parent 357aa16 commit 7e20dfa
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/integration/wapiti/Dockerfile.integration
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ COPY --from=build /usr/local/bin/wapiti /usr/local/bin/wapiti-getcookie /usr/loc
# Create the Wapiti config directory
RUN mkdir -p /root/.wapiti/config/cves

# Download the NVD CVE files directly from GitHub
RUN curl -k -L https://github.com/wapiti-scanner/nvd-web-cves/releases/download/nvd-web-cves-20240809/nginx.json.xz -o /root/.wapiti/config/cves/nginx.json.xz && \
curl -k -L https://github.com/wapiti-scanner/nvd-web-cves/releases/download/nvd-web-cves-20240809/cherokee.json.xz -o /root/.wapiti/config/cves/cherokee.json.xz && \
curl -k -L https://github.com/wapiti-scanner/nvd-web-cves/releases/download/nvd-web-cves-20240809/jquery.json.xz -o /root/.wapiti/config/cves/jquery.json.xz
# Copy NVD files to .wapiti/config/cves
COPY ./tests/integration/wapiti/*.json.xz /root/.wapiti/config/cves/

COPY ./tests/integration/wapiti/test.py /usr/local/bin/test.py
COPY ./tests/integration/wapiti/templates_and_data.py /usr/local/bin/templates_and_data.py
Expand Down
Binary file added tests/integration/wapiti/cherokee.json.xz
Binary file not shown.
Binary file added tests/integration/wapiti/jquery.json.xz
Binary file not shown.
Binary file added tests/integration/wapiti/nginx.json.xz
Binary file not shown.

0 comments on commit 7e20dfa

Please sign in to comment.