Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add test for osp start_scan() #23

Merged
merged 2 commits into from
Nov 6, 2018

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Nov 6, 2018

Also, fix add vt_selection element.

Do not add this element if it is empty, since it is not mandatory for OSP,
but it must not be empty if it is added.
@jjnicola jjnicola requested a review from a team November 6, 2018 14:39
@codecov
Copy link

codecov bot commented Nov 6, 2018

Codecov Report

Merging #23 into master will increase coverage by 2.28%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
+ Coverage   26.82%   29.11%   +2.28%     
==========================================
  Files           9        9              
  Lines        2009     2009              
==========================================
+ Hits          539      585      +46     
+ Misses       1470     1424      -46
Impacted Files Coverage Δ
gvm/protocols/ospv1.py 97.93% <100%> (+47.42%) ⬆️

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 923bfa7...79dee07. 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.

Not sure if this works already with the current code but parallel should take an integer


self.osp.start_scan(
scan_id='123-456',
parallel='10',
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be an int

Suggested change
parallel='10',
parallel=10,

def test_start_scan_legacy(self):
self.osp.start_scan(
scan_id='123-456',
parallel='10',
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

Suggested change
parallel='10',
parallel=10,

@bjoernricks bjoernricks merged commit 0a53298 into greenbone:master Nov 6, 2018
@jjnicola jjnicola deleted the more-osp-test branch November 7, 2018 11:46
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants