@@ -32,15 +32,15 @@ BeforeAll {
3232}
3333
3434Describe ' Set-SqlDscRSDatabaseTimeout' {
35- BeforeAll {
36- $script :configuration = Get-SqlDscRSConfiguration - InstanceName ' SSRS' - ErrorAction ' Stop'
35+ Context ' When setting database timeout for SQL Server Reporting Services' - Tag @ (' Integration_SQL2017_RS' ) {
36+ BeforeAll {
37+ $script :configuration = Get-SqlDscRSConfiguration - InstanceName ' SSRS' - ErrorAction ' Stop'
3738
38- # Verbose output the timeouts before changing them
39- Write-Verbose " Current DatabaseLogonTimeout: $ ( $script :configuration.DatabaseLogonTimeout ) " - Verbose
40- Write-Verbose " Current DatabaseQueryTimeout: $ ( $script :configuration.DatabaseQueryTimeout ) " - Verbose
41- }
39+ # Verbose output the timeouts before changing them
40+ Write-Verbose " Current DatabaseLogonTimeout: $ ( $script :configuration.DatabaseLogonTimeout ) " - Verbose
41+ Write-Verbose " Current DatabaseQueryTimeout: $ ( $script :configuration.DatabaseQueryTimeout ) " - Verbose
42+ }
4243
43- Context ' When setting database timeout for SQL Server Reporting Services' - Tag @ (' Integration_SQL2017_RS' ) {
4444 It ' Should not throw when setting LogonTimeout' {
4545 $null = $script :configuration | Set-SqlDscRSDatabaseTimeout - LogonTimeout 120 - Force - ErrorAction ' Stop'
4646 }
@@ -62,6 +62,14 @@ Describe 'Set-SqlDscRSDatabaseTimeout' {
6262 }
6363
6464 Context ' When setting database timeout for SQL Server Reporting Services' - Tag @ (' Integration_SQL2019_RS' ) {
65+ BeforeAll {
66+ $script :configuration = Get-SqlDscRSConfiguration - InstanceName ' SSRS' - ErrorAction ' Stop'
67+
68+ # Verbose output the timeouts before changing them
69+ Write-Verbose " Current DatabaseLogonTimeout: $ ( $script :configuration.DatabaseLogonTimeout ) " - Verbose
70+ Write-Verbose " Current DatabaseQueryTimeout: $ ( $script :configuration.DatabaseQueryTimeout ) " - Verbose
71+ }
72+
6573 It ' Should not throw when setting LogonTimeout' {
6674 $null = $script :configuration | Set-SqlDscRSDatabaseTimeout - LogonTimeout 120 - Force - ErrorAction ' Stop'
6775 }
@@ -83,6 +91,14 @@ Describe 'Set-SqlDscRSDatabaseTimeout' {
8391 }
8492
8593 Context ' When setting database timeout for SQL Server Reporting Services' - Tag @ (' Integration_SQL2022_RS' ) {
94+ BeforeAll {
95+ $script :configuration = Get-SqlDscRSConfiguration - InstanceName ' SSRS' - ErrorAction ' Stop'
96+
97+ # Verbose output the timeouts before changing them
98+ Write-Verbose " Current DatabaseLogonTimeout: $ ( $script :configuration.DatabaseLogonTimeout ) " - Verbose
99+ Write-Verbose " Current DatabaseQueryTimeout: $ ( $script :configuration.DatabaseQueryTimeout ) " - Verbose
100+ }
101+
86102 It ' Should not throw when setting LogonTimeout' {
87103 $null = $script :configuration | Set-SqlDscRSDatabaseTimeout - LogonTimeout 120 - Force - ErrorAction ' Stop'
88104 }
@@ -104,6 +120,14 @@ Describe 'Set-SqlDscRSDatabaseTimeout' {
104120 }
105121
106122 Context ' When setting database timeout for Power BI Report Server' - Tag @ (' Integration_PowerBI' ) {
123+ BeforeAll {
124+ $script :configuration = Get-SqlDscRSConfiguration - InstanceName ' PBIRS' - ErrorAction ' Stop'
125+
126+ # Verbose output the timeouts before changing them
127+ Write-Verbose " Current DatabaseLogonTimeout: $ ( $script :configuration.DatabaseLogonTimeout ) " - Verbose
128+ Write-Verbose " Current DatabaseQueryTimeout: $ ( $script :configuration.DatabaseQueryTimeout ) " - Verbose
129+ }
130+
107131 It ' Should not throw when setting LogonTimeout' {
108132 $null = $script :configuration | Set-SqlDscRSDatabaseTimeout - LogonTimeout 120 - Force - ErrorAction ' Stop'
109133 }
0 commit comments