Skip to content

Commit 51cab16

Browse files
committed
Remove enum ReportServerEdition
1 parent e715706 commit 51cab16

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

source/Classes/020.SqlRSSetup.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ class SqlRSSetup : ResourceBase
187187
$EditionUpgrade
188188

189189
[DscProperty()]
190-
[ReportServerEdition]
190+
[ValidateSet('Developer', 'Evaluation', 'ExpressAdvanced')]
191+
[System.String]
191192
$Edition
192193

193194
[DscProperty()]

source/Enum/001.ReportServerEdition.ps1

-12
This file was deleted.

tests/Unit/Classes/SqlRSSetup.Tests.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ Describe 'SqlRSSetup\Get()' -Tag 'Get' {
129129
$currentState.MediaPath | Should -BeNullOrEmpty
130130
$currentState.ProductKey | Should -BeNullOrEmpty
131131
$currentState.EditionUpgrade | Should -BeNullOrEmpty
132-
# Returns 0, that means no value was set by GetCurrentState() from the enum ReportServerEdition
133-
$currentState.Edition | Should -Be 0
132+
$currentState.Edition | Should -BeNullOrEmpty
134133
$currentState.LogPath | Should -BeNullOrEmpty
135134
$currentState.InstallFolder | Should -BeNullOrEmpty
136135
$currentState.SuppressRestart | Should -BeFalse
@@ -188,8 +187,7 @@ Describe 'SqlRSSetup\Get()' -Tag 'Get' {
188187
$currentState.MediaPath | Should -BeNullOrEmpty
189188
$currentState.ProductKey | Should -BeNullOrEmpty
190189
$currentState.EditionUpgrade | Should -BeNullOrEmpty
191-
# Returns 0, that means no value was set by GetCurrentState() from the enum ReportServerEdition
192-
$currentState.Edition | Should -Be 0
190+
$currentState.Edition | Should -BeNullOrEmpty
193191
$currentState.LogPath | Should -BeNullOrEmpty
194192
$currentState.InstallFolder | Should -BeNullOrEmpty
195193
$currentState.SuppressRestart | Should -BeFalse

0 commit comments

Comments
 (0)