Skip to content

Commit 67aa46b

Browse files
committed
Fix review comments
1 parent d01aa49 commit 67aa46b

File tree

5 files changed

+30
-29
lines changed

5 files changed

+30
-29
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@
7575
"fastbuild",
7676
"CODEOWNERS",
7777
"analyzersettings",
78-
"sqlcmd"
78+
"sqlcmd",
79+
"PBIRS",
80+
"SSRS"
7981
],
8082
"cSpell.ignorePaths": [
8183
".git"

source/Classes/020.SqlRSSetup.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@
162162
[DscResource(RunAsCredential = 'Optional')]
163163
class SqlRSSetup : ResourceBase
164164
{
165-
# cSpell:ignore SSRS PBIRS
166165
[DscProperty(Key)]
167166
[System.String]
168167
$InstanceName

source/en-US/SqlRSSetup.strings.psd1

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@
44
resource SqlRSSetup.
55
#>
66

7-
# cSpell:ignore SSRS PBIRS
7+
# cSpell:ignore SRSS
88
ConvertFrom-StringData @'
99
## Strings overrides for the ResourceBase's default strings.
1010
# None
1111
12-
## Strings directly used by the derived class SqlRSSetup.
13-
Getting_Information_Instance = Getting information about instance '{0}'.
14-
Instance_NotInstalled = Instance '{0}' is not installed.
15-
Instance_Installed = Instance '{0}' is installed.
16-
AcceptLicensingTerms_Required = AcceptLicensingTerms must be set for Install and Repair operations.
17-
MediaPath_Invalid = The media path '{0}' does not exist.
18-
MediaPath_DoesNotHaveRequiredExtension = The media path '{0}' does not reference an executable with the required extension .exe.
19-
EditionOrProductKeyMissing = Neither the parameters Edition or ProductKey was specified.
20-
EditionUpgrade_RequiresKeyOrEdition = EditionUpgrade requires either ProductKey or Edition to be specified.
21-
LogPath_ParentMissing = The parent directory '{0}' for LogPath does not exist.
22-
InstallFolder_ParentMissing = The parent directory '{0}' for InstallFolder does not exist.
23-
Installing_ReportingServices = Installing SQL Server Reporting Services.
24-
Installing_PowerBIReportServer = Installing Power BI Report Server.
25-
Repairing_ReportingServices = Repairing SQL Server Reporting Services.
26-
Repairing_PowerBIReportServer = Repairing Power BI Report Server.
27-
Uninstalling_ReportingServices = Uninstalling SQL Server Reporting Services.
28-
Uninstalling_PowerBIReportServer = Uninstalling Power BI Report Server.
29-
NotDesiredProductVersion = The product version '{0}' is not the desired for the instance '{1}'. Desired version in executable: '{2}'.
30-
InstanceName_Invalid = The instance name '{0}' is invalid. Only one of the supported instance name can be used, either SSRS or PBIRS depending on what setup executable is used.
31-
CannotDetermineProductVersion = Could not determine the product version for the installed instance '{0}'. Run the command `Get-SqlDscRSSetupConfiguration -InstanceName '{0}'` to get the configuration for the instance and verify that it returns a valid product version.
32-
CannotDetermineEdition = Could not determine the edition for the installed instance '{0}'. Run the command `Get-SqlDscRSSetupConfiguration -InstanceName '{0}'` to get the configuration for the instance and verify that it returns a valid edition.
33-
NotDesiredEdition = The edition '{0}' is not the desired for the instance '{1}'. Desired edition in executable: '{2}'.
12+
## Strings directly used by the derived class SqlRSSetup. (SRSS0001)
13+
Getting_Information_Instance = Getting information about instance '{0}'. (SRSS0002)
14+
Instance_NotInstalled = Instance '{0}' is not installed. (SRSS0003)
15+
Instance_Installed = Instance '{0}' is installed. (SRSS0004)
16+
AcceptLicensingTerms_Required = AcceptLicensingTerms must be set for Install and Repair operations. (SRSS0005)
17+
MediaPath_Invalid = The media path '{0}' does not exist. (SRSS0006)
18+
MediaPath_DoesNotHaveRequiredExtension = The media path '{0}' does not reference an executable with the required extension .exe. (SRSS0007)
19+
EditionOrProductKeyMissing = Neither the parameters Edition or ProductKey was specified. (SRSS0008)
20+
EditionUpgrade_RequiresKeyOrEdition = EditionUpgrade requires either ProductKey or Edition to be specified. (SRSS0009)
21+
LogPath_ParentMissing = The parent directory '{0}' for LogPath does not exist. (SRSS0010)
22+
InstallFolder_ParentMissing = The parent directory '{0}' for InstallFolder does not exist. (SRSS0011)
23+
Installing_ReportingServices = Installing SQL Server Reporting Services. (SRSS0012)
24+
Installing_PowerBIReportServer = Installing Power BI Report Server. (SRSS0013)
25+
Repairing_ReportingServices = Repairing SQL Server Reporting Services. (SRSS0014)
26+
Repairing_PowerBIReportServer = Repairing Power BI Report Server. (SRSS0015)
27+
Uninstalling_ReportingServices = Uninstalling SQL Server Reporting Services. (SRSS0016)
28+
Uninstalling_PowerBIReportServer = Uninstalling Power BI Report Server. (SRSS0017)
29+
NotDesiredProductVersion = The product version '{0}' is not the desired for the instance '{1}'. Desired version in executable: '{2}'. (SRSS0018)
30+
InstanceName_Invalid = The instance name '{0}' is invalid. Only one of the supported instance name can be used, either SSRS or PBIRS depending on what setup executable is used. (SRSS0019)
31+
CannotDetermineProductVersion = Could not determine the product version for the installed instance '{0}'. Run the command `Get-SqlDscRSSetupConfiguration -InstanceName '{0}'` to get the configuration for the instance and verify that it returns a valid product version. (SRSS0020)
32+
CannotDetermineEdition = Could not determine the edition for the installed instance '{0}'. Run the command `Get-SqlDscRSSetupConfiguration -InstanceName '{0}'` to get the configuration for the instance and verify that it returns a valid edition. (SRSS0021)
33+
NotDesiredEdition = The edition '{0}' is not the desired for the instance '{1}'. Desired edition in executable: '{2}'. (SRSS0022)
3434
'@

tests/Integration/Resources/DSC_SqlRSSetup.config.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ else
1919
NodeName = 'localhost'
2020
InstanceName = if (Test-ContinuousIntegrationTaskCategory -Category 'Integration_PowerBI')
2121
{
22-
'PBIRS' # cSpell:ignore PBIRS
22+
'PBIRS'
2323
}
2424
else
2525
{

tests/Unit/Classes/SqlRSSetup.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ Describe 'SqlRSSetup\Modify()' -Tag 'Modify' {
720720
}
721721
}
722722

723-
Context 'When current state is missing PBIRS instance' { # cSpell:ignore PBIRS
723+
Context 'When current state is missing PBIRS instance' {
724724
Context 'When the install command is successful' {
725725
BeforeAll {
726726
InModuleScope -ScriptBlock {
@@ -866,7 +866,7 @@ Describe 'SqlRSSetup\Modify()' -Tag 'Modify' {
866866
}
867867
}
868868

869-
Context 'When current state is missing PBIRS instance' { # cSpell:ignore PBIRS
869+
Context 'When current state is missing PBIRS instance' {
870870
Context 'When the uninstall command is successful' {
871871
BeforeAll {
872872
InModuleScope -ScriptBlock {
@@ -1012,7 +1012,7 @@ Describe 'SqlRSSetup\Modify()' -Tag 'Modify' {
10121012
}
10131013
}
10141014

1015-
Context 'When current state is missing PBIRS instance' { # cSpell:ignore PBIRS
1015+
Context 'When current state is missing PBIRS instance' {
10161016
Context 'When the repair command is successful' {
10171017
BeforeAll {
10181018
InModuleScope -ScriptBlock {

0 commit comments

Comments
 (0)