Skip to content

Commit 891c09b

Browse files
committed
Add Integration Test stage for DSCv3 Resources - DEBUG
1 parent e42f26a commit 891c09b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

azure-pipelines.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,50 @@ stages:
765765
testResultsFiles: '$(buildFolderName)/$(testResultFolderName)/NUnit*.xml'
766766
testRunTitle: 'Integration RS ($(TEST_CONFIGURATION) / $(JOB_VMIMAGE))'
767767

768+
- stage: Integration_Test_DSCv3_DEBUG
769+
displayName: 'Integration Test DSCv3 Resources - DEBUG'
770+
dependsOn: Build
771+
jobs:
772+
- job: Test_Integration
773+
displayName: 'Integration'
774+
strategy:
775+
matrix:
776+
PowerBI_WIN2019:
777+
JOB_VMIMAGE: 'windows-2019'
778+
PowerBI_WIN2022:
779+
JOB_VMIMAGE: 'windows-2022'
780+
PowerBI_WIN2025:
781+
JOB_VMIMAGE: 'windows-2025'
782+
pool:
783+
vmImage: $(JOB_VMIMAGE)
784+
timeoutInMinutes: 0
785+
steps:
786+
- task: DownloadPipelineArtifact@2
787+
displayName: 'Download Build Artifact'
788+
inputs:
789+
buildType: 'current'
790+
artifactName: $(buildArtifactName)
791+
targetPath: '$(Build.SourcesDirectory)/$(buildFolderName)'
792+
- task: PowerShell@2
793+
name: configureWinRM
794+
displayName: 'Configure WinRM'
795+
inputs:
796+
targetType: 'inline'
797+
script: 'winrm quickconfig -quiet'
798+
pwsh: false
799+
- pwsh: |
800+
Install-PSResource -Name 'PSDSC' -Repository 'PSGallery' -TrustRepository -Quiet -Confirm:$false
801+
Install-DscExe -IncludePrerelease -Force -Verbose
802+
name: installDSCv3
803+
displayName: 'Install DSCv3'
804+
- pwsh: |
805+
# Install-DscExe installed in the path $env:LOCALAPPDATA\dsc
806+
$env:PATH += '{0}{1}' -f [System.IO.Path]::PathSeparator, (Join-Path -Path $env:LOCALAPPDATA -ChildPath 'dsc')
807+
./build.ps -Task noop
808+
Invoke-Pester -Path 'tests/Integration/Resources/DSCv3_DebugDscEngine.Integration.Tests.ps1' -Output Detailed
809+
name: test
810+
displayName: 'Run Reporting Services Integration Test'
811+
768812
- stage: Integration_Test_DSCv3_Resources_PowerBIReportServer
769813
displayName: 'Integration Test DSCv3 Resources - Power BI Report Server'
770814
#dependsOn: Quality_Test_and_Unit_Test

0 commit comments

Comments
 (0)