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

Additional tests and create_target changes #17

Merged
merged 5 commits into from
Nov 6, 2018
Merged

Additional tests and create_target changes #17

merged 5 commits into from
Nov 6, 2018

Conversation

bjoernricks
Copy link
Contributor

No description provided.

@bjoernricks bjoernricks requested review from wiegandm and a team November 6, 2018 10:33
Test if xml content gets escaped and invalid xml is handled when using
XmlCommand.
Mark parameters as optional and add hint for returned value.
This commit also changes the API of create_target because the parameters
have changed. Now the ids are passed a argument directly instead of
passed within a dict. We are not going to follow the GMP protocol 1:1
anymore.
Update create_target tests to test Gmp object directly instead of
GmpCommandFactory.
@codecov
Copy link

codecov bot commented Nov 6, 2018

Codecov Report

Merging #17 into master will decrease coverage by 0.82%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #17      +/-   ##
==========================================
- Coverage   22.76%   21.94%   -0.83%     
==========================================
  Files           9        9              
  Lines        2029     2005      -24     
==========================================
- Hits          462      440      -22     
+ Misses       1567     1565       -2
Impacted Files Coverage Δ
gvm/xml.py 14.37% <ø> (-4.15%) ⬇️
gvm/protocols/gmpv7.py 44.44% <100%> (+6.32%) ⬆️

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 bd84170...4beef78. Read the comment docs.

@bjoernricks bjoernricks merged commit 61b038c into greenbone:master Nov 6, 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