-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/cloudflare: Add migration for v1 to v4 API libraries #6969
Conversation
"github.com/mitchellh/cloudflare-go" | ||
) | ||
|
||
func resourceAwsCloudFlareRecordMigrateState( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit: Cloudflare isn't part of AWS, so I don't think there's a reason to include 'AWS' in the function name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😱 thanks :)
7c02f73
to
6bd8391
Compare
Code LGTM - is there a way to wrap a test or three around this? |
42a8936
to
2799b1e
Compare
- mock out api calls
2799b1e
to
dc6e02e
Compare
}, | ||
Expected: "12342092cbc4c391be33ce548713bba3", | ||
ShouldFail: true, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Looks like these exercise TTL and Priority matching - need another pair for exercising the "proxied" logic too?
One test Q and one cranky |
Sorry for the run-around; I added a test case for [not]proxied and fixed the |
👍 LGTM pending travis |
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. |
Fixes #6620 by providing a migration from records created with the old library and v1 of the API, to the new library with v4. Unfortunately we have no way of doing this on CloudFlare's side (can't query for the new version of a given ID), so we have to manually match against the records.
TODO: