|
|
|
|
@ -707,40 +707,40 @@ func TestOperationJSON_planDrift(t *testing.T) {
|
|
|
|
|
v.Plan(plan, testSchemas())
|
|
|
|
|
|
|
|
|
|
want := []map[string]interface{}{
|
|
|
|
|
// Drift detected: update
|
|
|
|
|
// Drift detected: delete
|
|
|
|
|
{
|
|
|
|
|
"@level": "info",
|
|
|
|
|
"@message": "test_resource.boop: Drift detected (update)",
|
|
|
|
|
"@message": "test_resource.beep: Drift detected (delete)",
|
|
|
|
|
"@module": "terraform.ui",
|
|
|
|
|
"type": "resource_drift",
|
|
|
|
|
"change": map[string]interface{}{
|
|
|
|
|
"action": "update",
|
|
|
|
|
"action": "delete",
|
|
|
|
|
"resource": map[string]interface{}{
|
|
|
|
|
"addr": "test_resource.boop",
|
|
|
|
|
"addr": "test_resource.beep",
|
|
|
|
|
"implied_provider": "test",
|
|
|
|
|
"module": "",
|
|
|
|
|
"resource": "test_resource.boop",
|
|
|
|
|
"resource": "test_resource.beep",
|
|
|
|
|
"resource_key": nil,
|
|
|
|
|
"resource_name": "boop",
|
|
|
|
|
"resource_name": "beep",
|
|
|
|
|
"resource_type": "test_resource",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// Drift detected: delete
|
|
|
|
|
// Drift detected: update
|
|
|
|
|
{
|
|
|
|
|
"@level": "info",
|
|
|
|
|
"@message": "test_resource.beep: Drift detected (delete)",
|
|
|
|
|
"@message": "test_resource.boop: Drift detected (update)",
|
|
|
|
|
"@module": "terraform.ui",
|
|
|
|
|
"type": "resource_drift",
|
|
|
|
|
"change": map[string]interface{}{
|
|
|
|
|
"action": "delete",
|
|
|
|
|
"action": "update",
|
|
|
|
|
"resource": map[string]interface{}{
|
|
|
|
|
"addr": "test_resource.beep",
|
|
|
|
|
"addr": "test_resource.boop",
|
|
|
|
|
"implied_provider": "test",
|
|
|
|
|
"module": "",
|
|
|
|
|
"resource": "test_resource.beep",
|
|
|
|
|
"resource": "test_resource.boop",
|
|
|
|
|
"resource_key": nil,
|
|
|
|
|
"resource_name": "beep",
|
|
|
|
|
"resource_name": "boop",
|
|
|
|
|
"resource_type": "test_resource",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|