terraform/helper/resource
Martin Atkins 031b561ef0 helper/resource: ignore data resource diffs during destroy
When testing destroy, the test harness calls Refresh followed by Plan,
with the expectation that the resulting diff will be empty.

Data resources challenge this expectation, because they will always be
instantiated during refresh if their configuration isn't computed, and so
the subsequent diff will want to destroy what was instantiated.

To work around this, we make an exception that data resource destroy
diffs may appear in the plan but nothing else.

This fixes #6713.
2016-05-21 14:16:02 -07:00
..
error.go helper/resource: Remove NotFoundError function 2016-03-21 16:47:50 +00:00
id.go helper: Add resource.PrefixedUniqueId 2015-06-30 12:54:54 +01:00
id_test.go helper/resource: add UniqueId() helper 2015-04-22 12:53:05 -05:00
map.go ResourceDiff => InstanceDiff 2014-09-17 16:33:24 -07:00
map_test.go helper/resource: automatically validate resources 2014-07-08 10:17:36 -07:00
resource.go ResourceDiff => InstanceDiff 2014-09-17 16:33:24 -07:00
state.go helper: Add StateChangeConf.ContinuousTargetOccurence (int) 2016-02-23 20:18:57 +00:00
state_test.go helper: Add StateChangeConf.ContinuousTargetOccurence (int) 2016-02-23 20:18:57 +00:00
testing.go Merge branch 'f-aws-import' 2016-05-18 15:28:12 -06:00
testing_config.go helper/resource: ignore data resource diffs during destroy 2016-05-21 14:16:02 -07:00
testing_import_state.go providers/aws: instance, nat, internet gateway 2016-05-16 10:03:57 -07:00
testing_import_state_test.go helper/resource: ImportState test can verify states 2016-05-11 13:02:37 -07:00
testing_test.go helper/resource: make id-only check opt-in 2016-04-21 08:37:08 -07:00
wait.go helper/resource: Error shouldn't be returned in case of success 2016-03-10 14:14:14 +00:00
wait_test.go helper/resource: Fix TestRetry 2016-03-10 14:13:23 +00:00