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

New data source: azurerm_mysql_server #8787

Merged
merged 18 commits into from
Oct 13, 2020

Conversation

Lucretius
Copy link
Contributor

Resolves #4924

This is not a resource I have ever used, but I followed along the existing resource to build out the data source, and reused the tests (adding in the data source at the end of each) and checking the values.

@Lucretius Lucretius changed the title New data source: mysql server New data source: azurerm_mysql_server Oct 8, 2020
@manicminer manicminer self-assigned this Oct 12, 2020
Copy link
Contributor

@manicminer manicminer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Lucretius, thanks for this PR! I have some minor suggestions below, including a way to dry out the tests a bit. If we can fix these up, this looks good to merge.

@manicminer manicminer added this to the v2.32.0 milestone Oct 12, 2020
@Lucretius
Copy link
Contributor Author

Thanks @manicminer - I've accepted all the suggestions, thanks for that (wish Github let me accept them all in one commit instead of one at a time). Also gives me a good idea of what to watch out for in the future.

@ghost ghost removed the waiting-response label Oct 12, 2020
@manicminer
Copy link
Contributor

@Lucretius great! could you update the other tests too? (testAccDataSourceAzureRMMySQLServer_basicWithIdentity, testAccDataSourceAzureRMMySQLServer_autogrow and testAccDataSourceAzureRMMySQLServer_complete)

Copy link
Contributor

@manicminer manicminer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Lucretius Thanks for making those changes. When running the tests, I spotted some other issues that I missed earlier.

@Lucretius
Copy link
Contributor Author

Thanks again for clarifying the issues with the tests, sorry there were so many! I'll keep them in mind in future PRs.

@manicminer manicminer force-pushed the data-source-mssql-server branch from 9413944 to 7013a06 Compare October 13, 2020 15:07
@manicminer manicminer force-pushed the data-source-mssql-server branch from 7013a06 to 48624f9 Compare October 13, 2020 18:57
@manicminer
Copy link
Contributor

@Lucretius I pushed some additional minor test fixes (some of the configs were pointing at the wrong test config funcs and some attribute check values didn't match the configuration). The tests now pass. Thanks again!

Screenshot 2020-10-13 at 20 15 09

@manicminer manicminer merged commit 0c0c07f into hashicorp:master Oct 13, 2020
manicminer added a commit that referenced this pull request Oct 13, 2020
@Lucretius Lucretius deleted the data-source-mssql-server branch October 13, 2020 21:02
@ghost
Copy link

ghost commented Oct 15, 2020

This has been released in version 2.32.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.32.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Nov 13, 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 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!

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

Successfully merging this pull request may close these issues.

Add Azure MySQL Server data source
2 participants