Skip to content

Commit 8fc3e4e

Browse files
committed
Remove DEBUG stage for DSCv3 integration tests to streamline pipeline configuration
1 parent a331093 commit 8fc3e4e

File tree

1 file changed

+0
-71
lines changed

1 file changed

+0
-71
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -710,77 +710,6 @@ stages:
710710
testResultsFiles: '$(buildFolderName)/$(testResultFolderName)/NUnit*.xml'
711711
testRunTitle: 'Integration RS ($(TEST_CONFIGURATION) / $(JOB_VMIMAGE))'
712712

713-
- stage: Integration_Test_DSCv3_DEBUG
714-
displayName: 'Integration Test DSCv3 Resources - DEBUG'
715-
dependsOn: Build
716-
jobs:
717-
- job: Test_Integration
718-
displayName: 'Integration'
719-
strategy:
720-
matrix:
721-
PowerBI_WIN2019:
722-
JOB_VMIMAGE: 'windows-2019'
723-
PowerBI_WIN2022:
724-
JOB_VMIMAGE: 'windows-2022'
725-
PowerBI_WIN2025:
726-
JOB_VMIMAGE: 'windows-2025'
727-
pool:
728-
vmImage: $(JOB_VMIMAGE)
729-
timeoutInMinutes: 0
730-
steps:
731-
- task: DownloadPipelineArtifact@2
732-
displayName: 'Download Build Artifact'
733-
inputs:
734-
buildType: 'current'
735-
artifactName: $(buildArtifactName)
736-
targetPath: '$(Build.SourcesDirectory)/$(buildFolderName)'
737-
- task: PowerShell@2
738-
name: configureWinRM
739-
displayName: 'Configure WinRM'
740-
inputs:
741-
targetType: 'inline'
742-
script: 'winrm quickconfig -quiet'
743-
pwsh: false
744-
- pwsh: |
745-
Install-PSResource -Name 'PSDSC' -Repository 'PSGallery' -TrustRepository -Quiet -Confirm:$false
746-
Install-DscExe -IncludePrerelease -Force -Verbose
747-
name: installDSCv3
748-
displayName: 'Install DSCv3'
749-
- pwsh: |
750-
# Install-DscExe installs in the path $env:LOCALAPPDATA\dsc
751-
$env:PATH += '{0}{1}' -f [System.IO.Path]::PathSeparator, (Join-Path -Path $env:LOCALAPPDATA -ChildPath 'dsc')
752-
# Make the built module available to the current session.
753-
./build.ps1 -Tasks noop
754-
Get-Module -Name SqlServerDsc -ListAvailable
755-
# Output DSCv3 version
756-
dsc --version
757-
# Get the list of available resources.
758-
'Native resources:'
759-
dsc resource list
760-
'Resources using adapter Microsoft.Windows/WindowsPowerShell:'
761-
dsc resource list --adapter Microsoft.Windows/WindowsPowerShell
762-
763-
Get-ChildItem -Path (Join-Path -Path $env:LOCALAPPDATA -ChildPath 'dsc') -Recurse -Filter '*.json'
764-
$cacheFile = Join-Path -Path $env:LOCALAPPDATA -ChildPath 'dsc/WindowsPSAdapterCache.json'
765-
$getConfig = Get-Content -Path $cacheFile -Raw | ConvertFrom-Json
766-
Write-Verbose -Message "WindowsPSAdapterCache.json content:`n $($getConfig | ConvertTo-Json -Depth 10)" -Verbose
767-
name: getDSCv3AvailableResources
768-
displayName: 'Get DSCv3 Available Resources'
769-
- pwsh: |
770-
# Install-DscExe installed in the path $env:LOCALAPPDATA\dsc
771-
$env:PATH += '{0}{1}' -f [System.IO.Path]::PathSeparator, (Join-Path -Path $env:LOCALAPPDATA -ChildPath 'dsc')
772-
$env:ModuleVersion = '0.0.1'
773-
./build.ps1 -Task build
774-
dsc resource list --adapter Microsoft.Windows/WindowsPowerShell
775-
$desiredParameters = @{KeyProperty = 'TEST_KEY_001';MandatoryProperty = 'TestMandatoryValue'}
776-
$result = dsc --trace-level trace resource get --resource SqlServerDsc/DebugDscEngine --output-format json --input ($desiredParameters | ConvertTo-Json -Compress)
777-
$dscExitCode = $LASTEXITCODE
778-
if ($dscExitCode -ne 0) { throw ('DSC executable failed with exit code {0}.' -f $dscExitCode) }
779-
Write-Verbose -Message "Result (all):`n$($result | ConvertTo-Json | Out-String)" -Verbose
780-
#Invoke-Pester -Path 'tests/Integration/Resources/DSCv3_DebugDscEngine.Integration.Tests.ps1' -Output Detailed
781-
name: test
782-
displayName: 'Run Reporting Services Integration Test'
783-
784713
- stage: Integration_Test_DSCv3_Resources_PowerBIReportServer
785714
displayName: 'Integration Test DSCv3 Resources - Power BI Report Server'
786715
#dependsOn: Quality_Test_and_Unit_Test

0 commit comments

Comments
 (0)