DscResource.Test

0.12.1-preview0001

Testing DSC Resources against HQRM guidelines

Minimum PowerShell version

5.0

This is a prerelease version of DscResource.Test.
There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

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

Install-Module -Name DscResource.Test -RequiredVersion 0.12.1-preview0001 -AllowPrerelease

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

Install-PSResource -Name DscResource.Test -Version 0.12.1-preview0001 -Prerelease

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 Initialize-TestEnvironment Invoke-DscResourceTest New-DscSelfSignedCertificate Restore-TestEnvironment

Dependencies

This module has no dependencies.

Release Notes

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.12.0] - 2020-01-16

### Changed

- Required PowerShell version was lowered to v5.0 in the module manifest.
 - Update the cmdlet `Initialize-TestEnvironment` to allow setting up
   the environment when run in PowerShell 5.0.
 - Update the pipeline so the module will be tested on PowerShell 5.0
   (Microsoft-hosted agent running Windows Server 2012 R2).
- Azure Pipelines will no longer trigger on changes to just the CHANGELOG.md.

## [0.11.1] - 2020-01-06

### Changed

- Moved init code into Describe Block for PSSAResource and ResourceSchema Tests

### Fixed

- Updated QA tests to follow style guideline.

## [0.11.0] - 2019-12-29

### Added

- Added new QA ExampleFiles test.
- Added new QA MarkdownLinks test.
- Added check on changelog when invoking by project path.

## [0.10.0] - 2019-12-28

### Added

- Added a new test type, `All`, to the `Initialize-TestEnvironment` function
 that initializes the DSC LCM and imports the module for testing ([issue #48](https://github.com/dsccommunity/DscResource.Test/issues/48)).

## [0.9.0] - 2019-12-27

### Added

- Added an integration test to regression test integration tests failing
 with `Security Error` ([issue #38](https://github.com/dsccommunity/DscResource.Test/issues/38)).

### Changed

- The `Initialize-TestEnvironment` now takes two new parameters that sets
 the execution policy for machine and process. If these are not set then
 the execution policy will not be changed.
- Updated `build.ps1` to the latest in the template.
- Added LICENSE (fixes [Issue #41](https://github.com/dsccommunity/DscResource.Test/issues/41)).
- Added standard badges to README.MD (fixes [Issue #43](https://github.com/dsccommunity/DscResource.Test/issues/43)).

### Fixed

- Fixing the Relative path to make sure it calculates from it's ModuleBase.
- Used the right code of conduct for DSC Community.
- Fixed integration tests failing with the error `Security Error`
 ([issue #38](https://github.com/dsccommunity/DscResource.Test/issues/38)).

### Changed

- Changed module manifest to include Tags, ProjectUri, LicenseUri, Logo
 and changed AliasesToExport to empty (fixes [Issue #42](https://github.com/dsccommunity/DscResource.Test/issues/42)).
- Changed Clear-DscLcmConfiguration to a public function so it can be called
 directly by resource modules (fixes [Issue #40](https://github.com/dsccommunity/DscResource.Test/issues/40)).

### Removed

- Removed Deploy.PSDeploy.ps1 because it is not used (fixes [Issue #44](https://github.com/dsccommunity/DscResource.Test/issues/44)).
- Removed commented out code from DscResource.Test.psm1
 file (fixes [Issue #45](https://github.com/dsccommunity/DscResource.Test/issues/45)).

## [0.8.0] - 2019-12-21

### Added

- Added new QA Localization test, supporting excludes.
- Added new QA PublishExampleFiles test.

### Fixed

- Invoking the tests by ProjectPath (as well as per module).
- Fixed the Get-ChildItem -Depth 3 on Windows PS (needed -Name or it does not work).

### Changed

- Re-added the check for Initialize-TestEnvironment to check if session elevated & OS.

## [0.7.0] - 2019-12-19

### Added

- Added new QA Localization test.

## [0.5.3] - 2019-12-16

### Fixed

- Temporarily remove Admin-check in `Initialize-TestEnvironment`.
- Suppress output from function `Initialize-DscTestLcm`.

## [0.5.1] - 2019-12-13

### Fixed

- Correctly detect Windows PowerShell in `Initialize-TestEnvironment`.

## [0.5.0] - 2019-12-12

### Fixed

- Now skipping isAdmin on non-windows (because creds works differently)
- Moving spellcheck out of the tests
- Updating ScriptFiles tests to get different module base when from module or from project path

## [0.4.0] - 2019-12-04

### Added

- Allow most test to optionally target Source files (under Project/SourceFolder)
- Enable excluding file by path relative to either ModuleBase (when specifying a module) or Source Path

## [0.3.0] - 2019-12-02

### Added

- Added Public functions Initialize-TestEnvironment, New-DscSelfSignedCertificate, Restore-TestEnvironment
- Added Private functions Set-EnvironmentVariable, Set-PSModulePath, Clear-DscLcmConfiguration
- Added PSPKI as ExternalModuleDependencies when creating self signed certs on older OSes

## [0.2.0] - 2019-11-27

### Added

- Created module from DscResource.Tests repository.
- Function Invoke-DscResourceTest is proxy to Invoke-Pester, with Sugar coating for
the built-in tests.
- Added Secret Variables for releases and using DSC Bot account

FileList

Version History

Version Downloads Last updated
0.16.2 162,114 5/18/2023
0.16.2-previ... 72 5/17/2023
0.16.2-previ... 6,007 8/1/2022
0.16.1 167,897 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 25,998 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... (current version) 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 less