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 27, 2018
1 parent bf36753 commit f2a66bb
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 @@ -35,6 +35,9 @@
- Fixed formatting issues for the function to work with modules other than SqlServer.
- New DSC resource SqlServerSecureConnection
- New resource to configure a SQL Server instance for encrypted SQL connections.
- 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 f2a66bb

Please sign in to comment.