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

Add Unit Tests for the project #87

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Oct 30, 2023

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement

Description

This PR adds unit tests for the project to ensure the correctness of the implemented functionality. The tests cover the ZapScanner, NexposeScanner, OpenVASScanner, and StorageService classes. Mock objects are used to simulate the behavior of external dependencies such as ZAPv2, rapid7vmconsole, and openvas. The tests verify the functionality of each public method in these classes and ensure that the expected behavior is maintained.

Summary of Changes

  • Created new test files for each scanner class: tests/test_zap_scanner.py, tests/test_nexpose_scanner.py, and tests/test_openvas_scanner.py.
  • Created a new test file for the StorageService class: tests/test_storage_service.py.
  • Added unit tests for each public method in the scanner classes, using mock objects to simulate external dependencies.
  • Modified the scanner classes to add methods for accessing internal state, allowing for easier testing.
  • Modified the StorageService class to add methods for accessing the internal database state, enabling better testing.

These changes improve the overall quality and reliability of the project by ensuring that the implemented functionality behaves as expected and can be easily tested in isolation.

Fixes #85.


🎉 Latest improvements to Sweep:

  • Sweep can now passively improve your repository! Check out Rules to learn more.

💡 To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

@sweep-ai
Copy link
Contributor Author

sweep-ai bot commented Oct 30, 2023

Sandbox Executions

  • Check tests/test_zap_scanner.py
Sandbox logs for
pip install -r requirements.txt 1/1 ❌ (`1`)
Collecting asn1crypto==0.24.0
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.6/101.6 KB 2.4 MB/s eta 0:00:00
Collecting bcrypt==3.1.7
  Downloading bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.1/56.1 KB 5.9 MB/s eta 0:00:00
Collecting beautifulsoup4==4.8.0
  Downloading beautifulsoup4-4.8.0-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.5/97.5 KB 10.1 MB/s eta 0:00:00
Collecting certifi==2019.6.16
  Downloading certifi-2019.6.16-py2.py3-none-any.whl (157 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.1/157.1 KB 29.3 MB/s eta 0:00:00
Collecting cffi==1.12.3
  Downloading cffi-1.12.3.tar.gz (456 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 456.3/456.3 KB 48.0 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting chardet==3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 KB 22.0 MB/s eta 0:00:00
Collecting cryptography==2.7
  Downloading cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 71.8 MB/s eta 0:00:00
Collecting defusedxml==0.6.0
  Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting gvm-tools==2.0.0b1
  Downloading gvm_tools-2.0.0b1-py3-none-any.whl (25 kB)
Collecting idna==2.8
  Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 KB 6.7 MB/s eta 0:00:00
Collecting lxml==4.4.1
  Downloading lxml-4.4.1.tar.gz (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 16.2 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting nltk==3.4.5
  Downloading nltk-3.4.5.zip (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 71.6 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting paramiko==2.6.0
  Downloading paramiko-2.6.0-py2.py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.9/199.9 KB 24.5 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement pprint==0.1 (from versions: none)
ERROR: No matching distribution found for pprint==0.1
  • Check requirements.txt
Sandbox logs for
pip install -r requirements.txt 1/1 ❌ (`1`)
Collecting asn1crypto==0.24.0
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.6/101.6 KB 2.4 MB/s eta 0:00:00
Collecting bcrypt==3.1.7
  Downloading bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.1/56.1 KB 9.5 MB/s eta 0:00:00
Collecting beautifulsoup4==4.8.0
  Downloading beautifulsoup4-4.8.0-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.5/97.5 KB 19.1 MB/s eta 0:00:00
Collecting certifi==2019.6.16
  Downloading certifi-2019.6.16-py2.py3-none-any.whl (157 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.1/157.1 KB 26.3 MB/s eta 0:00:00
Collecting cffi==1.12.3
  Downloading cffi-1.12.3.tar.gz (456 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 456.3/456.3 KB 47.7 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting chardet==3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 KB 23.3 MB/s eta 0:00:00
Collecting cryptography==2.7
  Downloading cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 85.7 MB/s eta 0:00:00
Collecting defusedxml==0.6.0
  Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting gvm-tools==2.0.0b1
  Downloading gvm_tools-2.0.0b1-py3-none-any.whl (25 kB)
Collecting idna==2.8
  Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 KB 8.9 MB/s eta 0:00:00
Collecting lxml==4.4.1
  Downloading lxml-4.4.1.tar.gz (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 80.9 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting nltk==3.4.5
  Downloading nltk-3.4.5.zip (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 77.3 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting paramiko==2.6.0
  Downloading paramiko-2.6.0-py2.py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.9/199.9 KB 29.8 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement pprint==0.1 (from versions: none)
ERROR: No matching distribution found for pprint==0.1
  • Check tests/test_zap_scanner.py
Sandbox logs for
pip install -r requirements.txt 1/1 ❌ (`1`)
Collecting asn1crypto==0.24.0
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.6/101.6 KB 2.4 MB/s eta 0:00:00
Collecting bcrypt==3.1.7
  Downloading bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.1/56.1 KB 5.9 MB/s eta 0:00:00
Collecting beautifulsoup4==4.8.0
  Downloading beautifulsoup4-4.8.0-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.5/97.5 KB 10.1 MB/s eta 0:00:00
Collecting certifi==2019.6.16
  Downloading certifi-2019.6.16-py2.py3-none-any.whl (157 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.1/157.1 KB 29.3 MB/s eta 0:00:00
Collecting cffi==1.12.3
  Downloading cffi-1.12.3.tar.gz (456 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 456.3/456.3 KB 48.0 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting chardet==3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 KB 22.0 MB/s eta 0:00:00
Collecting cryptography==2.7
  Downloading cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 71.8 MB/s eta 0:00:00
Collecting defusedxml==0.6.0
  Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting gvm-tools==2.0.0b1
  Downloading gvm_tools-2.0.0b1-py3-none-any.whl (25 kB)
Collecting idna==2.8
  Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 KB 6.7 MB/s eta 0:00:00
Collecting lxml==4.4.1
  Downloading lxml-4.4.1.tar.gz (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 16.2 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting nltk==3.4.5
  Downloading nltk-3.4.5.zip (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 71.6 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting paramiko==2.6.0
  Downloading paramiko-2.6.0-py2.py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.9/199.9 KB 24.5 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement pprint==0.1 (from versions: none)
ERROR: No matching distribution found for pprint==0.1
  • Check tests/test_nexpose_scanner.py
Sandbox logs for
pip install -r requirements.txt 1/1 ❌ (`1`)
Collecting asn1crypto==0.24.0
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.6/101.6 KB 2.3 MB/s eta 0:00:00
Collecting bcrypt==3.1.7
  Downloading bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.1/56.1 KB 6.5 MB/s eta 0:00:00
Collecting beautifulsoup4==4.8.0
  Downloading beautifulsoup4-4.8.0-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.5/97.5 KB 12.9 MB/s eta 0:00:00
Collecting certifi==2019.6.16
  Downloading certifi-2019.6.16-py2.py3-none-any.whl (157 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.1/157.1 KB 23.2 MB/s eta 0:00:00
Collecting cffi==1.12.3
  Downloading cffi-1.12.3.tar.gz (456 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 456.3/456.3 KB 44.5 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting chardet==3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 KB 22.9 MB/s eta 0:00:00
Collecting cryptography==2.7
  Downloading cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 56.4 MB/s eta 0:00:00
Collecting defusedxml==0.6.0
  Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting gvm-tools==2.0.0b1
  Downloading gvm_tools-2.0.0b1-py3-none-any.whl (25 kB)
Collecting idna==2.8
  Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 KB 11.4 MB/s eta 0:00:00
Collecting lxml==4.4.1
  Downloading lxml-4.4.1.tar.gz (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 84.3 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting nltk==3.4.5
  Downloading nltk-3.4.5.zip (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 79.9 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting paramiko==2.6.0
  Downloading paramiko-2.6.0-py2.py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.9/199.9 KB 27.7 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement pprint==0.1 (from versions: none)
ERROR: No matching distribution found for pprint==0.1
  • Check tests/test_openvas_scanner.py
Sandbox logs for
pip install -r requirements.txt 1/1 ❌ (`1`)
Collecting asn1crypto==0.24.0
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.6/101.6 KB 2.4 MB/s eta 0:00:00
Collecting bcrypt==3.1.7
  Downloading bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.1/56.1 KB 5.9 MB/s eta 0:00:00
Collecting beautifulsoup4==4.8.0
  Downloading beautifulsoup4-4.8.0-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.5/97.5 KB 15.1 MB/s eta 0:00:00
Collecting certifi==2019.6.16
  Downloading certifi-2019.6.16-py2.py3-none-any.whl (157 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.1/157.1 KB 28.4 MB/s eta 0:00:00
Collecting cffi==1.12.3
  Downloading cffi-1.12.3.tar.gz (456 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 456.3/456.3 KB 53.7 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting chardet==3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 KB 19.8 MB/s eta 0:00:00
Collecting cryptography==2.7
  Downloading cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 78.9 MB/s eta 0:00:00
Collecting defusedxml==0.6.0
  Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting gvm-tools==2.0.0b1
  Downloading gvm_tools-2.0.0b1-py3-none-any.whl (25 kB)
Collecting idna==2.8
  Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 KB 8.2 MB/s eta 0:00:00
Collecting lxml==4.4.1
  Downloading lxml-4.4.1.tar.gz (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 86.2 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting nltk==3.4.5
  Downloading nltk-3.4.5.zip (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 67.9 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting paramiko==2.6.0
  Downloading paramiko-2.6.0-py2.py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.9/199.9 KB 32.0 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement pprint==0.1 (from versions: none)
ERROR: No matching distribution found for pprint==0.1
  • Check tests/test_storage_service.py
Sandbox logs for
pip install -r requirements.txt 1/1 ❌ (`1`)
Collecting asn1crypto==0.24.0
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.6/101.6 KB 2.5 MB/s eta 0:00:00
Collecting bcrypt==3.1.7
  Downloading bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.1/56.1 KB 6.6 MB/s eta 0:00:00
Collecting beautifulsoup4==4.8.0
  Downloading beautifulsoup4-4.8.0-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.5/97.5 KB 16.5 MB/s eta 0:00:00
Collecting certifi==2019.6.16
  Downloading certifi-2019.6.16-py2.py3-none-any.whl (157 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.1/157.1 KB 22.5 MB/s eta 0:00:00
Collecting cffi==1.12.3
  Downloading cffi-1.12.3.tar.gz (456 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 456.3/456.3 KB 49.2 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting chardet==3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 KB 23.6 MB/s eta 0:00:00
Collecting cryptography==2.7
  Downloading cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 45.1 MB/s eta 0:00:00
Collecting defusedxml==0.6.0
  Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting gvm-tools==2.0.0b1
  Downloading gvm_tools-2.0.0b1-py3-none-any.whl (25 kB)
Collecting idna==2.8
  Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 KB 3.0 MB/s eta 0:00:00
Collecting lxml==4.4.1
  Downloading lxml-4.4.1.tar.gz (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 62.5 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting nltk==3.4.5
  Downloading nltk-3.4.5.zip (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 78.9 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting paramiko==2.6.0
  Downloading paramiko-2.6.0-py2.py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.9/199.9 KB 35.9 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement pprint==0.1 (from versions: none)
ERROR: No matching distribution found for pprint==0.1
  • Check scanners/zap_scanner.py
Sandbox logs for
pip install -r requirements.txt 1/1 ❌ (`1`)
Collecting asn1crypto==0.24.0
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.6/101.6 KB 2.4 MB/s eta 0:00:00
Collecting bcrypt==3.1.7
  Downloading bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.1/56.1 KB 9.6 MB/s eta 0:00:00
Collecting beautifulsoup4==4.8.0
  Downloading beautifulsoup4-4.8.0-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.5/97.5 KB 14.8 MB/s eta 0:00:00
Collecting certifi==2019.6.16
  Downloading certifi-2019.6.16-py2.py3-none-any.whl (157 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.1/157.1 KB 22.1 MB/s eta 0:00:00
Collecting cffi==1.12.3
  Downloading cffi-1.12.3.tar.gz (456 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 456.3/456.3 KB 55.4 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting chardet==3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 KB 23.2 MB/s eta 0:00:00
Collecting cryptography==2.7
  Downloading cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 77.2 MB/s eta 0:00:00
Collecting defusedxml==0.6.0
  Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting gvm-tools==2.0.0b1
  Downloading gvm_tools-2.0.0b1-py3-none-any.whl (25 kB)
Collecting idna==2.8
  Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 KB 10.5 MB/s eta 0:00:00
Collecting lxml==4.4.1
  Downloading lxml-4.4.1.tar.gz (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 80.3 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting nltk==3.4.5
  Downloading nltk-3.4.5.zip (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 77.4 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting paramiko==2.6.0
  Downloading paramiko-2.6.0-py2.py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.9/199.9 KB 33.8 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement pprint==0.1 (from versions: none)
ERROR: No matching distribution found for pprint==0.1
  • Check scanners/nexpose_scanner.py
Sandbox logs for
pip install -r requirements.txt 1/1 ❌ (`1`)
Collecting asn1crypto==0.24.0
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.6/101.6 KB 2.2 MB/s eta 0:00:00
Collecting bcrypt==3.1.7
  Downloading bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.1/56.1 KB 5.2 MB/s eta 0:00:00
Collecting beautifulsoup4==4.8.0
  Downloading beautifulsoup4-4.8.0-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.5/97.5 KB 5.1 MB/s eta 0:00:00
Collecting certifi==2019.6.16
  Downloading certifi-2019.6.16-py2.py3-none-any.whl (157 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.1/157.1 KB 15.4 MB/s eta 0:00:00
Collecting cffi==1.12.3
  Downloading cffi-1.12.3.tar.gz (456 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 456.3/456.3 KB 40.3 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting chardet==3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 KB 25.9 MB/s eta 0:00:00
Collecting cryptography==2.7
  Downloading cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 79.3 MB/s eta 0:00:00
Collecting defusedxml==0.6.0
  Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting gvm-tools==2.0.0b1
  Downloading gvm_tools-2.0.0b1-py3-none-any.whl (25 kB)
Collecting idna==2.8
  Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 KB 7.8 MB/s eta 0:00:00
Collecting lxml==4.4.1
  Downloading lxml-4.4.1.tar.gz (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 87.9 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting nltk==3.4.5
  Downloading nltk-3.4.5.zip (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 78.2 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting paramiko==2.6.0
  Downloading paramiko-2.6.0-py2.py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.9/199.9 KB 25.4 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement pprint==0.1 (from versions: none)
ERROR: No matching distribution found for pprint==0.1
  • Check scanners/openvas_scanner.py
Sandbox logs for
pip install -r requirements.txt 1/1 ❌ (`1`)
Collecting asn1crypto==0.24.0
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.6/101.6 KB 1.8 MB/s eta 0:00:00
Collecting bcrypt==3.1.7
  Downloading bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.1/56.1 KB 9.6 MB/s eta 0:00:00
Collecting beautifulsoup4==4.8.0
  Downloading beautifulsoup4-4.8.0-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.5/97.5 KB 10.0 MB/s eta 0:00:00
Collecting certifi==2019.6.16
  Downloading certifi-2019.6.16-py2.py3-none-any.whl (157 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.1/157.1 KB 26.9 MB/s eta 0:00:00
Collecting cffi==1.12.3
  Downloading cffi-1.12.3.tar.gz (456 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 456.3/456.3 KB 31.9 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting chardet==3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 KB 19.9 MB/s eta 0:00:00
Collecting cryptography==2.7
  Downloading cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 59.0 MB/s eta 0:00:00
Collecting defusedxml==0.6.0
  Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting gvm-tools==2.0.0b1
  Downloading gvm_tools-2.0.0b1-py3-none-any.whl (25 kB)
Collecting idna==2.8
  Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 KB 5.8 MB/s eta 0:00:00
Collecting lxml==4.4.1
  Downloading lxml-4.4.1.tar.gz (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 70.9 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting nltk==3.4.5
  Downloading nltk-3.4.5.zip (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 61.1 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting paramiko==2.6.0
  Downloading paramiko-2.6.0-py2.py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.9/199.9 KB 29.2 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement pprint==0.1 (from versions: none)
ERROR: No matching distribution found for pprint==0.1
  • Check core/storage_service.py
Run core/storage_service.py through the sandbox.

@sweep-ai
Copy link
Contributor Author

sweep-ai bot commented Oct 30, 2023

Apply Sweep Rules to your PR?

  • Apply: Leftover TODOs in the code should be handled.
  • Apply: All new business logic should have corresponding unit tests in the tests/ directory.
  • Apply: Any clearly inefficient or repeated code should be optimized or refactored.

@sweep-ai sweep-ai bot added the sweep Sweep your software chores label Oct 30, 2023
@sweep-ai sweep-ai bot mentioned this pull request Oct 30, 2023
18 tasks
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 15 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Sweep your software chores
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: Add Unit Tests for the project
0 participants