|
|
|
|
@ -467,6 +467,50 @@ func TestStateEqual(t *testing.T) {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Meta with complex types that have been altered during serialization
|
|
|
|
|
{
|
|
|
|
|
"same meta with complex types that have been json-ified",
|
|
|
|
|
true,
|
|
|
|
|
&State{
|
|
|
|
|
Modules: []*ModuleState{
|
|
|
|
|
&ModuleState{
|
|
|
|
|
Path: rootModulePath,
|
|
|
|
|
Resources: map[string]*ResourceState{
|
|
|
|
|
"test_instance.foo": &ResourceState{
|
|
|
|
|
Primary: &InstanceState{
|
|
|
|
|
Meta: map[string]interface{}{
|
|
|
|
|
"timeouts": map[string]interface{}{
|
|
|
|
|
"create": int(42),
|
|
|
|
|
"read": "27",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
&State{
|
|
|
|
|
Modules: []*ModuleState{
|
|
|
|
|
&ModuleState{
|
|
|
|
|
Path: rootModulePath,
|
|
|
|
|
Resources: map[string]*ResourceState{
|
|
|
|
|
"test_instance.foo": &ResourceState{
|
|
|
|
|
Primary: &InstanceState{
|
|
|
|
|
Meta: map[string]interface{}{
|
|
|
|
|
"timeouts": map[string]interface{}{
|
|
|
|
|
"create": float64(42),
|
|
|
|
|
"read": "27",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for i, tc := range cases {
|
|
|
|
|
|