Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Implementation for the Ticket API. While the issue itself was closed as "not enough interest," our group has been using the attached tickets.py for a couple of years now. Today I took the time to apply some updates, develops some tests, and bring our use-case to the community. Ultimately my goal is upstream integration so we can stop cherry-picking commits into new versions.
There are a couple of components I could use some help with too.
I don't do much development nowadays and I've likely done
Fixes #23
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Tested by:
pytest --disable-vcr --cov=tenable.sc tests/sc/test_tickets.pyQuestion: The original Implementor has a comment pointing out that tickets need to be set to 'Resolved' to be eventually purged. I've opted to 'finalize' them by marking them 'Closed' per Ticket PATCH documentation. Which option is "most" correct? Or if its 6 in one hand and 7 in the other, that's fine too.
Test Configuration:
Version: 6.4.5
Server Build ID: 20240829180641
Checklist: