Enable the pending Save-Help tests in CI (#6289)

Some CI level 'Save-Help' tests were disabled in #2806 because HelpInfo URIs for powershell modules were broken (tracked by #2807). However, they were forgotten to be enabled when the URI issue was fixed. This PR reenables those tests.
This commit is contained in:
Dongbo Wang
2018-03-02 13:17:05 -08:00
committed by GitHub
parent 56b394d33b
commit b30a614e5a
@@ -168,8 +168,7 @@ function RunUpdateHelpTests
{
param (
[string]$tag = "CI",
[switch]$useSourcePath,
[switch]$Pending
[switch]$useSourcePath
)
foreach ($moduleName in $modulesInBox)
@@ -177,7 +176,7 @@ function RunUpdateHelpTests
if ($powershellCoreModules -contains $moduleName)
{
It "Validate Update-Help for module '$moduleName'" -Pending:$Pending {
It "Validate Update-Help for module '$moduleName'" {
# If the help file is already installed, delete it.
Get-ChildItem $testCases[$moduleName].HelpInstallationPath -Include @("*help.xml") -Recurse -ea SilentlyContinue |
@@ -220,8 +219,7 @@ function RunUpdateHelpTests
function RunSaveHelpTests
{
param (
[string]$tag = "CI",
[switch]$Pending
[string]$tag = "CI"
)
foreach ($moduleName in $modulesInBox)
@@ -233,7 +231,7 @@ function RunSaveHelpTests
$saveHelpFolder = Join-Path $TestDrive (Get-Random).ToString()
New-Item $saveHelpFolder -Force -ItemType Directory
It "Validate Save-Help for the '$moduleName' module" -Pending:$Pending {
It "Validate Save-Help for the '$moduleName' module" {
if ((Get-UICulture).Name -ne "en-Us")
{
@@ -285,7 +283,7 @@ Describe "Validate Update-Help from the Web for one PowerShell Core module." -Ta
$ProgressPreference = $SavedProgressPreference
}
RunUpdateHelpTests -tag "CI" -Pending
RunUpdateHelpTests -tag "CI"
}
Describe "Validate Update-Help from the Web for all PowerShell Core modules." -Tags @('Feature', 'RequireAdminOnWindows', 'RequireSudoOnUnix') {
@@ -332,7 +330,7 @@ Describe "Validate 'Save-Help -DestinationPath for one PowerShell Core modules."
AfterAll {
$ProgressPreference = $SavedProgressPreference
}
RunSaveHelpTests -tag "CI" -Pending
RunSaveHelpTests -tag "CI"
}
Describe "Validate 'Save-Help -DestinationPath for all PowerShell Core modules." -Tags @('Feature', 'RequireAdminOnWindows') {