Updated the integration tests to remove non-terminating errors in AzDevOpsProject, resource tests when Test-DscConfiguration is called:
Added -ErrorAction Stop to the Test-DscConfiguration function calls (within the tests) and updated exceptions thrown to make use of New-InvalidOperationException.
Wrapped possibly exceptions to ensure Test() function within AzDevOpsDscResourceBase class so it always returns a $true or $false (and doesn't throw any exception).
Additionally, updated 'CONTRIBUTING.md' to add additional environment variable to PowerShell script to enable local execution of integration tests and added link to creating PAT within Azure DevOps.
This Pull Request (PR) fixes the following issues
Fixes #18
Task list
[x] Added an entry to the change log under the Unreleased section of the
file CHANGELOG.md. Entry should say what was changed and how that
affects users (if applicable), and reference the issue being resolved
(if applicable).
[ ] Resource documentation updated in the resource's README.md.
[ ] Resource parameter descriptions updated in schema.mof.
[ ] Comment-based help updated, including parameter descriptions.
Pull Request (PR) description
Updated the integration tests to remove non-terminating errors in
AzDevOpsProject
, resource tests whenTest-DscConfiguration
is called:-ErrorAction Stop
to theTest-DscConfiguration
function calls (within the tests) and updated exceptions thrown to make use ofNew-InvalidOperationException
.Test()
function withinAzDevOpsDscResourceBase
class so it always returns a$true
or$false
(and doesn't throw any exception).Additionally, updated 'CONTRIBUTING.md' to add additional environment variable to PowerShell script to enable local execution of integration tests and added link to creating PAT within Azure DevOps.
This Pull Request (PR) fixes the following issues
Task list
This change is![Reviewable](https://reviewable.io/review_button.svg)