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

Adapt modify_tag to implementation #127

Merged
merged 7 commits into from
May 7, 2019
Merged

Adapt modify_tag to implementation #127

merged 7 commits into from
May 7, 2019

Conversation

wiegandm
Copy link
Member

@wiegandm wiegandm commented May 7, 2019

Adapt the parameter validation in modify_tag to the actual
implementation in gmvd and adjust tests and documentation accordingly.

The previous implementation refused a number of combinations which are
are accepted by the gvmd from GVM-10. Most notably, the
resource_type is rarely required, in contrast to the create_tag
command. Also, sending only the resource_type is acceptable for
modifying the type of resource a tag is intended for.

Checklist:

Adapt the parameter validation in `modify_tag` to the actual
implementation in `gmvd` and adjust tests and documentation accordingly.

The previous implementation refused a number of combinations which are
are accepted by the `gvmd` from GVM-10. Most notably, the
`resource_type` is rarely required, in contrast to the `create_tag`
command. Also, sending *only* the `resource_type` is acceptable for
modifying the type of resource a tag is intended for.
@wiegandm wiegandm requested a review from bjoernricks May 7, 2019 11:34
@codecov
Copy link

codecov bot commented May 7, 2019

Codecov Report

Merging #127 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #127      +/-   ##
=========================================
- Coverage    96.4%   96.4%   -0.01%     
=========================================
  Files          10      10              
  Lines        2479    2478       -1     
=========================================
- Hits         2390    2389       -1     
  Misses         89      89
Impacted Files Coverage Δ
gvm/protocols/gmpv8.py 99.36% <100%> (-0.01%) ⬇️

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 a6e713a...960c932. Read the comment docs.

@codecov
Copy link

codecov bot commented May 7, 2019

Codecov Report

Merging #127 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #127      +/-   ##
=========================================
- Coverage    96.4%   96.4%   -0.01%     
=========================================
  Files          10      10              
  Lines        2479    2478       -1     
=========================================
- Hits         2390    2389       -1     
  Misses         89      89
Impacted Files Coverage Δ
gvm/protocols/gmpv8.py 99.36% <100%> (-0.01%) ⬇️

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 a6e713a...b537a71. Read the comment docs.

@wiegandm wiegandm marked this pull request as ready for review May 7, 2019 11:37
@wiegandm wiegandm requested a review from a team May 7, 2019 11:37
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.

Just some formatting changes should be updated caused by black reformatting.

tests/protocols/gmpv8/test_modify_tag.py Outdated Show resolved Hide resolved
tests/protocols/gmpv8/test_modify_tag.py Outdated Show resolved Hide resolved
tests/protocols/gmpv8/test_modify_tag.py Outdated Show resolved Hide resolved
tests/protocols/gmpv8/test_modify_tag.py Outdated Show resolved Hide resolved
tests/protocols/gmpv8/test_modify_tag.py Outdated Show resolved Hide resolved
bjoernricks and others added 5 commits May 7, 2019 14:45
Co-Authored-By: wiegandm <wiegandm@users.noreply.github.com>
Co-Authored-By: wiegandm <wiegandm@users.noreply.github.com>
Co-Authored-By: wiegandm <wiegandm@users.noreply.github.com>
Co-Authored-By: wiegandm <wiegandm@users.noreply.github.com>
Co-Authored-By: wiegandm <wiegandm@users.noreply.github.com>
@wiegandm wiegandm requested a review from bjoernricks May 7, 2019 12:47
@bjoernricks bjoernricks merged commit 181982d into greenbone:master May 7, 2019
@wiegandm wiegandm deleted the modify_tag_gmp8 branch May 8, 2019 06:08
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