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

Refactor of the testing framework for vulnerability_detector #2462

Closed
5 tasks done
jmv74211 opened this issue Jan 21, 2022 · 0 comments · Fixed by #2499
Closed
5 tasks done

Refactor of the testing framework for vulnerability_detector #2462

jmv74211 opened this issue Jan 21, 2022 · 0 comments · Fixed by #2499
Assignees
Labels
feature/vuln-detector refactor Redesign and implement an existing development/feature

Comments

@jmv74211
Copy link
Contributor

jmv74211 commented Jan 21, 2022

Refactoring the testing framework for vulnerability_detector

So far, the module structure of the QA framework for vulnerability detector is quite simple and messy. Basically everything used for vulnerability detector testing is located in the vulnerability_detector.py module without taking into account that much of that functionality is duplicated or can be used by other different modules.

A refactor of the testing framework for vulnerability detector is requested, designing a reusable organization separated by functionalities.

After such a rework, the same results should be obtained in all related testing as at the beginning.

Tasks

  • Perform modular and reusable design.
  • Review used functions and refactor them.
  • Distribute functions in the new modules.
  • Update all the code that uses the modified testing framework.
  • Test that all tests involved work correctly (using the modified testing framework).
@jmv74211 jmv74211 added team/qa refactor Redesign and implement an existing development/feature test/integration feature/vuln-detector labels Jan 21, 2022
@jmv74211 jmv74211 self-assigned this Jan 21, 2022
@jmv74211 jmv74211 changed the title Vulnerability detector test module refactor: test_providers_enabled Refactoring the testing framework for vulnerability_detector Jan 24, 2022
@jmv74211 jmv74211 changed the title Refactoring the testing framework for vulnerability_detector Refactor of the testing framework for vulnerability_detector Jan 24, 2022
jmv74211 added a commit that referenced this issue Jan 24, 2022
jmv74211 added a commit that referenced this issue Jan 24, 2022
- agent_db
- cve_db
- global_db
jmv74211 added a commit that referenced this issue Jan 27, 2022
jmv74211 added a commit that referenced this issue Jan 27, 2022
- agent_db
- cve_db
- global_db
jmv74211 added a commit that referenced this issue Jan 27, 2022
- test_validate_feed_content
- test_general_settings_retry_interval
- test_full_scan_type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/vuln-detector refactor Redesign and implement an existing development/feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant