Added automatic release with a new CI pipeline (issue #59.
Conceptual help is now generated for each resource on build.
Changed
xDhcpServer
BREAKING CHANGE: The minimum PowerShell version is 5.0.
xDhcpServerAuthorization
BREAKING CHANGE: The resource is now a single instance resource so
that it is only possible to use the resource once in a configuration
with the parameter Ensure set to either Present or Absent
(issue #40.
The helper function Get-IPv4Address was changed from using Get-WmiObject
to Get-CimInstance when fetching the enabled IP addresses.
xDhcpServerOptionDefinition
The logic in Test-TargetResource was changed somewhat to remove
unnecessary evaluation of properties that Get-TargetResource already
did. The function Get-TargetResource calls Get-DhcpServerv4OptionDefinition
with OptionId and VendorClass and if an object is returned the property
Ensure is set to 'Present', so there are no point for Test-TargetResource
to evaluate those two properties again.
Added unit tests for the function Test-TargetResource.
Removed
BREAKING CHANGE: Removed the deprecated resource xDhcpServerOption which
has been replaced by other DSC resources (issue #46).
Removed the file TestSampleUsingAzure.ps1 as it was not a working example
of running integration tests.
This Pull Request (PR) fixes the following issues
Fixes #40
Fixes #46
Fixes #59
Task list
[x] Added an entry under the Unreleased section of the change log in the README.md.
Entry should say what was changed, and how that affects users (if applicable).
[x] Resource documentation added/updated in README.md.
[ ] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[ ] Comment-based help added/updated.
[x] Localization strings added/updated in all localization files as appropriate.
Pull Request (PR) description
Added
Changed
Ensure
set to eitherPresent
orAbsent
(issue #40.Get-IPv4Address
was changed from usingGet-WmiObject
toGet-CimInstance
when fetching the enabled IP addresses.Test-TargetResource
was changed somewhat to remove unnecessary evaluation of properties thatGet-TargetResource
already did. The functionGet-TargetResource
callsGet-DhcpServerv4OptionDefinition
withOptionId
andVendorClass
and if an object is returned the propertyEnsure
is set to'Present'
, so there are no point forTest-TargetResource
to evaluate those two properties again.Test-TargetResource
.Removed
TestSampleUsingAzure.ps1
as it was not a working example of running integration tests.This Pull Request (PR) fixes the following issues
Task list
This change is