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

Added a feature to allow get and set of license from Tenable SC #845

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mark-carey-sap
Copy link

Added a feature to allow get and set of license from/to Tenable SC objects. This is used for automation since we install and rehydrate our environments from source periodically.

Description

This is a simple patch to expose licensing functionality for automation. It adds a license API object to the main Tenable SC object and provides a simple get/set method to allow the examination and setting of licenses in a non-GUI way.

Fixes # (issue)

Type of change

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

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

  • Get test functions
  • Set test of unlicensed product functions
  • Set test of licensed product replaces existing license functions

Test Configuration:

  • Python Version(s) Tested: 3.11.10
  • Tenable.sc version (if necessary): SecurityCenter-6.1.1-19.el8.x86_64

Checklist:

  • [ X ] My code follows the style guidelines of this project
  • [ X ] I have performed a self-review of my own code
  • [ X ] I have commented my code, particularly in hard-to-understand areas
  • [ X ] I have made corresponding changes to the documentation
  • I'm not sure where I need to change or add documentation. I've added what I believe to be the correct comments in the code. Please provide guidance if I've done this wrong. Thank you! 😄
  • [ X ] My changes generate no new warnings
  • [ X ] I have added tests that prove my fix is effective or that my feature works
  • [ X ] New and existing unit tests pass locally with my changes
  • [ X ] Any dependent changes have been merged and published in downstream modules

… Center objects. This is used for automation since we install and rehydrate our environments from source periodically.
@mark-carey-sap mark-carey-sap requested a review from a team as a code owner November 13, 2024 16:40
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.

1 participant