config: additional tests for sanity
This commit is contained in:
parent
a74775d077
commit
b19a976696
|
@ -33,6 +33,26 @@ func TestInterpolationWalker_detect(t *testing.T) {
|
|||
},
|
||||
},
|
||||
|
||||
{
|
||||
Input: map[string]interface{}{
|
||||
"foo": "${aws_instance.foo.*.num}",
|
||||
},
|
||||
Result: []Interpolation{
|
||||
&VariableInterpolation{
|
||||
Variable: &ResourceVariable{
|
||||
Type: "aws_instance",
|
||||
Name: "foo",
|
||||
Field: "num",
|
||||
|
||||
Multi: true,
|
||||
Index: -1,
|
||||
|
||||
key: "aws_instance.foo.*.num",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
Input: map[string]interface{}{
|
||||
"foo": "${lookup(var.foo)}",
|
||||
|
|
Loading…
Reference in New Issue