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

Additional tests #89

Merged
merged 14 commits into from
Jan 7, 2019
Merged

Additional tests #89

merged 14 commits into from
Jan 7, 2019

Conversation

bjoernricks
Copy link
Contributor

Added missing tests for modify_schedule and modify_task commands. With this PR we have a full code coverage for generated GMP commands 🎉

Because some values are validated against 0 the validation should run if
it is not None.
Use same validation for the arguments as in create_schedule
Allow to set the scanner preferences in a task.
Make argument names consitent, remove file_ arguments because they
aren't used (but still seem to be supported by gvmd...), add missing
supported arguments.
@bjoernricks bjoernricks requested review from wiegandm and a team January 4, 2019 12:41
@codecov
Copy link

codecov bot commented Jan 4, 2019

Codecov Report

Merging #89 into master will increase coverage by 4.86%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #89      +/-   ##
==========================================
+ Coverage   91.32%   96.18%   +4.86%     
==========================================
  Files          10       10              
  Lines        2374     2412      +38     
==========================================
+ Hits         2168     2320     +152     
+ Misses        206       92     -114
Impacted Files Coverage Δ
gvm/protocols/gmpv7.py 99.58% <100%> (+3.78%) ⬆️
gvm/protocols/gmpv8.py 99.06% <100%> (+40.97%) ⬆️

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 97ac5ec...d04c24d. Read the comment docs.

@bjoernricks bjoernricks merged commit 3a8780f into greenbone:master Jan 7, 2019
@bjoernricks bjoernricks deleted the additional-tests branch January 7, 2019 11:00
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