diff --git a/CHANGELOG.md b/CHANGELOG.md index a32e8560a..945605454 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,3 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed non-terminating, integration tests ([issue #18](https://github.com/dsccommunity/AzureDevOpsDsc/issues/18)) - AzureDevOpsDsc.Common - Added 'wrapper' functionality around the [Azure DevOps REST API](https://docs.microsoft.com/en-us/rest/api/azure/devops/) + +### Changed + +- Enabled integration tests against https://dev.azure.com/azuredevopsdsc/ (see + comment https://github.com/dsccommunity/AzureDevOpsDsc/issues/9#issuecomment-766375424 + for more information). diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ddd2d4ca2..f90eac531 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -191,34 +191,31 @@ stages: script: 'winrm quickconfig -quiet' pwsh: false - # TODO: Current disabled due to integration tests throws the exception: - # "Cannot validate argument on parameter 'Pat'. The " Test-AzDevOpsPat -Pat $_ -IsValid " validation script for the argument with value "$(AzureDevOps.Integration.Pat)" did not return a result of True. Determine why the validation script failed, and then try the command again." - - # - powershell: | - # ./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterScript @( - # 'tests/Integration/' - # ) - # name: test - # displayName: 'Run Integration Tests' - # env: - # azureDevOpsIntegrationApiUri: $(AzureDevOps.Integration.ApiUri) - # azureDevOpsIntegrationPat: $(AzureDevOps.Integration.Pat) + - powershell: | + ./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterScript @( + 'tests/Integration/' + ) + name: test + displayName: 'Run Integration Tests' + env: + azureDevOpsIntegrationApiUri: $(AzureDevOps.Integration.ApiUri) + azureDevOpsIntegrationPat: $(AzureDevOps.Integration.Pat) - # - task: PublishTestResults@2 - # displayName: 'Publish Test Results' - # condition: succeededOrFailed() - # inputs: - # testResultsFormat: 'NUnit' - # testResultsFiles: 'output/testResults/NUnit*.xml' - # testRunTitle: 'Windows Server Core (PowerShell Core) - Integration' + - task: PublishTestResults@2 + displayName: 'Publish Test Results' + condition: succeededOrFailed() + inputs: + testResultsFormat: 'NUnit' + testResultsFiles: 'output/testResults/NUnit*.xml' + testRunTitle: 'Windows Server Core (PowerShell Core) - Integration' - # - task: PublishCodeCoverageResults@1 - # displayName: 'Publish Code Coverage' - # condition: succeededOrFailed() - # inputs: - # codeCoverageTool: 'JaCoCo' - # summaryFileLocation: 'output/testResults/CodeCov*.xml' - # pathToSources: '$(Build.SourcesDirectory)/output/$(dscBuildVariable.RepositoryName)' + - task: PublishCodeCoverageResults@1 + displayName: 'Publish Code Coverage' + condition: succeededOrFailed() + inputs: + codeCoverageTool: 'JaCoCo' + summaryFileLocation: 'output/testResults/CodeCov*.xml' + pathToSources: '$(Build.SourcesDirectory)/output/$(dscBuildVariable.RepositoryName)' - job: test_unit_windows_ps condition: succeededOrFailed()