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

Support GMP version 22.6 #1196

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Support GMP version 22.6 #1196

wants to merge 6 commits into from

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Jan 27, 2025

What

Support GMP version 22.6

Why

Implement support for GMP version 22.6 which adds audit reports, report configs and changes get feeds.

References

https://jira.greenbone.net/browse/GEA-868
Closed #1195

Checklist

  • Tests

Also tested some report config request against gvmd manually.

Copy link

github-actions bot commented Jan 27, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA c498528.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA d3fd59e.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link

github-actions bot commented Jan 27, 2025

Conventional Commits Report

Type Number
Added 2

🚀 Conventional commits found.

Copy link

codecov bot commented Jan 27, 2025

Codecov Report

Attention: Patch coverage is 99.76247% with 1 line in your changes missing coverage. Please review.

Project coverage is 97.78%. Comparing base (22e1951) to head (c498528).

Files with missing lines Patch % Lines
gvm/protocols/gmp/_gmp226.py 97.72% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1196      +/-   ##
==========================================
+ Coverage   97.60%   97.78%   +0.18%     
==========================================
  Files          65       71       +6     
  Lines        4544     4962     +418     
  Branches      825      894      +69     
==========================================
+ Hits         4435     4852     +417     
- Misses         74       75       +1     
  Partials       35       35              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Implement support for GMP version 22.6 which adds audit reports, report
configs and changes get feeds.
The version is already encoded into the module name. For implementing a
new protocol version it's easier when the version in not included in all
test class names.
Not every XML element will have a value/text. Therefore it should be
possible to set it optionally.
Extend GMP classed to support all report config commands.
@bjoernricks bjoernricks marked this pull request as ready for review January 28, 2025 14:50
@bjoernricks bjoernricks requested a review from a team as a code owner January 28, 2025 14:50
@bjoernricks bjoernricks enabled auto-merge (rebase) January 28, 2025 15:08
b"</create_report_config>",
)

self.gmp.clone_report_config(ReportFormatType.PDF)
Copy link
Member

Choose a reason for hiding this comment

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

Hello Björn, I am not sure if this test really makes sense, since there could be more than one report config for a report format. But I am not sure, what do you think?

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.

GMP Version 22.6 not supported
2 participants