add failing test for multiple computed set elems

This commit is contained in:
James Bardin 2019-02-04 19:15:15 -05:00
parent 58c9c2311a
commit 79d1e0d7cf
1 changed files with 31 additions and 0 deletions

View File

@ -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,
},
},
})
}