Expose TestUnit method to COM API#5520
Merged
Merged
Conversation
Contributor
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
yao-msft
approved these changes
Jun 11, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces a new feature to test configuration units in the
ConfigurationProcessorclass. The most important changes include the addition of synchronous and asynchronous methods for testing configuration units, along with their implementation and interface definitions.Additions to
ConfigurationProcessorfunctionality:TestUnitandTestUnitAsyncmethods to theConfigurationProcessorclass for testing configuration units. These methods validate the state of the configuration processor and delegate the logic to the newTestUnitImplmethod. (src/Microsoft.Management.Configuration/ConfigurationProcessor.cpp, src/Microsoft.Management.Configuration/ConfigurationProcessor.cppR1068-R1132)TestUnitImplto handle the core logic for testing configuration units, including cancellation support, error handling, and telemetry logging. (src/Microsoft.Management.Configuration/ConfigurationProcessor.cpp, src/Microsoft.Management.Configuration/ConfigurationProcessor.cppR1068-R1132)Updates to class declarations:
TestUnitandTestUnitAsyncmethods in theConfigurationProcessorclass header file. (src/Microsoft.Management.Configuration/ConfigurationProcessor.h, src/Microsoft.Management.Configuration/ConfigurationProcessor.hR96-R98)TestUnitImplhelper method in theConfigurationProcessorclass header file. (src/Microsoft.Management.Configuration/ConfigurationProcessor.h, src/Microsoft.Management.Configuration/ConfigurationProcessor.hR142-R143)Interface updates:
Microsoft.Management.Configurationinterface definition to includeTestUnitandTestUnitAsyncmethods, enabling the new functionality to be exposed through the interface. (src/Microsoft.Management.Configuration/Microsoft.Management.Configuration.idl, src/Microsoft.Management.Configuration/Microsoft.Management.Configuration.idlR1031-R1034)Microsoft Reviewers: Open in CodeFlow