Skip to content

Commit e86c6e5

Browse files
committed
Revert debug code
1 parent effe3b8 commit e86c6e5

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

source/Classes/020.SqlRSSetup.ps1

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,7 @@ class SqlRSSetup : ResourceBase
219219
[SqlRSSetup] Get()
220220
{
221221
# Call the base method to return the properties.
222-
#return ([ResourceBase] $this).Get()
223-
224-
$getResult = ([ResourceBase] $this).Get()
225-
226-
Write-Verbose -Message 'DEBUG1' -Verbose
227-
Write-Verbose -Message ($getResult | Out-String) -Verbose
228-
Write-Verbose -Message 'DEBUG2' -Verbose
229-
230-
return $getResult
222+
return ([ResourceBase] $this).Get()
231223
}
232224

233225
[System.Boolean] Test()
@@ -338,10 +330,6 @@ class SqlRSSetup : ResourceBase
338330

339331
if ($rsConfiguration)
340332
{
341-
Write-Verbose -Message 'DEBUG3' -Verbose
342-
Write-Verbose -Message ($rsConfiguration | Out-String) -Verbose
343-
Write-Verbose -Message 'DEBUG4' -Verbose
344-
345333
# Instance is installed
346334
Write-Verbose -Message (
347335
$this.localizedData.Instance_Installed -f $properties.InstanceName

tests/Integration/Resources/DSC_SqlRSSetup.Integration.Tests.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,25 +178,24 @@ Describe "$($script:dscResourceName)_Integration" -Tag @('Integration_SQL2017',
178178

179179
if (Test-ContinuousIntegrationTaskCategory -Category 'Integration_SQL2017')
180180
{
181-
Write-Verbose -Message ($resourceCurrentState | Out-String) -Verbose
181+
## Uncomment this line to see the registry key values.
182182
#Write-Verbose -Message ((reg query "HKLM\SOFTWARE\Microsoft\Microsoft SQL Server" /s) | Out-String) -Verbose
183-
Write-Verbose -Message (Get-SqlDscRSSetupConfiguration -InstanceName ('{0}' -f $ConfigurationData.AllNodes.InstanceName) | Out-String) -Verbose
184183

185184
$resourceCurrentState.ProductVersion | Should -BeGreaterThan ([System.Version] '14.0.0.0')
186185
}
187186

188187
if (Test-ContinuousIntegrationTaskCategory -Category 'Integration_SQL2019')
189188
{
189+
## Uncomment this line to see the registry key values.
190190
#Write-Verbose -Message ((reg query "HKLM\SOFTWARE\Microsoft\Microsoft SQL Server" /s) | Out-String) -Verbose
191-
Write-Verbose -Message (Get-SqlDscRSSetupConfiguration -InstanceName ('{0}' -f $ConfigurationData.AllNodes.InstanceName) | Out-String) -Verbose
192191

193192
$resourceCurrentState.ProductVersion | Should -BeGreaterThan ([System.Version] '15.0.0.0')
194193
}
195194

196195
if (Test-ContinuousIntegrationTaskCategory -Category 'Integration_SQL2022')
197196
{
197+
## Uncomment this line to see the registry key values.
198198
#Write-Verbose -Message ((reg query "HKLM\SOFTWARE\Microsoft\Microsoft SQL Server" /s) | Out-String) -Verbose
199-
Write-Verbose -Message (Get-SqlDscRSSetupConfiguration -InstanceName ('{0}' -f $ConfigurationData.AllNodes.InstanceName) | Out-String) -Verbose
200199

201200
$resourceCurrentState.ProductVersion | Should -BeGreaterThan ([System.Version] '16.0.0.0')
202201
}

0 commit comments

Comments
 (0)