Skip to content

Commit

Permalink
[dsccommunity#864] A fix for stopping SSRS 2017 service at the end of…
Browse files Browse the repository at this point in the history
… integration tests.
  • Loading branch information
bozho committed May 6, 2019
1 parent 87075a7 commit 1a7ed8f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Tests/Integration/MSFT_SqlRS.config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,21 @@ Configuration MSFT_SqlRS_StopReportingServicesInstance_Config

node $AllNodes.NodeName
{
Service ('StopReportingServicesInstance{0}' -f $Node.InstanceName)
if($script:sqlVersion -eq '130')
{
Name = ('ReportServer${0}' -f $Node.InstanceName)
State = 'Stopped'
Service ('StopReportingServicesInstance{0}' -f $Node.InstanceName)
{
Name = ('ReportServer${0}' -f $Node.InstanceName)
State = 'Stopped'
}
}
elseif($script:sqlVersion -eq '140')
{
Service 'StopReportingServicesInstance'
{
Name = 'SQLServerReportingServices'
State = 'Stopped'
}
}
}
}

0 comments on commit 1a7ed8f

Please sign in to comment.