Skip to content

Commit

Permalink
Changes to SqlAlwaysOnService
Browse files Browse the repository at this point in the history
- Updated integration tests to use NetworkingDsc (issue dsccommunity#1129).
  • Loading branch information
johlju committed Sep 21, 2018
1 parent edb611d commit c40db6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
[Dan Reist (@randomnote1)](https://github.com/randomnote1)
- Use a string builder to build the function stubs.
- Fixed formatting issues for the function to work with modules other than SqlServer.
- Changes to SqlAlwaysOnService
- Updated integration tests to use NetworkingDsc
([issue #1129](https://github.com/PowerShell/SqlServerDsc/issues/1129)).

## 12.0.0.0

Expand Down
10 changes: 5 additions & 5 deletions Tests/Integration/MSFT_SqlAlwaysOnService.config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $ConfigurationData = @{
Configuration MSFT_SqlAlwaysOnService_CreateDependencies_Config
{
Import-DscResource -ModuleName 'PSDscResources'
Import-DscResource -ModuleName 'xNetworking'
Import-DscResource -ModuleName 'NetworkingDsc'

node localhost
{
Expand All @@ -60,7 +60,7 @@ Configuration MSFT_SqlAlwaysOnService_CreateDependencies_Config
Name = 'RSAT-Clustering-PowerShell'
}

xIPAddress LoopbackAdapterIPv4Address
IPAddress LoopbackAdapterIPv4Address
{
IPAddress = $Node.LoopbackAdapterIpAddress
InterfaceAlias = $Node.LoopbackAdapterName
Expand All @@ -72,7 +72,7 @@ Configuration MSFT_SqlAlwaysOnService_CreateDependencies_Config
loopback adapter as clustered network.
This will be removed directly after the cluster has been created.
#>
xDefaultGatewayAddress LoopbackAdapterIPv4DefaultGateway
DefaultGatewayAddress LoopbackAdapterIPv4DefaultGateway
{
Address = $Node.LoopbackAdapterGateway
InterfaceAlias = $Node.LoopbackAdapterName
Expand Down Expand Up @@ -166,14 +166,14 @@ Configuration MSFT_SqlAlwaysOnService_CreateDependencies_Config

Configuration MSFT_SqlAlwaysOnService_CleanupDependencies_Config
{
Import-DscResource -ModuleName 'xNetworking'
Import-DscResource -ModuleName 'Networking'

node localhost
{
<#
Removing the default gateway from the loopback adapter.
#>
xDefaultGatewayAddress LoopbackAdapterIPv4DefaultGateway
DefaultGatewayAddress LoopbackAdapterIPv4DefaultGateway
{
InterfaceAlias = $Node.LoopbackAdapterName
AddressFamily = 'IPv4'
Expand Down

0 comments on commit c40db6a

Please sign in to comment.