Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helper/resource: verify refresh+plan after each step #1757

Merged
merged 1 commit into from
Apr 30, 2015

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Apr 30, 2015

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.

@phinze phinze force-pushed the f-acctest-refresh-and-plan-after-each-step branch from b94782f to 10285c3 Compare April 30, 2015 15:21
@mitchellh
Copy link
Contributor

LGTM

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.
@phinze phinze force-pushed the f-acctest-refresh-and-plan-after-each-step branch from 10285c3 to 149e52a Compare April 30, 2015 17:52
phinze added a commit that referenced this pull request Apr 30, 2015
…ter-each-step

helper/resource: verify refresh+plan after each step
@phinze phinze merged commit 0d0e40f into master Apr 30, 2015
@phinze phinze deleted the f-acctest-refresh-and-plan-after-each-step branch April 30, 2015 19:34
phinze added a commit that referenced this pull request May 1, 2015
With #1757 I unwittingly reused an err variable, causing all test check
errors to be swallowed. -_-
@ghost
Copy link

ghost commented May 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants