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

Adds bulk WAS export endpoints, schema and related tests. #849

Conversation

Mangu-Singh-Rajpurohit
Copy link

Description

  • This PR includes support for following items:
    • Adds support for submitting v2 asset export endpoint. (/assets/v2/export)
    • Adds support for endpoints, managing bulk WAS findings export.
      • Export submission: /was/v1/export/vulns
      • Export status query: /was/v1/export/vulns/{export_uuid}/status
      • Export chunk download: /was/v1/export/vulns/{export_uuid}/chunks/{chunk_id}
      • Export cancel: /was/v1/export/vulns/{export_uuid}/cancel
      • List jobs: /was/v1/export/vulns/status

Type of change

[ X ] New feature (non-breaking change which adds functionality)

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Unit tests have been added for each of newly added endpoints and their respective methods.

Test Configuration:

  • Python Version(s) Tested: 3.13
  • Tenable.sc version (if necessary): N/A

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@SteveMcGrath SteveMcGrath mentioned this pull request Nov 21, 2024
13 tasks
@Mangu-Singh-Rajpurohit Mangu-Singh-Rajpurohit marked this pull request as ready for review November 21, 2024 17:32
@Mangu-Singh-Rajpurohit Mangu-Singh-Rajpurohit requested a review from a team as a code owner November 21, 2024 17:32
@SteveMcGrath
Copy link
Contributor

Refer to #850

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