File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -971,24 +971,4 @@ Describe 'tests for function expressions' {
971971 $out = $config_yaml | dsc config get -f - | ConvertFrom-Json
972972 $out.results [0 ].result.actualState.output | Should - Be $expected
973973 }
974-
975- It ' uriComponentToString function error handling: <expression>' - TestCases @ (
976- @ { expression = " [uriComponentToString('incomplete%2')]" ; expectedError = ' Invalid percent-encoding: incomplete sequence at position' }
977- @ { expression = " [uriComponentToString('invalid%ZZ')]" ; expectedError = ' Invalid percent-encoding:.*is not valid hex at position' }
978- ) {
979- param ($expression , $expectedError )
980-
981- $config_yaml = @"
982- `$ schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
983- resources:
984- - name: Echo
985- type: Microsoft.DSC.Debug/Echo
986- properties:
987- output: `" $expression `"
988- "@
989- $null = dsc - l trace config get - i $config_yaml 2> $TestDrive / error.log
990- $LASTEXITCODE | Should -Not - Be 0
991- $errorContent = Get-Content $TestDrive / error.log - Raw
992- $errorContent | Should -Match $expectedError
993- }
994974}
Original file line number Diff line number Diff line change @@ -538,9 +538,6 @@ description = "Encodes a URI component using percent-encoding"
538538
539539[functions .uriComponentToString ]
540540description = " Returns a string of a URI encoded value"
541- incompleteSequence = " Invalid percent-encoding: incomplete sequence at position %{position}"
542- invalidHexDigits = " Invalid percent-encoding: invalid hex digits at position %{position}"
543- invalidHexValue = " Invalid percent-encoding: '%{hex}' is not valid hex at position %{position}"
544541invalidUtf8 = " Invalid UTF-8 in decoded string: %{error}"
545542
546543[functions .userFunction ]
You can’t perform that action at this time.
0 commit comments