We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db99514 commit cd97ceaCopy full SHA for cd97cea
dsc/tests/dsc_expressions.tests.ps1
@@ -17,6 +17,7 @@ Describe 'Expressions tests' {
17
@{ text = "[parameters('test')['array'][1][0]]"; expected = 'two' }
18
@{ text = "[parameters('test')['objectArray'][0]['name']]"; expected = 'one' }
19
@{ text = "[parameters('test')['objectArray'][1]['value'][1]['name']]"; expected = 'three' }
20
+ @{ text = "[parameters('test')[parameters('propertyName')]]"; expected = '@{world=there}' }
21
) {
22
param($text, $expected)
23
$yaml = @"
@@ -40,6 +41,9 @@ Describe 'Expressions tests' {
40
41
- nestedObject:
42
name: three
43
value: 3
44
+ propertyName:
45
+ type: string
46
+ defaultValue: hello
47
resources:
48
- name: echo
49
type: Microsoft.DSC.Debug/Echo
0 commit comments