optional attrs should not be in ProposedNew
This commit is contained in:
parent
af4f4540a9
commit
43123d284e
|
@ -1452,12 +1452,12 @@ func TestProposedNew(t *testing.T) {
|
||||||
"map": cty.NullVal(cty.Map(cty.Object(map[string]cty.Type{"bar": cty.String}))),
|
"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}))),
|
"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{
|
"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,
|
"optional": cty.String,
|
||||||
"computed": cty.String,
|
"computed": cty.String,
|
||||||
"optional_computed": cty.String,
|
"optional_computed": cty.String,
|
||||||
"required": cty.String,
|
"required": cty.String,
|
||||||
}, []string{"computed", "optional", "optional_computed"}),
|
}),
|
||||||
}))),
|
}))),
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue