Skip to content

Commit 9ce6479

Browse files
authored
Test-SqlDscRSAccessible: command to verify accessibility sites (#2401)
1 parent 064f059 commit 9ce6479

20 files changed

+2112
-198
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@
108108
"maxdop",
109109
"hotfixes",
110110
"checkpointing",
111-
"HRESULT"
111+
"HRESULT",
112+
"RSDB"
112113
],
113114
"cSpell.ignorePaths": [
114115
".git"

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
### Added
99

10+
- Added public command `Test-SqlDscRSAccessible` to verify that SQL Server
11+
Reporting Services or Power BI Report Server web sites are accessible.
12+
Supports both CIM configuration input (with dynamic `-Site` parameter) and
13+
explicit URIs. Includes retry logic and optional detailed output with HTTP
14+
status codes.
15+
- Added post-initialization integration tests for RS commands
16+
(`Post.Initialization.RS.Integration.Tests.ps1`) to verify that SSRS and
17+
PBIRS sites are fully accessible after `Initialize-SqlDscRS` runs.
1018
- Added public command `Request-SqlDscRSDatabaseScript` to generate T-SQL scripts
1119
for creating report server databases. Wraps the `GenerateDatabaseCreationScript`
1220
CIM method and supports configuring database name, language (LCID), and
@@ -189,6 +197,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
189197
by calling the `InitializeReportServer` CIM method. Used to complete initial
190198
configuration after database and URL setup
191199
([issue #2014](https://github.com/dsccommunity/SqlServerDsc/issues/2014)).
200+
- Added public command `Request-SqlDscRSDatabaseUpgradeScript` to generate a
201+
T-SQL script for upgrading the report server database schema. Wraps the
202+
`GenerateDatabaseUpgradeScript` CIM method.
192203

193204
### Changed
194205

azure-pipelines.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,18 +547,20 @@ stages:
547547
'tests/Integration/Commands/Enable-SqlDscRsSecureConnection.Integration.Tests.ps1'
548548
'tests/Integration/Commands/Disable-SqlDscRsSecureConnection.Integration.Tests.ps1'
549549
'tests/Integration/Commands/Set-SqlDscRSVirtualDirectory.Integration.Tests.ps1'
550-
'tests/Integration/Commands/Get-SqlDscRSUrlReservation.Integration.Tests.ps1'
551550
'tests/Integration/Commands/Add-SqlDscRSUrlReservation.Integration.Tests.ps1'
552-
'tests/Integration/Commands/Remove-SqlDscRSUrlReservation.Integration.Tests.ps1'
551+
'tests/Integration/Commands/Get-SqlDscRSUrlReservation.Integration.Tests.ps1'
553552
'tests/Integration/Commands/Set-SqlDscRSUrlReservation.Integration.Tests.ps1'
554553
'tests/Integration/Commands/Set-SqlDscRSDatabaseConnection.Integration.Tests.ps1'
555554
'tests/Integration/Commands/Restart-SqlDscRSService.Integration.Tests.ps1'
556555
'tests/Integration/Commands/Request-SqlDscRSDatabaseUpgradeScript.Integration.Tests.ps1'
557556
'tests/Integration/Commands/Test-SqlDscRSInitialized.Integration.Tests.ps1'
558557
# Group 4
559558
'tests/Integration/Commands/Initialize-SqlDscRS.Integration.Tests.ps1'
559+
# Group 5 - Post-initialization validation
560+
'tests/Integration/Commands/Post.Initialization.RS.Integration.Tests.ps1'
560561
# Group 8
561562
'tests/Integration/Commands/Repair-SqlDscReportingService.Integration.Tests.ps1'
563+
'tests/Integration/Commands/Remove-SqlDscRSUrlReservation.Integration.Tests.ps1'
562564
# Group 9
563565
'tests/Integration/Commands/Uninstall-SqlDscReportingService.Integration.Tests.ps1'
564566
)
@@ -631,17 +633,19 @@ stages:
631633
'tests/Integration/Commands/Enable-SqlDscRsSecureConnection.Integration.Tests.ps1'
632634
'tests/Integration/Commands/Disable-SqlDscRsSecureConnection.Integration.Tests.ps1'
633635
'tests/Integration/Commands/Set-SqlDscRSVirtualDirectory.Integration.Tests.ps1'
634-
'tests/Integration/Commands/Get-SqlDscRSUrlReservation.Integration.Tests.ps1'
635636
'tests/Integration/Commands/Add-SqlDscRSUrlReservation.Integration.Tests.ps1'
636-
'tests/Integration/Commands/Remove-SqlDscRSUrlReservation.Integration.Tests.ps1'
637+
'tests/Integration/Commands/Get-SqlDscRSUrlReservation.Integration.Tests.ps1'
637638
'tests/Integration/Commands/Set-SqlDscRSUrlReservation.Integration.Tests.ps1'
638639
'tests/Integration/Commands/Set-SqlDscRSDatabaseConnection.Integration.Tests.ps1'
639640
'tests/Integration/Commands/Restart-SqlDscRSService.Integration.Tests.ps1'
640641
'tests/Integration/Commands/Test-SqlDscRSInitialized.Integration.Tests.ps1'
641642
# Group 4
642643
'tests/Integration/Commands/Initialize-SqlDscRS.Integration.Tests.ps1'
644+
# Group 5 - Post-initialization validation
645+
'tests/Integration/Commands/Post.Initialization.RS.Integration.Tests.ps1'
643646
# Group 8
644647
'tests/Integration/Commands/Repair-SqlDscPowerBIReportServer.Integration.Tests.ps1'
648+
'tests/Integration/Commands/Remove-SqlDscRSUrlReservation.Integration.Tests.ps1'
645649
# Group 9
646650
'tests/Integration/Commands/Uninstall-SqlDscPowerBIReportServer.Integration.Tests.ps1'
647651
)

source/Public/Add-SqlDscRSUrlReservation.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
#>
8787
function Add-SqlDscRSUrlReservation
8888
{
89-
# cSpell: ignore PBIRS
9089
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples', '', Justification = 'Because the examples use pipeline input the rule cannot validate.')]
9190
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Medium')]
9291
[OutputType([System.Object])]

source/Public/Disable-SqlDscRsSecureConnection.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
#>
7070
function Disable-SqlDscRsSecureConnection
7171
{
72-
# cSpell: ignore PBIRS
7372
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples', '', Justification = 'Because the examples use pipeline input the rule cannot validate.')]
7473
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Medium')]
7574
[Alias('Disable-SqlDscRSTls')]

source/Public/Enable-SqlDscRsSecureConnection.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
#>
7474
function Enable-SqlDscRsSecureConnection
7575
{
76-
# cSpell: ignore PBIRS
7776
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples', '', Justification = 'Because the examples use pipeline input the rule cannot validate.')]
7877
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Medium')]
7978
[Alias('Enable-SqlDscRSTls')]

source/Public/Remove-SqlDscRSUrlReservation.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
#>
8787
function Remove-SqlDscRSUrlReservation
8888
{
89-
# cSpell: ignore PBIRS
9089
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples', '', Justification = 'Because the examples use pipeline input the rule cannot validate.')]
9190
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
9291
[OutputType([System.Object])]

source/Public/Set-SqlDscRSUrlReservation.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
#>
8585
function Set-SqlDscRSUrlReservation
8686
{
87-
# cSpell: ignore PBIRS
8887
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples', '', Justification = 'Because the examples use pipeline input the rule cannot validate.')]
8988
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
9089
[OutputType([System.Object])]

0 commit comments

Comments
 (0)