@@ -72,6 +72,7 @@ Describe 'Get-SqlDscRSSslCertificateBinding' {
7272 $result = $script :configuration | Get-SqlDscRSSslCertificateBinding - ErrorAction ' Stop'
7373
7474 $binding = $result | Where-Object - FilterScript {
75+ $_.Application -eq ' ReportServerWebService' -and
7576 $_.CertificateHash -eq $script :testCertificateHash -and
7677 $_.Port -eq $script :testPort
7778 }
@@ -80,6 +81,20 @@ Describe 'Get-SqlDscRSSslCertificateBinding' {
8081 $binding.Application | Should - Be ' ReportServerWebService'
8182 $binding.IPAddress | Should - Be $script :testIPAddress
8283 }
84+
85+ It ' Should return the binding for ReportServerWebApp' {
86+ $result = $script :configuration | Get-SqlDscRSSslCertificateBinding - ErrorAction ' Stop'
87+
88+ $binding = $result | Where-Object - FilterScript {
89+ $_.Application -eq ' ReportServerWebApp' -and
90+ $_.CertificateHash -eq $script :testCertificateHash -and
91+ $_.Port -eq $script :testPort
92+ }
93+
94+ $binding | Should -Not - BeNullOrEmpty
95+ $binding.Application | Should - Be ' ReportServerWebApp'
96+ $binding.IPAddress | Should - Be $script :testIPAddress
97+ }
8398 }
8499
85100 Context ' When getting SSL certificate bindings for SQL Server Reporting Services' - Tag @ (' Integration_SQL2019_RS' ) {
@@ -97,6 +112,7 @@ Describe 'Get-SqlDscRSSslCertificateBinding' {
97112 $result = $script :configuration | Get-SqlDscRSSslCertificateBinding - ErrorAction ' Stop'
98113
99114 $binding = $result | Where-Object - FilterScript {
115+ $_.Application -eq ' ReportServerWebService' -and
100116 $_.CertificateHash -eq $script :testCertificateHash -and
101117 $_.Port -eq $script :testPort
102118 }
@@ -105,6 +121,20 @@ Describe 'Get-SqlDscRSSslCertificateBinding' {
105121 $binding.Application | Should - Be ' ReportServerWebService'
106122 $binding.IPAddress | Should - Be $script :testIPAddress
107123 }
124+
125+ It ' Should return the binding for ReportServerWebApp' {
126+ $result = $script :configuration | Get-SqlDscRSSslCertificateBinding - ErrorAction ' Stop'
127+
128+ $binding = $result | Where-Object - FilterScript {
129+ $_.Application -eq ' ReportServerWebApp' -and
130+ $_.CertificateHash -eq $script :testCertificateHash -and
131+ $_.Port -eq $script :testPort
132+ }
133+
134+ $binding | Should -Not - BeNullOrEmpty
135+ $binding.Application | Should - Be ' ReportServerWebApp'
136+ $binding.IPAddress | Should - Be $script :testIPAddress
137+ }
108138 }
109139
110140 Context ' When getting SSL certificate bindings for SQL Server Reporting Services' - Tag @ (' Integration_SQL2022_RS' ) {
@@ -122,6 +152,7 @@ Describe 'Get-SqlDscRSSslCertificateBinding' {
122152 $result = $script :configuration | Get-SqlDscRSSslCertificateBinding - ErrorAction ' Stop'
123153
124154 $binding = $result | Where-Object - FilterScript {
155+ $_.Application -eq ' ReportServerWebService' -and
125156 $_.CertificateHash -eq $script :testCertificateHash -and
126157 $_.Port -eq $script :testPort
127158 }
@@ -130,6 +161,20 @@ Describe 'Get-SqlDscRSSslCertificateBinding' {
130161 $binding.Application | Should - Be ' ReportServerWebService'
131162 $binding.IPAddress | Should - Be $script :testIPAddress
132163 }
164+
165+ It ' Should return the binding for ReportServerWebApp' {
166+ $result = $script :configuration | Get-SqlDscRSSslCertificateBinding - ErrorAction ' Stop'
167+
168+ $binding = $result | Where-Object - FilterScript {
169+ $_.Application -eq ' ReportServerWebApp' -and
170+ $_.CertificateHash -eq $script :testCertificateHash -and
171+ $_.Port -eq $script :testPort
172+ }
173+
174+ $binding | Should -Not - BeNullOrEmpty
175+ $binding.Application | Should - Be ' ReportServerWebApp'
176+ $binding.IPAddress | Should - Be $script :testIPAddress
177+ }
133178 }
134179
135180 Context ' When getting SSL certificate bindings for Power BI Report Server' - Tag @ (' Integration_PowerBI' ) {
@@ -147,6 +192,7 @@ Describe 'Get-SqlDscRSSslCertificateBinding' {
147192 $result = $script :configuration | Get-SqlDscRSSslCertificateBinding - ErrorAction ' Stop'
148193
149194 $binding = $result | Where-Object - FilterScript {
195+ $_.Application -eq ' ReportServerWebService' -and
150196 $_.CertificateHash -eq $script :testCertificateHash -and
151197 $_.Port -eq $script :testPort
152198 }
@@ -155,5 +201,19 @@ Describe 'Get-SqlDscRSSslCertificateBinding' {
155201 $binding.Application | Should - Be ' ReportServerWebService'
156202 $binding.IPAddress | Should - Be $script :testIPAddress
157203 }
204+
205+ It ' Should return the binding for ReportServerWebApp' {
206+ $result = $script :configuration | Get-SqlDscRSSslCertificateBinding - ErrorAction ' Stop'
207+
208+ $binding = $result | Where-Object - FilterScript {
209+ $_.Application -eq ' ReportServerWebApp' -and
210+ $_.CertificateHash -eq $script :testCertificateHash -and
211+ $_.Port -eq $script :testPort
212+ }
213+
214+ $binding | Should -Not - BeNullOrEmpty
215+ $binding.Application | Should - Be ' ReportServerWebApp'
216+ $binding.IPAddress | Should - Be $script :testIPAddress
217+ }
158218 }
159219}
0 commit comments