Skip to content

Commit 3a2fd32

Browse files
committed
fix toml format and tests
1 parent 2b833b6 commit 3a2fd32

File tree

5 files changed

+141
-133
lines changed

5 files changed

+141
-133
lines changed

dsc/tests/dsc.exit_code.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Describe 'exit code tests' {
88
}
99
It 'non-zero exit code not in manifest has generic message' {
1010
dsc resource get -r Test/ExitCode --input "{ exitCode: 1 }" 2> $TestDrive/tracing.txt
11-
"$TestDrive/tracing.txt" | Should -FileContentMatchExactly 'Exit code 1'
11+
"$TestDrive/tracing.txt" | Should -FileContentMatchExactly 'exit code 1'
1212
}
1313
It 'success exit code executes without error' {
1414
$result = dsc resource get -r Test/ExitCode --input "{ exitCode: 0 }" | ConvertFrom-Json

dsc/tests/dsc_resource_list.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ Describe 'Tests for listing resources' {
8484
It 'Invalid adapter returns an error' {
8585
$out = dsc resource list --adapter 'foo*' 2>&1 | Out-String
8686
$LASTEXITCODE | Should -Be 0
87-
$out | Should -BeLike "*ERROR*Adapter 'foo`*' not found*"
87+
$out | Should -BeLike "*ERROR*Adapter not found: foo`*"
8888
}
8989
}

dsc/tests/dsc_settings.tests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Describe 'tests for dsc settings' {
4848
}
4949

5050
It 'ensure a new tracing value in settings has effect' {
51-
51+
5252
$script:dscDefaultv1Settings."tracing"."level" = "TRACE"
5353
$script:dscDefaultv1Settings | ConvertTo-Json -Depth 90 | Set-Content -Force -Path $script:dscSettingsFilePath
5454

@@ -57,11 +57,11 @@ Describe 'tests for dsc settings' {
5757
}
5858

5959
It 'ensure a new resource_path value in settings has effect' {
60-
60+
6161
$script:dscDefaultv1Settings."resourcePath"."directories" = @("TestDir1","TestDir2")
6262
$script:dscDefaultv1Settings | ConvertTo-Json -Depth 90 | Set-Content -Force -Path $script:dscSettingsFilePath
6363
dsc -l debug resource list 2> $TestDrive/tracing.txt
64-
$expectedString = 'Using Resource Path: "TestDir1'+[System.IO.Path]::PathSeparator+'TestDir2'
64+
$expectedString = 'Using Resource Path: TestDir1'+[System.IO.Path]::PathSeparator+'TestDir2'
6565
"$TestDrive/tracing.txt" | Should -FileContentMatchExactly $expectedString
6666
}
6767

@@ -71,7 +71,7 @@ Describe 'tests for dsc settings' {
7171
Set-ItResult -Skip -Because "Setting policy requires sudo"
7272
return
7373
}
74-
74+
7575
$script:dscDefaultv1Settings."tracing"."level" = "TRACE"
7676
$script:dscDefaultv1Settings."resourcePath"."directories" = @("PolicyDir")
7777
$script:dscDefaultv1Settings | ConvertTo-Json -Depth 90 | Set-Content -Force -Path $script:policyFilePath

0 commit comments

Comments
 (0)