-
Notifications
You must be signed in to change notification settings - Fork 4
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
Develop WinRM Extension #112
Comments
CherfaElyes
added a commit
that referenced
this issue
May 7, 2024
* Created WinRm Extension * Created WinRm Configuration
CherfaElyes
added a commit
that referenced
this issue
May 7, 2024
* Corrected Javadoc * Refactored WinRm Extension
CherfaElyes
added a commit
that referenced
this issue
May 15, 2024
* Completed WinRm extension migration * Testing in on the engine & the agent
CherfaElyes
added a commit
that referenced
this issue
May 15, 2024
* Added unit tests * Tested the WinRm protocol using the engine & the agent * Cleaned the source code on the Metricshub-engine * Updated WinRm pom.xml to add transformers and exclude some artifacts
CherfaElyes
added a commit
that referenced
this issue
May 15, 2024
* Added unit tests * Tested the WinRm protocol using the engine & the agent * Cleaned the source code on the Metricshub-engine * Updated WinRm pom.xml to add transformers and exclude some artifacts * Finalize extension system updates * Remove all deprecated code
CherfaElyes
added a commit
that referenced
this issue
May 16, 2024
* Make last updates * Reduce Jacoco coverage
CherfaElyes
added a commit
that referenced
this issue
May 16, 2024
* Make last updates * Reduce Jacoco coverage
CherfaElyes
added a commit
that referenced
this issue
May 16, 2024
* Added unit test on metricshub-win-common-extension * Increased tests coverage on metricshub-win-common-extension
NassimBtk
added a commit
that referenced
this issue
May 16, 2024
…-winrm-extension Issue #112: Develop WinRm Extension
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Check List
Agent
WinRmConfiguration
class which is located in themetricshub-wminrm-extension
. And adapt the ConfigHelper code so that we callIConfiguration#validateConfiguration
(winrmConfiguration) to validate the content of the WinRm configuration.Map<Class<? extends IConfiguration>, IConfiguration> protocolConfigurations
map which is built inConfigHelper#buildHostConfiguration
.WinRmConfigCli
class.WinRmConfigCli.toProtocol
to call theextensionManager
instance responsible of building the right IConfiguration for WinRm protocol.ConfigHelperTest#testValidateWinRmInfo()
because the validation will be moved to the WinRmConfiguration class in themetricshub-winrm-extension
.Engine
org.sentrysoftware:winrm
&org.sentrysoftware:wmi
dependencies frommetricshub-engine
POM.ClientsExecutor.executeWinRm
code to themetricshub-winrm-extension
. Make sure to remove the call from theClientsExecutor.executeWql
method and adapt the caller (SourceProcessor CriterionProcessor) to invoke the extensionManager correctly.WinRmConfiguration.class
mapping from theHostConfiguration#CONFIGURATION_TO_SOURCES_MAP
map.metricshub-winrm-extension
module.ProtocolHealthCheckStrategy#checkWinRmHealth
to WinRmExtension located at themetricshub-winrm-extension
module. Make sure to remove the unused constants and methods.CriterionProcessor#CriterionTestResult process(@SpanAttribute("criterion.definition") WmiCriterion WmiCriterion)
to the appropriate class in themetricshub-winrm-extension
module and call the extensionManager in thisprocess
method to execute criterion.SourceProcessor#process(@SpanAttribute("source.definition") final WmiSource wmiSource)
to the appropriate class in themetricshub-winrm-extension
module and call theextensionManager
in thisprocess
method to execute the source. You will need to factorize the embedded files management, but this should be accessible since the Wmi extension depends on the OsCommand extensions. The other solution consists in creating a common module where both WinRm and OsCommand extensions depend on.WinRmConfigurationTest
class to the extension unit tests.Extension
/metricshub-winrm-extension/src/main/resources/META-INF/services/org.sentrysoftware.metricshub.engine.extension.IProtocolExtension
file so that the ServiceLoader loads the extension implementation correctly at runtime.org.sentrysoftware:winrm
andorg.sentrysoftware:metricshub-winrm-extension
)Packaging Windows and Linux
metricshub-winrm-extension
as dependency.maven-dependency-plugin
, execution-id:unpack-extensions
and add theartifactItem
defining themetricshub-winrm-extension
.The text was updated successfully, but these errors were encountered: