File tree Expand file tree Collapse file tree 5 files changed +141
-133
lines changed Expand file tree Collapse file tree 5 files changed +141
-133
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Describe 'exit code tests' {
8
8
}
9
9
It ' non-zero exit code not in manifest has generic message' {
10
10
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'
12
12
}
13
13
It ' success exit code executes without error' {
14
14
$result = dsc resource get - r Test/ ExitCode -- input " { exitCode: 0 }" | ConvertFrom-Json
Original file line number Diff line number Diff line change @@ -84,6 +84,6 @@ Describe 'Tests for listing resources' {
84
84
It ' Invalid adapter returns an error' {
85
85
$out = dsc resource list -- adapter ' foo*' 2>&1 | Out-String
86
86
$LASTEXITCODE | Should - Be 0
87
- $out | Should - BeLike " *ERROR*Adapter 'foo`*' not found*"
87
+ $out | Should - BeLike " *ERROR*Adapter not found: foo` *"
88
88
}
89
89
}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ Describe 'tests for dsc settings' {
48
48
}
49
49
50
50
It ' ensure a new tracing value in settings has effect' {
51
-
51
+
52
52
$script :dscDefaultv1Settings ." tracing" ." level" = " TRACE"
53
53
$script :dscDefaultv1Settings | ConvertTo-Json - Depth 90 | Set-Content - Force - Path $script :dscSettingsFilePath
54
54
@@ -57,11 +57,11 @@ Describe 'tests for dsc settings' {
57
57
}
58
58
59
59
It ' ensure a new resource_path value in settings has effect' {
60
-
60
+
61
61
$script :dscDefaultv1Settings ." resourcePath" ." directories" = @ (" TestDir1" , " TestDir2" )
62
62
$script :dscDefaultv1Settings | ConvertTo-Json - Depth 90 | Set-Content - Force - Path $script :dscSettingsFilePath
63
63
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'
65
65
" $TestDrive /tracing.txt" | Should - FileContentMatchExactly $expectedString
66
66
}
67
67
@@ -71,7 +71,7 @@ Describe 'tests for dsc settings' {
71
71
Set-ItResult - Skip - Because " Setting policy requires sudo"
72
72
return
73
73
}
74
-
74
+
75
75
$script :dscDefaultv1Settings ." tracing" ." level" = " TRACE"
76
76
$script :dscDefaultv1Settings ." resourcePath" ." directories" = @ (" PolicyDir" )
77
77
$script :dscDefaultv1Settings | ConvertTo-Json - Depth 90 | Set-Content - Force - Path $script :policyFilePath
You can’t perform that action at this time.
0 commit comments