optional attrs should not be in ProposedNew

This commit is contained in:
James Bardin 2021-09-10 09:38:59 -04:00
parent af4f4540a9
commit 43123d284e
1 changed files with 2 additions and 2 deletions

View File

@ -1452,12 +1452,12 @@ func TestProposedNew(t *testing.T) {
"map": cty.NullVal(cty.Map(cty.Object(map[string]cty.Type{"bar": cty.String}))),
"set": cty.NullVal(cty.Set(cty.Object(map[string]cty.Type{"bar": cty.String}))),
"nested_map": cty.NullVal(cty.Map(cty.Object(map[string]cty.Type{
"inner": cty.ObjectWithOptionalAttrs(map[string]cty.Type{
"inner": cty.Object(map[string]cty.Type{
"optional": cty.String,
"computed": cty.String,
"optional_computed": cty.String,
"required": cty.String,
}, []string{"computed", "optional", "optional_computed"}),
}),
}))),
}),
},