Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix integration tests #615

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading