-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Support setting 'location' in google_sql_database_instance backup_configuration #4681
Conversation
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.
Hi @JamesGuthrie! The code for this looks good. Would you mind modifying one or more tests to use this new feature? The ones you want are in this file: https://github.com/terraform-providers/terraform-provider-google/blob/master/google/resource_sql_database_instance_test.go. I don't think it's a large enough change to merit its own test, so feel free to use existing ones. I'd recommend leaving at least one test around without the field set in order to check the behavior of what happens when the backup_configuration
block is set without a location.
To run the tests, follow the instructions at https://github.com/terraform-providers/terraform-provider-google/blob/master/.github/CONTRIBUTING.md#tests. If it's still unclear, let me know and I'd be happy to run them for you (but hopefully we can improve our documentation in that case!)
52b794a
to
62c6b87
Compare
Hi Dana, thanks for the feedback, I've added the block to one of the existing tests and ran it:
If you need me to make any other changes, or if I missed something, please let me know. |
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.
Looks great, thanks!
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
I would appreciate any feedback on this change. I am a newcomer to go, and to the terraform-provider-google project. I have added the feature to the best of my knowledge, and tested the creation of a new DB, as well as modifying the backup location after creation. I may have broken the tests, but it wasn't clear what I would have to do to get them to run locally.
Closes #4653