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

API Cleanup #27

Merged
merged 26 commits into from
Nov 7, 2018
Merged

API Cleanup #27

merged 26 commits into from
Nov 7, 2018

Conversation

bjoernricks
Copy link
Contributor

Move create commands to Gmp class

Fix some glitches in the created docs.
Was a copy&paste mistake
Not sure if gvmd will strip that spaces. So be save and remove them when
sending the request.
Besides the other methods which followed the gmp protocol 1:1 the
create_task was missing many optional elements.

With this change only the optional preferences are still missing.
Currently it's not clear which format is expected. Therefore use lists
which can be converted to each possible textual list format.
All create command are converted now and we can consider the create_xyz
methods api as finished.
@bjoernricks bjoernricks requested review from a team and jjnicola November 7, 2018 09:51
hosts argument is expected to be a list now.
@codecov
Copy link

codecov bot commented Nov 7, 2018

Codecov Report

Merging #27 into master will decrease coverage by 0.1%.
The diff coverage is 26.76%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
- Coverage   31.73%   31.63%   -0.11%     
==========================================
  Files           9        9              
  Lines        1963     1960       -3     
==========================================
- Hits          623      620       -3     
  Misses       1340     1340
Impacted Files Coverage Δ
gvm/xml.py 15.07% <ø> (-1.52%) ⬇️
gvm/protocols/ospv1.py 97.93% <100%> (ø) ⬆️
gvm/protocols/gmpv7.py 31.78% <23.15%> (-2.6%) ⬇️

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 60e59cf...e07765a. Read the comment docs.

@bjoernricks bjoernricks requested a review from jjnicola November 7, 2018 10:28
@bjoernricks bjoernricks merged commit 00b80e7 into greenbone:master Nov 7, 2018
# 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