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 set_nvticache_str(). #150

Merged
merged 5 commits into from
Nov 15, 2019
Merged

Add set_nvticache_str(). #150

merged 5 commits into from
Nov 15, 2019

Conversation

jjnicola
Copy link
Member

The nvticache name in redis (dependent on the gvm-libs) will be checked
for compatibility against a list of supported nvticache versions.

@jjnicola jjnicola force-pushed the nvticache branch 2 times, most recently from 2c5b2e7 to 81960ab Compare November 13, 2019 08:23
@codecov
Copy link

codecov bot commented Nov 13, 2019

Codecov Report

Merging #150 into master will increase coverage by 0.34%.
The diff coverage is 90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #150      +/-   ##
==========================================
+ Coverage   71.25%   71.59%   +0.34%     
==========================================
  Files           4        4              
  Lines         981     1000      +19     
==========================================
+ Hits          699      716      +17     
- Misses        282      284       +2
Impacted Files Coverage Δ
ospd_openvas/daemon.py 60% <100%> (+0.05%) ⬆️
ospd_openvas/nvticache.py 96.26% <89.47%> (-1.5%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 833faca...fa54740. Read the comment docs.

@jjnicola jjnicola force-pushed the nvticache branch 2 times, most recently from 771fa61 to e61936a Compare November 13, 2019 09:42
@jjnicola jjnicola marked this pull request as ready for review November 13, 2019 09:45
The nvticache name in redis (dependent on the gvm-libs) will be checked
for compatibility against a list of supported nvticache versions.
Copy link
Member

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

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

Personally I am not sure about using distutils in python 3 because it is more or less deprecated. Instead I would use pkg_resource parse_version which comes with setuptools. The reason behind this is pkg_resources parse_version is PEP 440 compatible and i don't know if this is true for distutils.

ospd_openvas/nvticache.py Outdated Show resolved Hide resolved
@jjnicola jjnicola added the Work in progress Waiting for Feature Specification validation. label Nov 15, 2019
@jjnicola jjnicola removed the Work in progress Waiting for Feature Specification validation. label Nov 15, 2019
Copy link
Member

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

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

Shouldn't the nvti cache version set when the NVTICache class is constructed? Is there any reason for not doing this automatically in the constructor?

@bjoernricks bjoernricks self-requested a review November 15, 2019 09:46
@bjoernricks bjoernricks merged commit 8e9778f into greenbone:master Nov 15, 2019
@jjnicola jjnicola deleted the nvticache branch November 15, 2019 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants