@@ -33,7 +33,7 @@ Describe 'Get-SqlDscRSConfigurationSetting' {
3333 Context ' When getting the configuration settings for SQL Server Reporting Services instance' - Tag @ (' Integration_SQL2017_RS' ) {
3434 It ' Should return the correct configuration settings for SSRS instance' {
3535 # Get the SSRS configuration settings
36- $result = Get-SqlDscRSConfigurationSetting - InstanceName ' SSRS'
36+ $result = Get-SqlDscRSConfigurationSetting - InstanceName ' SSRS' - ErrorAction ' Stop '
3737
3838 # Verify the result
3939 $result | Should -Not - BeNullOrEmpty
@@ -61,13 +61,13 @@ Describe 'Get-SqlDscRSConfigurationSetting' {
6161 Context ' When getting the configuration settings for SQL Server Reporting Services instance' - Tag @ (' Integration_SQL2019_RS' ) {
6262 It ' Should return the correct configuration settings for SSRS instance' {
6363 # Get the SSRS configuration settings
64- $result = Get-SqlDscRSConfigurationSetting - InstanceName ' SSRS'
64+ $result = Get-SqlDscRSConfigurationSetting - InstanceName ' SSRS' - ErrorAction ' Stop '
6565
6666 # Verify the result
6767 $result | Should -Not - BeNullOrEmpty
6868 $result.InstanceName | Should - Be ' SSRS'
6969 [System.Version ] $result.Version | Should - BeGreaterOrEqual ([System.Version ] ' 15.0.1103.41' )
70- $result.PathName | Should be ' C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\rsreportserver.config'
70+ $result.PathName | Should - Be ' C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\rsreportserver.config'
7171 $result.InstallationID | Should -Not - BeNullOrEmpty
7272 $result.IsInitialized | Should - BeTrue
7373 $result.IsSharePointIntegrated | Should - BeFalse
@@ -89,13 +89,13 @@ Describe 'Get-SqlDscRSConfigurationSetting' {
8989 Context ' When getting the configuration settings for SQL Server Reporting Services instance' - Tag @ (' Integration_SQL2022_RS' ) {
9090 It ' Should return the correct configuration settings for SSRS instance' {
9191 # Get the SSRS configuration settings
92- $result = Get-SqlDscRSConfigurationSetting - InstanceName ' SSRS'
92+ $result = Get-SqlDscRSConfigurationSetting - InstanceName ' SSRS' - ErrorAction ' Stop '
9393
9494 # Verify the result
9595 $result | Should -Not - BeNullOrEmpty
9696 $result.InstanceName | Should - Be ' SSRS'
9797 [System.Version ] $result.Version | Should - BeGreaterOrEqual ([System.Version ] ' 16.0.1116.38' )
98- $result.PathName | Should be ' C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\rsreportserver.config'
98+ $result.PathName | Should - Be ' C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\rsreportserver.config'
9999 $result.InstallationID | Should -Not - BeNullOrEmpty
100100 $result.IsInitialized | Should - BeTrue
101101 $result.IsSharePointIntegrated | Should - BeFalse
0 commit comments