@@ -249,13 +249,13 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Set-TargetResource' -Tag 'Set' {
249249 }
250250 }
251251
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' {
253253 BeforeAll {
254254 InModuleScope - ScriptBlock {
255255
256256 $script :setTargetResourceParameters = @ {
257257 IsSingleInstance = ' Yes'
258- AiaUri = $AiaList + (' http://tertiary/Certs/<CATruncatedName>.cer' )
258+ AiaUri = $AiaList + @ (' http://tertiary/Certs/<CATruncatedName>.cer' )
259259 OcspUri = $OcspList
260260 AllowRestartService = $true
261261 }
@@ -301,7 +301,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Set-TargetResource' -Tag 'Set' {
301301 }
302302 }
303303
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' {
305305 BeforeAll {
306306 InModuleScope - ScriptBlock {
307307 $script :setTargetResourceParameters = @ {
@@ -352,7 +352,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Set-TargetResource' -Tag 'Set' {
352352 }
353353 }
354354
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' {
356356 BeforeAll {
357357 InModuleScope - ScriptBlock {
358358 $script :setTargetResourceParameters = @ {
@@ -403,7 +403,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Set-TargetResource' -Tag 'Set' {
403403 }
404404 }
405405
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' {
407407 BeforeAll {
408408 InModuleScope - ScriptBlock {
409409 $script :setTargetResourceParameters = @ {
@@ -761,7 +761,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Test-TargetResource' -Tag 'Test' {
761761 InModuleScope - ScriptBlock {
762762 $script :testTargetResourceParameters = @ {
763763 IsSingleInstance = ' Yes'
764- AiaUri = $AiaList + (' http://tertiary/Certs/<CATruncatedName>.cer' )
764+ AiaUri = $AiaList + @ (' http://tertiary/Certs/<CATruncatedName>.cer' )
765765 OcspUri = $OcspList
766766 AllowRestartService = $false
767767 }
@@ -800,7 +800,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Test-TargetResource' -Tag 'Test' {
800800 BeforeAll {
801801 $script :testTargetResourceParameters = @ {
802802 IsSingleInstance = ' Yes'
803- AiaUri = $AiaList + (' http://tertiary/Certs/<CATruncatedName>.cer' )
803+ AiaUri = $AiaList + @ (' http://tertiary/Certs/<CATruncatedName>.cer' )
804804 OcspUri = $OcspList + @ (' http://tertiary-ocsp-responder/ocsp' )
805805 AllowRestartService = $false
806806 }
@@ -1068,7 +1068,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
10681068 }
10691069 }
10701070
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' {
10721072 BeforeAll {
10731073 $getCAAuthorityInformationAccessMock = {
10741074 @ (
@@ -1100,7 +1100,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
11001100 }
11011101 }
11021102
1103- It ' Should return null ' {
1103+ It ' Should return one entry ' {
11041104 InModuleScope - ScriptBlock {
11051105 Set-StrictMode - Version 1.0
11061106
@@ -1115,7 +1115,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
11151115 }
11161116 }
11171117
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' {
11191119 BeforeAll {
11201120 $getCAAuthorityInformationAccessMock = {
11211121 @ (
@@ -1152,7 +1152,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
11521152 }
11531153 }
11541154
1155- It ' Should return null ' {
1155+ It ' Should return two entries ' {
11561156 InModuleScope - ScriptBlock {
11571157 Set-StrictMode - Version 1.0
11581158
@@ -1168,7 +1168,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
11681168 }
11691169 }
11701170
1171- Context ' When ExtensionType is AddToCertificateOcsp and there are only AddToCertificateAia URIs' {
1171+ Context ' When ExtensionType is AddToCertificateAia and there are only AddToCertificateAia URIs' {
11721172 BeforeAll {
11731173 $getCAAuthorityInformationAccessMock = {
11741174 @ (
@@ -1242,7 +1242,7 @@ Describe 'DSC_AdcsAuthorityInformationAccess\Get-CaAiaUriList' {
12421242 }
12431243 }
12441244
1245- It ' Should return null ' {
1245+ It ' Should return one OCSP entry ' {
12461246 InModuleScope - ScriptBlock {
12471247 Set-StrictMode - Version 1.0
12481248
0 commit comments