terraform/helper/resource
Paul Hinze 149e52ad1f helper/resource: verify refresh+plan after each step
I forgot to add `Computed: true` when I made the "key_name" field
optional in #1751.

This made the behavior:

 * Name generated in Create and set as ID
 * Follow up plan (without refresh) was nice and empty
 * During refresh, name gets cleared out on Read, causing a bad diff on
   subsequent plans

We can automatically catch bugs like this if we add yet another
verification step to our resource acceptance tests -> a post
Refresh+Plan that we verify is empty.

I left the non-refresh Plan verification in, because it's important that
_both_ of these are empty after an Apply.
2015-04-30 12:52:25 -05:00
..
id.go helper/resource: ok let's actually use RFC4122 2015-04-22 13:16:44 -05: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 Better document StateChangeConf.WaitForState 2015-04-28 12:33:23 -04:00
state_test.go helper/resource: add Retry function 2014-10-07 21:44:51 -07:00
testing.go helper/resource: verify refresh+plan after each step 2015-04-30 12:52:25 -05:00
testing_test.go helper/resource: verify refresh+plan after each step 2015-04-30 12:52:25 -05:00
wait.go helper/resource: RetryError for quitting quickly 2014-10-17 18:28:03 -07:00
wait_test.go helper/resource: RetryError for quitting quickly 2014-10-17 18:28:03 -07:00