From 1a7ed8f93a44dfe5e2a6b1a0a3c40592b7d9c045 Mon Sep 17 00:00:00 2001 From: Marko Bozikovic Date: Wed, 17 Apr 2019 19:02:35 +0200 Subject: [PATCH] [#864] A fix for stopping SSRS 2017 service at the end of integration tests. --- Tests/Integration/MSFT_SqlRS.config.ps1 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Tests/Integration/MSFT_SqlRS.config.ps1 b/Tests/Integration/MSFT_SqlRS.config.ps1 index afe70d3cf..74920eeeb 100644 --- a/Tests/Integration/MSFT_SqlRS.config.ps1 +++ b/Tests/Integration/MSFT_SqlRS.config.ps1 @@ -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' + } } } }