@@ -249,13 +249,13 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Set-TargetResource' -Tag 'Set' {
249
249
}
250
250
}
251
251
252
- Context ' When AIA and OCSP are passed but OCSP is missing a URI' {
252
+ Context ' When AIA and OCSP are passed but AIA is missing a URI' {
253
253
BeforeAll {
254
254
InModuleScope - ScriptBlock {
255
255
256
256
$script :setTargetResourceParameters = @ {
257
257
IsSingleInstance = ' Yes'
258
- AiaUri = $AiaList + (' http://tertiary/Certs/<CATruncatedName>.cer' )
258
+ AiaUri = $AiaList + @ (' http://tertiary/Certs/<CATruncatedName>.cer' )
259
259
OcspUri = $OcspList
260
260
AllowRestartService = $true
261
261
}
@@ -301,7 +301,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Set-TargetResource' -Tag 'Set' {
301
301
}
302
302
}
303
303
304
- Context ' When AIA and OCSP are passed but AIA is missing a URI' {
304
+ Context ' When AIA and OCSP are passed but OCSP is missing a URI' {
305
305
BeforeAll {
306
306
InModuleScope - ScriptBlock {
307
307
$script :setTargetResourceParameters = @ {
@@ -352,7 +352,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Set-TargetResource' -Tag 'Set' {
352
352
}
353
353
}
354
354
355
- Context ' When AIA and OCSP are passed but OCSP has an extra URI' {
355
+ Context ' When AIA and OCSP are passed but AIA has an extra URI' {
356
356
BeforeAll {
357
357
InModuleScope - ScriptBlock {
358
358
$script :setTargetResourceParameters = @ {
@@ -403,7 +403,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Set-TargetResource' -Tag 'Set' {
403
403
}
404
404
}
405
405
406
- Context ' When AIA and OCSP are passed but AIA has an extra URI' {
406
+ Context ' When AIA and OCSP are passed but OCSP has an extra URI' {
407
407
BeforeAll {
408
408
InModuleScope - ScriptBlock {
409
409
$script :setTargetResourceParameters = @ {
@@ -761,7 +761,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Test-TargetResource' -Tag 'Test' {
761
761
InModuleScope - ScriptBlock {
762
762
$script :testTargetResourceParameters = @ {
763
763
IsSingleInstance = ' Yes'
764
- AiaUri = $AiaList + (' http://tertiary/Certs/<CATruncatedName>.cer' )
764
+ AiaUri = $AiaList + @ (' http://tertiary/Certs/<CATruncatedName>.cer' )
765
765
OcspUri = $OcspList
766
766
AllowRestartService = $false
767
767
}
@@ -800,7 +800,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Test-TargetResource' -Tag 'Test' {
800
800
BeforeAll {
801
801
$script :testTargetResourceParameters = @ {
802
802
IsSingleInstance = ' Yes'
803
- AiaUri = $AiaList + (' http://tertiary/Certs/<CATruncatedName>.cer' )
803
+ AiaUri = $AiaList + @ (' http://tertiary/Certs/<CATruncatedName>.cer' )
804
804
OcspUri = $OcspList + @ (' http://tertiary-ocsp-responder/ocsp' )
805
805
AllowRestartService = $false
806
806
}
@@ -1068,7 +1068,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
1068
1068
}
1069
1069
}
1070
1070
1071
- Context ' When ExtensionType is AddToCertificateAia and there is AddToCertificateAia URI and one AddToCertificateOcsp URI' {
1071
+ Context ' When ExtensionType is AddToCertificateAia and there is one AddToCertificateAia URI and one AddToCertificateOcsp URI' {
1072
1072
BeforeAll {
1073
1073
$getCAAuthorityInformationAccessMock = {
1074
1074
@ (
@@ -1100,7 +1100,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
1100
1100
}
1101
1101
}
1102
1102
1103
- It ' Should return null ' {
1103
+ It ' Should return one entry ' {
1104
1104
InModuleScope - ScriptBlock {
1105
1105
Set-StrictMode - Version 1.0
1106
1106
@@ -1115,7 +1115,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
1115
1115
}
1116
1116
}
1117
1117
1118
- Context ' When ExtensionType is AddToCertificateAia and there is AddToCertificateAia URI and two AddToCertificateOcsp URIs' {
1118
+ Context ' When ExtensionType is AddToCertificateAia and there is two AddToCertificateAia URI and one AddToCertificateOcsp URIs' {
1119
1119
BeforeAll {
1120
1120
$getCAAuthorityInformationAccessMock = {
1121
1121
@ (
@@ -1152,7 +1152,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
1152
1152
}
1153
1153
}
1154
1154
1155
- It ' Should return null ' {
1155
+ It ' Should return two entries ' {
1156
1156
InModuleScope - ScriptBlock {
1157
1157
Set-StrictMode - Version 1.0
1158
1158
@@ -1168,7 +1168,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
1168
1168
}
1169
1169
}
1170
1170
1171
- Context ' When ExtensionType is AddToCertificateOcsp and there are only AddToCertificateAia URIs' {
1171
+ Context ' When ExtensionType is AddToCertificateAia and there are only AddToCertificateAia URIs' {
1172
1172
BeforeAll {
1173
1173
$getCAAuthorityInformationAccessMock = {
1174
1174
@ (
@@ -1242,7 +1242,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
1242
1242
}
1243
1243
}
1244
1244
1245
- It ' Should return null ' {
1245
+ It ' Should return one OCSP entry ' {
1246
1246
InModuleScope - ScriptBlock {
1247
1247
Set-StrictMode - Version 1.0
1248
1248
0 commit comments