mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Remove MSI from publishing pipeline (#27213)
Co-authored-by: Justin Chung <chungjustin@microsoft.com> Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
This commit is contained in:
24 files changed
+53
-1746
No files matched your search
@@ -1,39 +0,0 @@
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
Describe "Windows Installer" -Tags "Scenario" {
|
||||
|
||||
BeforeAll {
|
||||
$skipTest = -not $IsWindows
|
||||
$preRequisitesLink = 'https://aka.ms/pscore6-prereq'
|
||||
$linkCheckTestCases = @(
|
||||
@{ Name = "Universal C Runtime"; Url = $preRequisitesLink }
|
||||
@{ Name = "WMF 4.0"; Url = "https://www.microsoft.com/download/details.aspx?id=40855" }
|
||||
@{ Name = "WMF 5.0"; Url = "https://www.microsoft.com/download/details.aspx?id=50395" }
|
||||
@{ Name = "WMF 5.1"; Url = "https://www.microsoft.com/download/details.aspx?id=54616" }
|
||||
)
|
||||
}
|
||||
|
||||
It "WiX (Windows Installer XML) file contains pre-requisites link $preRequisitesLink" -Skip:$skipTest {
|
||||
$wixProductFile = Join-Path -Path $PSScriptRoot -ChildPath "..\..\..\assets\wix\Product.wxs"
|
||||
(Get-Content $wixProductFile -Raw).Contains($preRequisitesLink) | Should -BeTrue
|
||||
}
|
||||
|
||||
## Running 'Invoke-WebRequest' with WMF download URLs has been failing intermittently,
|
||||
## because sometimes the URLs lead to a 'this download is no longer available' page.
|
||||
## We use a retry logic here. Retry for 5 times with 1 second interval.
|
||||
# It "Pre-Requisistes link for '<Name>' is reachable: <url>" -TestCases $linkCheckTestCases -Skip:$skipTest {
|
||||
It "Pre-Requisistes link for '<Name>' is reachable: <url>" -TestCases $linkCheckTestCases -Pending {
|
||||
param ($Url)
|
||||
|
||||
foreach ($i in 1..5) {
|
||||
try {
|
||||
$result = Invoke-WebRequest $Url -UseBasicParsing
|
||||
break;
|
||||
} catch {
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
}
|
||||
|
||||
$result | Should -Not -Be $null
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user