|
26 | 26 | Describe $Global:DSCResourceName { |
27 | 27 |
|
28 | 28 | Context "No scheduled task exists, but it should" { |
29 | | - CurrentConfig = "xScheduledTask_Add" |
| 29 | + $CurrentConfig = "xScheduledTask_Add" |
30 | 30 | $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
31 | 31 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
32 | 32 |
|
|
48 | 48 | } |
49 | 49 |
|
50 | 50 | Context "A scheduled task with minutes based repetition exists, but has the wrong settings" { |
51 | | - CurrentConfig = "xScheduledTask_Edit1" |
| 51 | + $CurrentConfig = "xScheduledTask_Edit1" |
52 | 52 | $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
53 | 53 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
54 | 54 |
|
|
70 | 70 | } |
71 | 71 |
|
72 | 72 | Context "A scheduled task with hourly based repetition exists, but has the wrong settings" { |
73 | | - CurrentConfig = "xScheduledTask_Edit2" |
| 73 | + $CurrentConfig = "xScheduledTask_Edit2" |
74 | 74 | $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
75 | 75 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
76 | 76 |
|
|
92 | 92 | } |
93 | 93 |
|
94 | 94 | Context "A scheduled task with daily based repetition exists, but has the wrong settings" { |
95 | | - CurrentConfig = "xScheduledTask_Edit3" |
| 95 | + $CurrentConfig = "xScheduledTask_Edit3" |
96 | 96 | $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
97 | 97 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
98 | 98 |
|
|
114 | 114 | } |
115 | 115 |
|
116 | 116 | Context "A scheduled task exists and is configured with the wrong working directory" { |
117 | | - CurrentConfig = "xScheduledTask_Edit4" |
| 117 | + $CurrentConfig = "xScheduledTask_Edit4" |
118 | 118 | $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
119 | 119 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
120 | 120 |
|
|
136 | 136 | } |
137 | 137 |
|
138 | 138 | Context "A scheduled task exists and is configured with the wrong executable arguments" { |
139 | | - CurrentConfig = "xScheduledTask_Edit5" |
| 139 | + $CurrentConfig = "xScheduledTask_Edit5" |
140 | 140 | $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
141 | 141 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
142 | 142 |
|
|
158 | 158 | } |
159 | 159 |
|
160 | 160 | Context "A scheduled task exists, but it shouldn't" { |
161 | | - CurrentConfig = "xScheduledTask_Remove" |
| 161 | + $CurrentConfig = "xScheduledTask_Remove" |
162 | 162 | $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
163 | 163 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
164 | 164 |
|
|
0 commit comments