-
Notifications
You must be signed in to change notification settings - Fork 13
Resource validation for azure events #130
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
Resource validation for azure events #130
Conversation
…ired parameters and update warning messages for missing resources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request introduces comprehensive validation for required cluster resources, particularly adding support for the new azureevents
resource type. The changes implement systematic checking of required resources and generate appropriate warnings when resources are missing from the cluster configuration.
- Adds new
_check_required_resources
method to validate presence of required cluster resources - Integrates the new
azureevents
resource into the validation framework for both SUSE and REDHAT systems - Expands test coverage to validate the new resource checking functionality
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
src/module_utils/get_pcmk_properties.py | Implements core _check_required_resources method with logging and warning generation |
src/modules/get_pcmk_properties_db.py | Adds azureevents resource category and integrates required resource checking |
src/modules/get_pcmk_properties_scs.py | Integrates required resource checking into SCS validation flow |
src/roles/ha_db_hana/tasks/files/constants.yaml | Defines azureevents resource configuration for both SUSE and REDHAT OS types |
tests/module_utils/get_pcmk_properties_test.py | Adds comprehensive tests for required resource validation scenarios |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
…to improve logging and message clarity
af35d6f
…rces in HA cluster validator
…ability in report
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
This pull request introduces enhanced validation for required cluster resources, particularly focusing on the new
azureevents
resource. It ensures that required resources are checked and appropriate warnings are generated when any are missing. The changes also expand test coverage for resource validation and improve robustness in command execution mocks.Resource validation enhancements:
_check_required_resources
method toget_pcmk_properties.py
to check for required resources defined inRESOURCE_DEFAULTS
and append warnings to the result message if any are missing._check_required_resources
into the resource validation flow for both HANA (get_pcmk_properties_db.py
) and SCS (get_pcmk_properties_scs.py
) modules, ensuring required resources are checked during validation. [1] [2]Support for new resource type:
azureevents
as a required resource in theRESOURCE_DEFAULTS
section ofconstants.yaml
for both SUSE and REDHAT OS types, including its meta attributes and operations. [1] [2]RESOURCE_CATEGORIES
inget_pcmk_properties_db.py
to include theazureevents
resource type.Testing improvements:
get_pcmk_properties_test.py
to cover scenarios where required resources are missing, present, or optional, ensuring the new validation logic works as expected.Logging improvements:
logging
module inget_pcmk_properties.py
to support warning messages when required resources are missing.