-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update health tests to execute locally per role (#356)
# Description Summary of changes: This pull request includes several updates and improvements to the SDN diagnostics scripts. The changes primarily focus on adding new diagnostic commands, updating configurations, and enhancing existing functions. ### New Diagnostic Commands Added: * Added new commands such as `Debug-SdnGateway`, `Debug-SdnLoadBalancerMux`, `Debug-SdnNetworkController`, and `Debug-SdnServer` to the `src/SdnDiagnostics.psd1` file. * Added additional test commands like `Test-SdnClusterServiceState`, `Test-SdnDiagnosticsCleanupTaskEnabled`, and more to the `src/SdnDiagnostics.psd1` file. ### Configuration Updates: * Updated the `src/modules/SdnDiag.Health.Config.psd1` file to include new health validation tests such as `Test-SdnDiagnosticsCleanupTaskEnabled`, `Test-SdnNetworkControllerApiNameResolution`, and others. [[1]](diffhunk://#diff-4f2fe3aa484c1dfed0c40d4df3c9bfd2754ed18ef9c743c19b2ce003db10af2bL6-R61) [[2]](diffhunk://#diff-4f2fe3aa484c1dfed0c40d4df3c9bfd2754ed18ef9c743c19b2ce003db10af2bL46-R96) * Added new health fault configurations to the `src/modules/SdnDiag.Health.Config.psd1` file. ### Function Enhancements: * Modified the `Repair-SdnDiagnosticsScheduledTask` function to accept a mandatory `TaskName` parameter instead of using a switch statement to determine the task name. [[1]](diffhunk://#diff-9ab71f66f6e21719dc9527f01ea738656003bbbe631f4f1bd85ab1ab8a746f24L1910-R1914) [[2]](diffhunk://#diff-9ab71f66f6e21719dc9527f01ea738656003bbbe631f4f1bd85ab1ab8a746f24L1928-R1937) * Simplified the `Confirm-IsCertSelfSigned` function by removing the type constraint on the `Certificate` parameter. ### New Classes and Functions: * Introduced new classes `MuxConfig` and `MuxStatistics` in the `src/modules/SdnDiag.LoadBalancerMux.psm1` file to handle MUX configuration and statistics. * Added new functions `Get-SdnMuxConfig` and `Get-SdnMuxStats` to retrieve MUX configuration and statistics. # Change type - [ ] Bug fix (non-breaking change) - [ ] Code style update (formatting, local variables) - [x] New Feature (non-breaking change that adds new functionality without impacting existing) - [x] Breaking change (fix or feature that may cause functionality impact) - [ ] Other # Checklist: - [x] My code follows the style and contribution guidelines of this project. - [x] I have tested and validated my code changes. --------- Co-authored-by: Saaransh Bagga (from Dev Box) <[email protected]>
- Loading branch information
Showing
11 changed files
with
2,604 additions
and
1,587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.