"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "internal/plans/objchange/objchange_test.go" between
terraform-1.0.2.tar.gz and terraform-1.0.3.tar.gz

About: Terraform is a tool for building, changing, and versioning a datacenter infrastructure (written in Go).

objchange_test.go  (terraform-1.0.2):objchange_test.go  (terraform-1.0.3)
skipping to change at line 1460 skipping to change at line 1460
"single": cty.ObjectVal(map[string]cty.Value{"bar ": cty.NullVal(cty.String)}), "single": cty.ObjectVal(map[string]cty.Value{"bar ": cty.NullVal(cty.String)}),
"list": cty.NullVal(cty.List(cty.Object(map[str ing]cty.Type{"bar": cty.String}))), "list": cty.NullVal(cty.List(cty.Object(map[str ing]cty.Type{"bar": cty.String}))),
"map": cty.NullVal(cty.Map(cty.Object(map[stri ng]cty.Type{"bar": cty.String}))), "map": cty.NullVal(cty.Map(cty.Object(map[stri ng]cty.Type{"bar": cty.String}))),
"set": cty.NullVal(cty.Set(cty.Object(map[stri ng]cty.Type{"bar": cty.String}))), "set": cty.NullVal(cty.Set(cty.Object(map[stri ng]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.ObjectWithOptionalAttrs(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{"optional", "optional_compute d"}), }, []string{"computed", "optional", "opti onal_computed"}),
}))), }))),
}), }),
}, },
} }
for name, test := range tests { for name, test := range tests {
t.Run(name, func(t *testing.T) { t.Run(name, func(t *testing.T) {
got := ProposedNew(test.Schema, test.Prior, test.Config) got := ProposedNew(test.Schema, test.Prior, test.Config)
if !got.RawEquals(test.Want) { if !got.RawEquals(test.Want) {
t.Errorf("wrong result\ngot: %swant: %s", dump.V alue(got), dump.Value(test.Want)) t.Errorf("wrong result\ngot: %swant: %s", dump.V alue(got), dump.Value(test.Want))
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)