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 May 19, 2018
1 parent c214c96 commit 7e9ebeb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
DscResource.Tests.
- New resources:
- Added SqlScriptQueryResource. [Chase Wilson(@chasewilson)](https://github.com/chasewilson)
- Changes to SqlAlwaysOnService
- Updated integration tests to use NetworkingDsc ([issue #1129](https://github.com/PowerShell/SqlServerDsc/issues/1129)).

## 11.2.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 @@ -42,7 +42,7 @@ $ConfigurationData = @{
Configuration MSFT_SqlAlwaysOnService_CreateDependencies_Config
{
Import-DscResource -ModuleName 'PSDscResources'
Import-DscResource -ModuleName 'xNetworking'
Import-DscResource -ModuleName 'NetworkingDsc'

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

xIPAddress LoopbackAdapterIPv4Address
IPAddress LoopbackAdapterIPv4Address
{
IPAddress = $Node.LoopbackAdapterIpAddress
InterfaceAlias = $Node.LoopbackAdapterName
Expand All @@ -70,7 +70,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 @@ -164,14 +164,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 7e9ebeb

Please sign in to comment.