Skip to content

Commit 321d786

Browse files
committed
Add integration test stage for DSCv3
1 parent fc2b89f commit 321d786

2 files changed

Lines changed: 65 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7070
- Added new instructions for GitHub Copilot that might assist when developing
7171
command and private functions in the module. More instructions should be
7272
added as needed to help generated code and tests.
73+
- Add integration test in DSCv3.
7374

7475
### Changed
7576

azure-pipelines.yml

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

768+
- stage: Integration_Test_DSCv3_Resources_PowerBIReportServer
769+
displayName: 'Integration Test DSCv3 Resources - Power BI Report Server'
770+
dependsOn: Quality_Test_and_Unit_Test
771+
jobs:
772+
- job: Test_Integration
773+
displayName: 'Integration'
774+
strategy:
775+
matrix:
776+
PowerBI_WIN2019:
777+
JOB_VMIMAGE: 'windows-2019'
778+
TEST_CONFIGURATION: 'Integration_PowerBI'
779+
PowerBI_WIN2022:
780+
JOB_VMIMAGE: 'windows-2022'
781+
TEST_CONFIGURATION: 'Integration_PowerBI'
782+
PowerBI_WIN2025:
783+
JOB_VMIMAGE: 'windows-2025'
784+
TEST_CONFIGURATION: 'Integration_PowerBI'
785+
pool:
786+
vmImage: $(JOB_VMIMAGE)
787+
timeoutInMinutes: 0
788+
steps:
789+
- task: DownloadPipelineArtifact@2
790+
displayName: 'Download Build Artifact'
791+
inputs:
792+
buildType: 'current'
793+
artifactName: $(buildArtifactName)
794+
targetPath: '$(Build.SourcesDirectory)/$(buildFolderName)'
795+
- powershell: |
796+
Import-Module -Name ./tests/TestHelpers/CommonTestHelper.psm1
797+
Remove-PowerShellModuleFromCI -Name @('SqlServer', 'SQLPS')
798+
Remove-Module -Name CommonTestHelper
799+
name: cleanCIWorker
800+
displayName: 'Clean CI worker'
801+
- pwsh: |
802+
Install-Module -Name 'PSDSC'
803+
Install-DscExe -Force -Verbose
804+
name: installDSCv3
805+
displayName: 'Install DSCv3'
806+
- pwsh: |
807+
dsc --version
808+
dsc resource list
809+
dsc resource list --adapter Microsoft.Windows/WindowsPowerShell
810+
name: getDSCv3Information
811+
displayName: 'Get DSCv3 Information'
812+
- powershell: |
813+
./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterTag $(TEST_CONFIGURATION) -PesterPath @(
814+
# Run the integration tests in a specific group order.
815+
# Group 1
816+
#'tests/Integration/Resources/DSC_SqlSetup.Integration.Tests.ps1'
817+
# Group 2
818+
#'tests/Integration/Resources/DSC_SqlRSSetup.Integration.Tests.ps1'
819+
# Group 3
820+
#'tests/Integration/Resources/DSC_SqlRS.Integration.Tests.ps1'
821+
)
822+
name: test
823+
displayName: 'Run Reporting Services Integration Test'
824+
- task: PublishTestResults@2
825+
displayName: 'Publish Test Results'
826+
condition: succeededOrFailed()
827+
inputs:
828+
testResultsFormat: 'NUnit'
829+
testResultsFiles: '$(buildFolderName)/$(testResultFolderName)/NUnit*.xml'
830+
testRunTitle: 'Integration RS ($(TEST_CONFIGURATION) / $(JOB_VMIMAGE))'
831+
768832
- stage: Integration_Test_Resources_ReportingServices_dbatools
769833
displayName: 'Integration Test Resources - Reporting Services (dbatools)'
770834
dependsOn: Integration_Test_Resources_SqlServer

0 commit comments

Comments
 (0)