terraform/helper/resource
Chris Marchesi 3505769600
helper/resource: Add ability to pre-taint resources
This adds the Taint field to the acceptance testing framework, allowing
the ability to pre-taint resources at the beginning of a particular
TestStep. This can be useful for when an explicit ForceNew is required
for a specific resource for troubleshooting things like diff mismatches,
etc.

The field accepts resource addresses as a list of strings. To keep
things simple for the time being, only addresses in the root module are
accepted. If we ever want to expand this past that, I'd be almost
inclined to add some facilities to the core terraform package to help
translate actual module resource addresses (ie:
module.foo.module.bar.some_resource.baz) into the correct state, versus
the current convention in some acceptance testing facilities that take
the module address as a list of strings (ie: []string{"root", "foo",
"bar"}).
2018-05-25 07:52:49 -07:00
..
error.go helper/resource: Add retries to err message 2017-01-20 11:09:04 -08:00
id.go Export a const for validation methods 2018-03-10 12:40:37 -05:00
id_test.go Make failure message more explicit 2018-03-10 21:53:54 -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/resource: fix ungrammatical doc comment in StateChangeConf 2017-11-08 09:43:36 -08:00
state_test.go add test for proper cancelation 2017-04-19 18:07:00 -04:00
testing.go helper/resource: Add ability to pre-taint resources 2018-05-25 07:52:49 -07:00
testing_config.go helper/resource: Add ability to pre-taint resources 2018-05-25 07:52:49 -07:00
testing_import_state.go helper/resource: Add ImportStateIdFunc 2017-09-06 19:44:43 -07:00
testing_import_state_test.go unused variable 2017-12-26 14:32:57 -05:00
testing_test.go helper/resource: Add ability to pre-taint resources 2018-05-25 07:52:49 -07:00
wait.go Fixing small typo in resource/wait.go 2018-03-14 17:33:03 +01:00
wait_test.go fix tests affected by refreshGracePeriod 2017-04-19 18:07:00 -04:00