You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Some CI do not ship with help included, and the secure devops pipeline also does not allow internet access, so we must update help from our local repository source.
197
197
198
-
# Only commands in Microsoft.PowerShell.Utility can be tested for help so as to minimize the repository storage.
198
+
# Only commands in Microsoft.PowerShell.Archive can be tested for help so as to minimize the repository storage.
199
199
# This requires admin rights for PS5.1
200
200
201
-
#NOTE: You can run this task once as admin or update help separately, and continue to run tests as non-admin, if for instance developing locally. Also this help is for PS5.1 so tests should be written for that even if PS7. For instance, don't write tests for new Invoke-RestMethod parameters.
201
+
#NOTE: You can run this task once as admin or update help separately, and continue to run tests as non-admin, if for instance developing locally.
202
202
203
203
$installHelpScript= {
204
204
param(
@@ -211,8 +211,8 @@ Task SetupHelpForTests {
211
211
$helpPath=Join-Path$helpPath'7'
212
212
}
213
213
214
-
if ((Get-HelpInvoke-RestMethod).remarks -notlike'Get-Help cannot find the Help files*') {
215
-
Write-Host-Fore Green "PowerShell $PSVersionUtility Help is already installed"
214
+
if ((Get-HelpExpand-Archive).remarks -notlike'Get-Help cannot find the Help files*') {
215
+
Write-Host-Fore Green "PowerShell $PSVersionArchive Help is already installed"
216
216
return
217
217
}
218
218
@@ -227,10 +227,10 @@ Task SetupHelpForTests {
227
227
}
228
228
}
229
229
230
-
Write-Host-Fore Magenta "Powershell $PSVersionUtility Help is not installed, installing from $helpPath"
230
+
Write-Host-Fore Magenta "Powershell $PSVersionArchive Help is not installed, installing from $helpPath"
0 commit comments