Releases: dsccommunity/DnsServerDsc
Releases · dsccommunity/DnsServerDsc
v3.0.1-preview0004
[v3.0.1-preview0004]
Changed
- DnsServerDsc
- Changed the issue template for reporting a problem with a resource to
use the new GitHub issue forms template. - Changed the issue template for proposing a new resource to use the new
GitHub issue forms template. - Replaced the private function
ConvertTo-HashTableFromObject
with the
public functionConvertFrom-DscResourceInstance
(from DscResource.Common). - Updated wiki start page with deprecation notice.
- Updated issue template for proposing a new resource.
- Removed left-over debug code.
- Update to use the build worker
windows-latest
for the necessary stages
of the pipeline, andubuntu-latest
for the other stages. - Update pipeline to use GitVersion.Tool installed by
dotnet
. - Update unit and integration tests to Pester 5
- DnsServer* Class Resources
- Used
DscResource.Base
- BREAKING: Added
Reasons
property as population of this is builtin
to base class.
- Used
- Updated
prefix
,build
,RequiredModules
for Pester 5 and
DscResource.Base usage. - Added tests for
DSC_DnsServerSecondaryZone
. - Updated project related files
.github/ISSUE_TEMPLATES
.vscode
ResolveDependency.ps1
build.ps1
- Change from using
Test-DnsDscParameterState
toTest-DscParameterState
(from DscResource.Common).
Fixes [Issue #121].
Affected resources:DSC_DnsServerDiagnostics
DSC_DnsServerRootHint
- Changed the issue template for reporting a problem with a resource to
- DnsServerDsc.Common
- Added unit tests for
Convert-RootHintsToHashtable
.
- Added unit tests for
Fixed
- DnsServerDsc.Common
- Removed unit tests for functions no longer part of the module.
- Removed functions from the module manifest that are no longer
part of the module. - Pin
gitversion
version inazure-pipelines
- DnRecordBase
- Update comment regarding use of
using module
statement.
- Update comment regarding use of
- ResourceBase
- Update comment regarding use of
using module
statement.
- Update comment regarding use of
Removed
- DnsServerDsc
- Removed
001.ResourceBase
and replaced withDscResource.Base
. - Removed
Get-ClassName
andGet-LocalizedDataRecursive
utilizing
ones provided inDscResource.Base
.
- Removed
- DnsServerDsc.Common
- Removed
Test-DnsDscParameterState
and associated localization entries.
- Removed
v3.0.1-preview0003
[v3.0.1-preview0003]
Changed
- DnsServerDsc
- Changed the issue template for reporting a problem with a resource to
use the new GitHub issue forms template. - Changed the issue template for proposing a new resource to use the new
GitHub issue forms template. - Replaced the private function
ConvertTo-HashTableFromObject
with the
public functionConvertFrom-DscResourceInstance
(from DscResource.Common). - Updated wiki start page with deprecation notice.
- Updated issue template for proposing a new resource.
- Removed left-over debug code.
- Update to use the build worker
windows-latest
for the necessary stages
of the pipeline, andubuntu-latest
for the other stages. - Update pipeline to use GitVersion.Tool installed by
dotnet
. - Update unit and integration tests to Pester 5
- DnsServer* Class Resources
- Used
DscResource.Base
- BREAKING: Added
Reasons
property as population of this is builtin
to base class.
- Used
- Updated
prefix
,build
,RequiredModules
for Pester 5 and
DscResource.Base usage. - Added tests for
DSC_DnsServerSecondaryZone
. - Updated project related files
.github/ISSUE_TEMPLATES
.vscode
ResolveDependency.ps1
build.ps1
- Changed the issue template for reporting a problem with a resource to
- DnsServerDsc.Common
- Added unit tests for
Convert-RootHintsToHashtable
.
- Added unit tests for
Fixed
- DnsServerDsc.Common
- Removed unit tests for functions no longer part of the module.
- Removed functions from the module manifest that are no longer
part of the module. - Pin
gitversion
version inazure-pipelines
- DnRecordBase
- Update comment regarding use of
using module
statement.
- Update comment regarding use of
- ResourceBase
- Update comment regarding use of
using module
statement.
- Update comment regarding use of
Removed
- DnsServerDsc
- Removed
001.ResourceBase
and replaced withDscResource.Base
. - Removed
Get-ClassName
andGet-LocalizedDataRecursive
utilizing
ones provided inDscResource.Base
.
- Removed
v3.0.1-preview0002
[v3.0.1-preview0002]
Changed
- DnsServerDsc
- Changed the issue template for reporting a problem with a resource to
use the new GitHub issue forms template. - Changed the issue template for proposing a new resource to use the new
GitHub issue forms template. - Replaced the private function
ConvertTo-HashTableFromObject
with the
public functionConvertFrom-DscResourceInstance
(from DscResource.Common). - Updated wiki start page with deprecation notice.
- Updated issue template for proposing a new resource.
- Changed the issue template for reporting a problem with a resource to
v3.0.1-preview0001
[v3.0.1-preview0001]
Changed
- DnsServerDsc
- Changed the issue template for reporting a problem with a resource to
use the new GitHub issue forms template. - Changed the issue template for proposing a new resource to use the new
GitHub issue forms template. - Replaced the private function
ConvertTo-HashTableFromObject
with the
public functionConvertFrom-DscResourceInstance
(from DscResource.Common).
- Changed the issue template for reporting a problem with a resource to
v3.0.0
[v3.0.0]
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: A few properties that are not supported by any DNS
Server PowerShell cmdlet was moved to the new resource DnsServerSettingLegacy. - BREAKING CHANGE: The properties
DsPollingInterval
andDsTombstoneInterval
has been removed (issue #252).
Use the resource DnsServerDsSetting to enforce these properties.
- 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
- DnsRecordNs
- Added new resource to manage NS records
- DnsRecordNsScoped
- Added new resource to manage scoped NS records
- DnsServerDsSetting
- Added new resource to manage AD-integrated DNS settings
- DnsServerSettingLegacy
- A new resource to manage legacy DNS Server settings that are not supported
by any DNS Server PowerShell cmdlet.
- A new resource to manage legacy DNS Server settings that are not supported
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.
- DnsServerSetting
- Changed to use
Get-DnsServerSetting
andSet-DnsServerSetting
(issue #185). - BREAKING CHANGE: The property
DisableAutoReverseZones
have been renamed
toDisableAutoReverseZone
. - BREAKING CHANGE: The property
ListenAddresses
have been renamed
toListeningIPAddress
. - BREAKING CHANGE: The property
AllowUpdate
was changed to a boolean
value ($true
or$false
) since that is what the cmdletSet-DnsServerSetting
is expecting (related to issue #101). - BREAKING CHANGE: The property
EnableDnsSec
was changed to a boolean
value ($true
or$false
) since that is what the cmdletSet-DnsServerSetting
is expecting. - BREAKING CHANGE: The property
ForwardDelegations
was changed to a boolean
value ($true
or$false
) since that is what the cmdletSet-DnsServerSetting
is expecting.
- Changed to use
Fixed
- Logic bug in DnsRecordPtr.expandIPv6String($string) (#255)
- Supporting tests added
v3.0.0-preview0005
[v3.0.0-preview0005]
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: A few properties that are not supported by any DNS
Server PowerShell cmdlet was moved to the new resource DnsServerSettingLegacy. - BREAKING CHANGE: The properties
DsPollingInterval
andDsTombstoneInterval
has been removed (issue #252).
Use the resource DnsServerDsSetting to enforce these properties.
- 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
- DnsRecordNs
- Added new resource to manage NS records
- DnsRecordNsScoped
- Added new resource to manage scoped NS records
- DnsServerDsSetting
- Added new resource to manage AD-integrated DNS settings
- DnsServerSettingLegacy
- A new resource to manage legacy DNS Server settings that are not supported
by any DNS Server PowerShell cmdlet.
- A new resource to manage legacy DNS Server settings that are not supported
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.
- DnsServerSetting
- Changed to use
Get-DnsServerSetting
andSet-DnsServerSetting
(issue #185). - BREAKING CHANGE: The property
DisableAutoReverseZones
have been renamed
toDisableAutoReverseZone
. - BREAKING CHANGE: The property
ListenAddresses
have been renamed
toListeningIPAddress
. - BREAKING CHANGE: The property
AllowUpdate
was changed to a boolean
value ($true
or$false
) since that is what the cmdletSet-DnsServerSetting
is expecting (related to issue #101). - BREAKING CHANGE: The property
EnableDnsSec
was changed to a boolean
value ($true
or$false
) since that is what the cmdletSet-DnsServerSetting
is expecting. - BREAKING CHANGE: The property
ForwardDelegations
was changed to a boolean
value ($true
or$false
) since that is what the cmdletSet-DnsServerSetting
is expecting.
- Changed to use
Fixed
- Logic bug in DnsRecordPtr.expandIPv6String($string) (#255)
- Supporting tests added
v3.0.0-preview0004
[v3.0.0-preview0004]
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
- DnsRecordNs
- Added new resource to manage NS records
- DnsRecordNsScoped
- Added new resource to manage scoped NS records
- DnsServerDsSetting
- Added new resource to manage AD-integrated DNS settings
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.
Fixed
- Logic bug in DnsRecordPtr.expandIPv6String($string) (#255)
- Supporting tests added
v3.0.0-preview0003
[v3.0.0-preview0003]
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
- DnsRecordNs
- Added new resource to manage NS records
- DnsRecordNsScoped
- Added new resource to manage scoped NS records
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.
Fixed
- Logic bug in DnsRecordPtr.expandIPv6String($string) (#255)
- Supporting tests added
v3.0.0-preview0002
[v3.0.0-preview0002]
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
- DnsRecordNs
- Added new resource to manage NS records
- DnsRecordNsScoped
- Added new resource to manage scoped NS records
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.
v3.0.0-preview0001
[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.