From ee1746811f72398d97235335ccf5bf2cbd780d42 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Tue, 16 Jan 2024 16:19:20 -0800 Subject: [PATCH] change test to not use compressed json --- dsc/tests/dsc_parameters.tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsc/tests/dsc_parameters.tests.ps1 b/dsc/tests/dsc_parameters.tests.ps1 index 58d344c7..f62ba82b 100644 --- a/dsc/tests/dsc_parameters.tests.ps1 +++ b/dsc/tests/dsc_parameters.tests.ps1 @@ -229,7 +229,7 @@ Describe 'Parameters tests' { parameters = @{ osFamily = $os } - } | ConvertTo-Json -Compress + } | ConvertTo-Json $config_yaml = @' $schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json @@ -248,7 +248,7 @@ Describe 'Parameters tests' { family: "[parameters('osFamily')]" '@ - $out = dsc -i $config_yaml config -p "$params" test | ConvertFrom-Json + $out = dsc -i $config_yaml config -p $params test | ConvertFrom-Json $LASTEXITCODE | Should -Be 0 $out.results[0].result.actualState.family | Should -BeExactly $os $out.results[0].result.inDesiredState | Should -BeTrue