add failing test for multiple computed set elems
This commit is contained in:
parent
58c9c2311a
commit
79d1e0d7cf
|
@ -496,3 +496,34 @@ resource "test_resource_nested_set" "foo" {
|
|||
},
|
||||
})
|
||||
}
|
||||
|
||||
func TestResourceNestedSet_multipleUnknownSetElements(t *testing.T) {
|
||||
checkFunc := func(s *terraform.State) error {
|
||||
return nil
|
||||
}
|
||||
resource.UnitTest(t, resource.TestCase{
|
||||
Providers: testAccProviders,
|
||||
CheckDestroy: testAccCheckResourceDestroy,
|
||||
Steps: []resource.TestStep{
|
||||
resource.TestStep{
|
||||
Config: strings.TrimSpace(`
|
||||
resource "test_resource_nested_set" "a" {
|
||||
}
|
||||
|
||||
resource "test_resource_nested_set" "b" {
|
||||
}
|
||||
|
||||
resource "test_resource_nested_set" "c" {
|
||||
multi {
|
||||
optional = test_resource_nested_set.a.id
|
||||
}
|
||||
multi {
|
||||
optional = test_resource_nested_set.b.id
|
||||
}
|
||||
}
|
||||
`),
|
||||
Check: checkFunc,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue