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

Send messages generated by the scanner main process. #171

Merged
merged 1 commit into from
Dec 3, 2019

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Dec 3, 2019

Also remove trailing whitespaces from the host and OID strings.
Update test accordingly

Also remove trailing whitespaces from the host and OID strings.
@jjnicola jjnicola requested a review from bjoernricks December 3, 2019 10:44
@codecov
Copy link

codecov bot commented Dec 3, 2019

Codecov Report

Merging #171 into ospd-openvas-1.0 will decrease coverage by 0.07%.
The diff coverage is 75%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##           ospd-openvas-1.0    #171      +/-   ##
===================================================
- Coverage             71.47%   71.4%   -0.08%     
===================================================
  Files                     4       4              
  Lines                  1013    1014       +1     
===================================================
  Hits                    724     724              
- Misses                  289     290       +1
Impacted Files Coverage Δ
ospd_openvas/daemon.py 59.05% <75%> (-0.09%) ⬇️

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 3b4b8fb...3d836e7. Read the comment docs.

Copy link
Contributor

@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.

The PR looks good to me. Maybe we should rename the get_openvas_result in future. A get_ function implies that something is returned and it shouldn't have any side effect.

@@ -1507,6 +1507,7 @@ def exec_scan(self, scan_id, target):

ctx = self.openvas_db.kb_connect(self.main_kbindex)
self.openvas_db.set_redisctx(ctx)
self.get_openvas_result(scan_id, "")
Copy link
Contributor

Choose a reason for hiding this comment

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

The method name is confusing. A better name would be something like collect_results_from_openvas.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will do it.

@jjnicola jjnicola merged commit da43af1 into greenbone:ospd-openvas-1.0 Dec 3, 2019
@jjnicola jjnicola deleted the send-msg branch December 3, 2019 13:22
@jjnicola
Copy link
Member Author

jjnicola commented Dec 3, 2019

@bjoernricks , Thanks for the reviews!

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.

2 participants