Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Add new members for vt elements in vts dictionary #73

Merged
merged 12 commits into from
Nov 21, 2018

Conversation

jjnicola
Copy link
Member

Add new explicit vt members (summary, affected, impact, insight, solution, detection, severities)
Update documentation
Add unit tests.

Add get_dependencies_vt_as_xml_str()
Change signature of add_vt(): Add vt_dependencies paramater.

Dependencies are now an explicit element of vt and use the vt_id to
reference them.
 empty static method to be overriding by the wrapper class.
Add get_*_vt_as_xml_str()
Change signature of add_vt()
This tags are now an explicit element of vt and use the vt_id to
reference them.
Add empty static method to be overriding by the wrapper class.
Add get_solution_vt_as_xml_str()
Change signature of add_vt()
This tag is now an explicit element of vt.
Add an empty static method to be overriding by the wrapper class.
    Add get_detection_vt_as_xml_str()
    Change signature of add_vt()
    This tag is now an explicit element of vt with qod_type as attributr.
    Add an empty static method to be overriding by the wrapper class.
Also fix the code, since there is either qod or qod_type for an vt, but
not always a vuldetect.
Add get_severities_vt_as_xml_str()
Change signature of add_vt()
Severity related tags are now part of an explicit element of vt.
Add an empty static method to be overriding by the wrapper class.
This allow to know the vt_id in the override method to improve debugging
in case it is necessary.
Update unit test method as well.
Copy link
Member

@janowagner janowagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested the patch in conjunction with PR #33 for ospd-openvas successfully.

@jjnicola jjnicola merged commit 3d2da1b into greenbone:master Nov 21, 2018
@jjnicola jjnicola deleted the vt-elements branch November 28, 2018 13:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants