Skip to content

Commit 1bc53d7

Browse files
committed
Removed unused tests
1 parent 1f3e404 commit 1bc53d7

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

dsc/tests/dsc_functions.tests.ps1

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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
}

lib/dsc-lib/locales/en-us.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,6 @@ description = "Encodes a URI component using percent-encoding"
538538

539539
[functions.uriComponentToString]
540540
description = "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}"
544541
invalidUtf8 = "Invalid UTF-8 in decoded string: %{error}"
545542

546543
[functions.userFunction]

0 commit comments

Comments
 (0)