-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4a64f1
commit 45c8fac
Showing
3 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Configures local test source and local PowerShell repository. | ||
parameters: | ||
- name: source | ||
type: string | ||
- name: buildOutDir | ||
type: string | ||
|
||
steps: | ||
- task: DownloadSecureFile@1 | ||
name: AppInstallerTest | ||
displayName: 'Download Source Package Certificate' | ||
inputs: | ||
secureFile: 'AppInstallerTest.pfx' | ||
|
||
- task: DownloadSecureFile@1 | ||
name: HTTPSDevCert | ||
displayName: 'Download Kestrel Certificate' | ||
inputs: | ||
secureFile: 'HTTPSDevCertV2.pfx' | ||
|
||
- task: PowerShell@2 | ||
displayName: Install Root Certificate | ||
inputs: | ||
filePath: '${{ parameters.source }}\src\LocalhostWebServer\InstallDevCert.ps1' | ||
arguments: '-pfxpath $(HTTPSDevCert.secureFilePath) -password microsoft' | ||
|
||
- task: PowerShell@2 | ||
displayName: Launch LocalhostWebServer | ||
inputs: | ||
filePath: '${{ parameters.source }}\src\LocalhostWebServer\Run-LocalhostWebServer.ps1' | ||
arguments: '-BuildRoot ${{ parameters.buildOutDir }}\LocalhostWebServer -StaticFileRoot $(Agent.TempDirectory)\TestLocalIndex -CertPath $(HTTPSDevCert.secureFilePath) -CertPassword microsoft -OutCertFile $(Agent.TempDirectory)\servercert.cer -LocalSourceJson ${{ parameters.source }}\src\AppInstallerCLIE2ETests\TestData\localsource.json' | ||
|
||
- task: PowerShell@2 | ||
displayName: Setup Local PS Repository | ||
inputs: | ||
filePath: '${{ parameters.source }}\src\AppInstallerCLIE2ETests\TestData\Configuration\Init-TestRepository.ps1' | ||
arguments: '-Force' | ||
pwsh: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters