Since DCOM is not supported in corefx there was a great deal of dead code in the computer cmdlets. This PR removes all vestiges of DCOM support from: - Rename-Computer - Restart-Computer - Stop-Computer removing about 4500 lines of dead code. Also, tests are updated to provide more complete coverage. I also removed test-connection completely to make way for @iSazonov upcoming PR to improve coverage in tests, I created some test hook code which will test the cmdlet code without actually calling the WMI method to restart/rename/stop the system
21 lines
549 B
PowerShell
21 lines
549 B
PowerShell
#
|
|
# Module manifest for module 'HelpersCommon'
|
|
#
|
|
|
|
@{
|
|
|
|
RootModule = 'HelpersCommon.psm1'
|
|
|
|
ModuleVersion = '1.0'
|
|
|
|
GUID = 'cc1c8e94-51d1-4bc1-b508-62bc09f02f54'
|
|
|
|
CompanyName = 'Microsoft Corporation'
|
|
|
|
Copyright = 'Copyright (c) Microsoft Corporation. All rights reserved.'
|
|
|
|
Description = 'Temporary module contains functions for using in tests'
|
|
|
|
FunctionsToExport = 'Wait-UntilTrue', 'Test-IsElevated', 'ShouldBeErrorId', 'Wait-FileToBePresent', 'Get-RandomFileName', 'Enable-Testhook', 'Disable-Testhook', 'Set-TesthookResult', 'Test-TesthookIsSet'
|
|
}
|