DscResource.Test

0.16.2

Testing DSC Resources against HQRM guidelines

Minimum PowerShell version

5.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name DscResource.Test

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name DscResource.Test

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) dsccommunity. All rights reserved.

Package Details

Author(s)

  • DSC Community

Tags

DesiredStateConfiguration DSC DSCResourceKit DSCResource

Functions

Clear-DscLcmConfiguration Get-DscResourceTestContainer Get-InvalidOperationRecord Get-InvalidResultRecord Initialize-TestEnvironment Invoke-DscResourceTest New-DscSelfSignedCertificate Restore-TestEnvironment Task.Fail_Build_If_HQRM_Tests_Failed Task.Invoke_HQRM_Tests_Stop_On_Fail Task.Invoke_HQRM_Tests Wait-ForIdleLcm

Dependencies

This module has no dependencies.

Release Notes

## [0.16.2] - 2023-05-18

### Added

- `Restore-TestEnvironment`
 - A new parameter `KeepNewMachinePSModulePath` was added and only works
   if the test type is `Integration` or `All`. The new parameter will
   keep any new paths that was added to the machine environment variable
   `PSModulePath` after the command `Initialize-TestEnvironment` was called.
   This is helpful if a a path is added by an integration test and is needed
   by a second integration test and there is a need to run `Restore-TestEnvironment`
   between tests.
- Added private function `Join-PSModulePath` that will concatenate two
 strings with semi-colon separated paths.

### Fixed

- `Initialize-TestEnvironment`
 - Now `$script:machineOldPSModulePath` is always set when called with the
   test type `Integration` or `All`. Before it reverted to the paths on the
   event `OnRemove` that were the current paths when `Initialize-TestEnvironment`
   was first called. On subsequent calls any new paths were ignored.
 - If there are a subsequent call to `Initialize-TestEnvironment` without the
   command `Restore-TestEnvironment` was called prior the command will now
   fail with a non-terminating exception asking the user to run `Restore-TestEnvironment`
   to avoid the previously saved paths (`$script:machineOldPSModulePath`)
   to be overwritten.

FileList

Version History

Version Downloads Last updated
0.16.2 (current version) 212,290 5/18/2023
0.16.2-previ... 72 5/17/2023
0.16.2-previ... 6,007 8/1/2022
0.16.1 168,374 4/20/2022
0.16.1-previ... 13 4/20/2022
0.16.1-previ... 32 4/18/2022
0.16.0 129,747 9/11/2021
0.16.0-previ... 13 9/11/2021
0.15.2 2,054 9/8/2021
0.15.2-previ... 13 9/8/2021
0.15.2-previ... 31 6/9/2021
0.15.1 63,100 3/29/2021
0.15.1-previ... 14 3/29/2021
0.15.1-previ... 20 2/14/2021
0.15.0 18,660 2/9/2021
0.15.0-previ... 17 2/9/2021
0.15.0-previ... 18 2/8/2021
0.15.0-previ... 17 2/5/2021
0.14.3 9,525 1/13/2021
0.14.3-previ... 16 1/13/2021
0.14.2 2,428 1/5/2021
0.14.2-previ... 15 1/5/2021
0.14.1 29,419 11/12/2020
0.14.1-previ... 20 10/21/2020
0.14.1-previ... 20 8/16/2020
0.14.0 144,190 8/8/2020
0.14.0-previ... 14 8/8/2020
0.13.3 109,974 6/1/2020
0.13.3-previ... 14 6/1/2020
0.13.2 842 5/30/2020
0.13.2-previ... 14 5/30/2020
0.13.1 26,076 5/15/2020
0.13.1-previ... 14 5/15/2020
0.13.0 69,628 3/28/2020
0.13.0-previ... 16 3/26/2020
0.13.0-previ... 17 1/24/2020
0.12.1 253,731 1/16/2020
0.12.1-previ... 16 1/16/2020
0.12.0 1,390 1/16/2020
0.12.0-previ... 16 1/16/2020
0.12.0-previ... 16 1/16/2020
0.11.1 69,887 1/6/2020
0.11.1-previ... 17 1/6/2020
0.11.1-previ... 17 1/6/2020
0.11.0 57,847 12/29/2019
0.11.0-previ... 19 12/29/2019
0.11.0-previ... 17 12/29/2019
0.11.0-previ... 17 12/28/2019
0.11.0-previ... 17 12/28/2019
0.10.1-previ... 17 12/28/2019
0.10.0 8,884 12/28/2019
0.10.0-previ... 18 12/28/2019
0.9.1-previe... 18 12/28/2019
0.9.0 3,157 12/27/2019
0.9.0-previe... 17 12/27/2019
0.8.1-previe... 16 12/27/2019
0.8.1-previe... 16 12/23/2019
0.8.1-previe... 16 12/23/2019
0.8.1-previe... 16 12/22/2019
0.8.0 121 12/21/2019
0.8.0-previe... 16 12/21/2019
0.8.0-previe... 16 12/21/2019
0.8.0-previe... 16 12/21/2019
0.7.0 74 12/19/2019
0.7.0-previe... 16 12/19/2019
0.6.0-previe... 16 12/18/2019
0.5.4-previe... 16 12/17/2019
0.5.3 91 12/16/2019
0.5.3-previe... 17 12/16/2019
0.5.2 50 12/13/2019
0.5.2-previe... 16 12/13/2019
0.5.1 23 12/13/2019
0.5.1-previe... 16 12/13/2019
0.5.0 26 12/12/2019
0.5.0-previe... 17 12/12/2019
0.4.3 81 12/4/2019
0.4.3-previe... 16 12/4/2019
0.4.2 23 12/4/2019
0.4.2-previe... 17 12/4/2019
0.4.1 23 12/4/2019
0.4.1-previe... 16 12/4/2019
0.4.1-previe... 16 12/4/2019
0.4.0 22 12/4/2019
0.4.0-previe... 17 12/3/2019
0.3.1-previe... 16 12/3/2019
0.3.0 23 12/2/2019
0.3.0-previe... 17 12/2/2019
0.2.1-previe... 16 12/2/2019
0.2.0 21 11/27/2019
0.2.0-previe... 15 11/27/2019
0.2.0-previe... 16 11/26/2019
0.2.0-previe... 16 11/26/2019
0.2.0-previe... 16 11/26/2019
0.2.0-previe... 16 11/26/2019
Show more