greenbone / ospd

OSPd is a framework for vulnerability scanners which share the same communication protocol: OSP (Open Scanner Protocol)
GNU Affero General Public License v3.0
30 stars 36 forks source link

Initialize end_time with create_scan #354

Closed jjnicola closed 3 years ago

jjnicola commented 3 years ago

What: Initialize end_time with create_scan

Why: Some methods assume end_time is set. Close issue greenbone/ospd-openvas#361

How: Set the option scaninfo_store_time and start a scan. Without this patch, the scan crashed.

Checklist:

codecov[bot] commented 3 years ago

Codecov Report

Merging #354 (15b5ba6) into ospd-20.08 (60c6166) will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff               @@
##           ospd-20.08     #354      +/-   ##
==============================================
+ Coverage       73.90%   73.91%   +0.01%     
==============================================
  Files              23       23              
  Lines            2602     2603       +1     
==============================================
+ Hits             1923     1924       +1     
  Misses            679      679              
Impacted Files Coverage Δ
ospd/scan.py 92.56% <100.00%> (+0.03%) :arrow_up:

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 60c6166...15b5ba6. Read the comment docs.