v3.0.0-preview0001
Pre-release
Pre-release
[v3.0.0-preview0001]
Removed
- xDnsRecord
- BREAKING CHANGE: The resource has been replaced by DnsServerA, DnsServerPtr,
and DnsServerCName (issue #221).
- BREAKING CHANGE: The resource has been replaced by DnsServerA, DnsServerPtr,
- xDnsServerMx
- BREAKING CHANGE: The resource has been replaced by DnsServerMx (issue #228).
- DnsServerSetting
- BREAKING CHANGE: The properties
Forwarders
andForwardingTimeout
has
been removed (issue #192).
Use the resource DnsServerForwarder to enforce these properties. - BREAKING CHANGE: The properties
EnableEDnsProbes
andEDnsCacheTimeout
has
been removed (issue #195).
Use the resource DnsServerEDns to enforce these properties. - BREAKING CHANGE: The properties
SecureResponses
,MaxCacheTTL
, and
MaxNegativeCacheTTL
has been removed (issue #197).
To enforce theses properties, use resource DnsServerEDns using the
propertiesEnablePollutionProtection
,MaxTtl
, andMaxNegativeTtl
respectively. - BREAKING CHANGE: The properties
DefaultAgingState
,ScavengingInterval
,
DefaultNoRefreshInterval
, andDefaultRefreshInterval
have been removed.
Use the resource DnsServerScavenging to enforce this properties (issue #193). - BREAKING CHANGE: The properties
NoRecursion
,RecursionRetry
, and
RecursionTimeout
has been removed (issue #200).
To enforce theses properties, use resource DnsServerRecursion using the
propertiesEnable
,RetryInterval
, andTimeout
respectively.
- BREAKING CHANGE: The properties
- ResourceBase
- For the method
Get()
the overload that took a[Microsoft.Management.Infrastructure.CimInstance]
was removed as it is not the correct pattern going forward.
- For the method
Added
- DnsServerDsc
- Added new resource
- DnsServerCache - resource to enforce cache settings (issue #196).
- DnsServerRecursion - resource to enforce recursion settings (issue #198).
- Added new private function
Get-ClassName
that returns the class name
or optionally an array with the class name and all inherited base class
named. - Added new private function
Get-LocalizedDataRecursive
that gathers
all localization strings from an array of class names. This can be used
in classes to be able to inherit localization strings from one or more
base class. If a localization string key exist in a parent class's
localization string file it will override the localization string key
in any base class. - Fixed code coverage in the pipeline (issue #246).
- Added new resource
- ResourceBase
- Added new method
Assert()
tha callsAssert-Module
andAssertProperties()
.
- Added new method
Changed
- DnsServerDsc
- BREAKING CHANGE: Renamed the module to DnsServerDsc (issue #179).
- BREAKING CHANGE: Removed the prefix 'x' from all MOF-based resources
(issue #179). - Renamed a MOF-based resource to use the prefix 'DSC' (issue #225).
- Fix stub
Get-DnsServerResourceRecord
so it throws if it is not mocked
correctly (issue #204). - Switch the order in the deploy pipeline so that creating the GitHub release
is made after a successful release. - Updated stub functions to throw if they are used (when missing a mock in
unit test) (issue #235).
- ResourceBase
- Added support for inherit localization strings and also able to override
a localization string that exist in a base class. - Moved more logic from the resources into the base class for the method
Test()
,Get()
, andSet()
. The base class now have three methods
AssertProperties()
,Modify()
, andGetCurrentState()
where the
two latter ones must be overridden by a resource if calling the base
methodsSet()
andGet()
. - Moved the
Assert-Module
from the constructor to a new methodAssert()
that is called fromGet()
,Test()
, andSet()
. The methodAssert()
also calls the methodAssertProperties()
. The methodAssert()
is not
meant to be overridden, but can if there is a reason not to run
Assert-Module
and orAssertProperties()
.
- Added support for inherit localization strings and also able to override
- Integration tests
- Added commands in the DnsRecord* integration tests to wait for the LCM
before moving to the next test.
- Added commands in the DnsRecord* integration tests to wait for the LCM
- DnsServerCache
- Moved to the same coding pattern as DnsServerRecursion.
- DnsServerEDns
- Moved to the same coding pattern as DnsServerRecursion.
- DnsServerScavenging
- Moved to the same coding pattern as DnsServerRecursion.