Releases: dsccommunity/DscResource.Common
Releases · dsccommunity/DscResource.Common
v0.10.0-preview0001
[v0.10.0-preview0001]
Added
- Added cmdlet
Compare-DscParameterState
- Could be used in
Get-TargetResource function or Get() method in Class based Resources.
It is based on the code of Test-DscParameterState function to get compliance
between current and desired state of resources.
The OutPut of Compare-DscParameterState is a collection psobject.
The properties of psobject are Property,InDesiredState,ExpectedType,ActualType,
ExpectedValue and ActualValue. The IncludeInDesiredState parameter must be use to
add ExceptedValue and ActualValue. - Added pester test to test the pscredential object with
Compare-DscParameterState
.
Changed
- Cmdlet Test-DscResourceState is now calling Compare-DscParameterState. Possible breaking change.
Fix
- Fix git diff command in QA tests on Linux and MacOS.
v0.9.3
v0.9.3-preview0001
[v0.9.3-preview0001]
Fixed
- Correction to
Test-DscParameterState
returning false positive when parameter
with an empty array is passed inDesriedValues
orCurrentValues
- fixes
issue #53.
v0.9.2
[v0.9.2]
Added
Test-DscParameterState
can now handle scriptblocks. The parameter 'ValuesToCheck' was renamed to 'Properties' but an alias
was added so it is not a braking change. The parameter 'ExcludeProperties' was added.- Added a new test for the alias 'ValuesToCheck' pointing to 'Properties'.
- Added cmdlet
Compare-ResourcePropertyState
that also introduces a new
design pattern to evaluate properties in both Test and Set - fixes
issue #47.
Fixed
v0.9.2-preview0003
[v0.9.2-preview0003]
Added
Test-DscParameterState
can now handle scriptblocks. The parameter 'ValuesToCheck' was renamed to 'Properties' but an alias
was added so it is not a braking change. The parameter 'ExcludeProperties' was added.- Added a new test for the alias 'ValuesToCheck' pointing to 'Properties'.
- Added cmdlet
Compare-ResourcePropertyState
that also introduces a new
design pattern to evaluate properties in both Test and Set - fixes
issue #47.
Fixed
v0.9.2-preview0002
[v0.9.2-preview0002]
Added
- Added cmdlet
Compare-ResourcePropertyState
that also introduces a new
design pattern to evaluate properties in both Test and Set - fixes
issue #47.
Fixed
v0.9.2-preview0001
[v0.9.2-preview0001]
Added
- Added cmdlet
Compare-ResourcePropertyState
that also introduces a new
design pattern to evaluate properties in both Test and Set - fixes
issue #47.