3505769600
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"}). |
||
---|---|---|
.. | ||
error.go | ||
id.go | ||
id_test.go | ||
map.go | ||
map_test.go | ||
resource.go | ||
state.go | ||
state_test.go | ||
testing.go | ||
testing_config.go | ||
testing_import_state.go | ||
testing_import_state_test.go | ||
testing_test.go | ||
wait.go | ||
wait_test.go |