File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) Microsoft Corporation.
2
2
# Licensed under the MIT License.
3
3
4
- BeforeDiscovery {
5
- $configYaml = @'
6
- $schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
7
- resources:
8
- - name: test
9
- type: Microsoft.DSC.Debug/Echo
10
- condition: "[equals('skip', 'yes')]"
11
- properties:
12
- output: "This should not be executed"
13
- - name: test2
14
- type: Microsoft.DSC.Debug/Echo
15
- condition: "[equals('no', 'no')]"
16
- properties:
17
- output: "This should be executed"
4
+ Describe ' Resource condition tests' {
5
+ BeforeAll {
6
+ $configYaml = @'
7
+ $schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
8
+ resources:
9
+ - name: test
10
+ type: Microsoft.DSC.Debug/Echo
11
+ condition: "[equals('skip', 'yes')]"
12
+ properties:
13
+ output: "This should not be executed"
14
+ - name: test2
15
+ type: Microsoft.DSC.Debug/Echo
16
+ condition: "[equals('no', 'no')]"
17
+ properties:
18
+ output: "This should be executed"
18
19
'@
20
+ }
19
21
20
- }
21
-
22
- Describe ' Resource condition tests' {
23
22
It ' resource should be skipped for <operation>' - TestCases @ (
24
23
@ { operation = ' get' ; property = ' actualState' },
25
24
@ { operation = ' set' ; property = ' afterState' },
You can’t perform that action at this time.
0 commit comments