Skip to content

Commit

Permalink
[dsccommunity#1163] Addressed CR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bozho committed Jun 19, 2019
1 parent 2c07dff commit 3874f91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions DSCResources/MSFT_SqlSetup/MSFT_SqlSetup.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ $script:localizedData = Get-LocalizedData -ResourceName 'MSFT_SqlSetup'
.PARAMETER InstanceName
Name of the SQL instance to be installed.
.PARAMETER RSInstallMode
Install mode for Reporting Services. The value of this parameter cannot be determined post-install,
so the function will simply return the value of this parameter.
.PARAMETER FailoverClusterNetworkName
Host name to be assigned to the clustered SQL Server instance.
Expand Down Expand Up @@ -60,6 +64,11 @@ function Get-TargetResource
[System.String]
$InstanceName,

[Parameter()]
[ValidateSet('SharePointFilesOnlyMode', 'DefaultNativeMode', 'FilesOnlyMode')]
[System.String]
$RSInstallMode,

[Parameter()]
[System.String]
$FailoverClusterNetworkName,
Expand Down Expand Up @@ -551,6 +560,7 @@ function Get-TargetResource
FTSvcAccountUsername = $fullTextServiceAccountUsername
RSSvcAccountUsername = $reportingServiceAccountUsername
RsSvcStartupType = $RsSvcStartupType
RSInstallMode = $RSInstallMode
ASSvcAccountUsername = $analysisServiceAccountUsername
AsSvcStartupType = $AsSvcStartupType
ASCollation = $analysisCollation
Expand Down
2 changes: 2 additions & 0 deletions Tests/Unit/MSFT_SqlSetup.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2874,6 +2874,7 @@ try
UpdateEnabled = 'True'
UpdateSource = 'C:\Updates\' # Regression test for issue #720
ASServerMode = 'TABULAR'
RSInstallMode = 'DefaultNativeMode'
SqlSvcStartupType = $mockSqlSvcStartupType
AgtSvcStartupType = $mockAgtSvcStartupType
AsSvcStartupType = $mockAsSvcStartupType
Expand Down Expand Up @@ -2907,6 +2908,7 @@ try
UpdateEnabled = 'True'
UpdateSource = 'C:\Updates' # Regression test for issue #720
ASServerMode = 'TABULAR'
RSInstallMode = 'DefaultNativeMode'
SqlSvcStartupType = $mockSqlSvcStartupType
AgtSvcStartupType = $mockAgtSvcStartupType
AsSvcStartupType = $mockAsSvcStartupType
Expand Down

0 comments on commit 3874f91

Please sign in to comment.