-
Notifications
You must be signed in to change notification settings - Fork 4.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
New data source: azurerm_cognitive_account #8773
New data source: azurerm_cognitive_account #8773
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.
Hey @Lucretius - thanks for this pr! overall looks great but there is a failing test due to an invalid tf config.
Once thats fixed up this should be good to go!
Co-authored-by: kt <[email protected]>
Hi @katbyte thanks for the PR review. I wanted to ask about the failing test, particularly how I can tell I've got a failing test. I know on this and another PR I've got open the latest builds that have run both seem to have a passing checkmarks in TravisCI for the I am wondering if there is somewhere else I should be seeing these test failures? I don't have an Azure account that I am using to run acceptance tests against, so I am depending on the CI tooling to do so. If there is a place I can see these failing tests, I will make sure to look there to save you and the team some time :) |
ahh @Lucretius - you will need an azure account to run things against and setup a service principal. The CI tooling doesn't run any acceptance tests and we don't expose our CI system for them to the public as it costs money to run most tests. Once you have that setup you can run them by |
Oh, that would explain why I keep missing tests. I've got a personal Azure account, I will have to go and see about setting it up for these tests then. Thank you for explaining that to me! |
no bother 🙂 I have a .sh file thati source to set my env vars for it:
which makes it easy to setup for tests in a new shell window |
I ran the failing tests locally and got things working. It looks like tflint is now run via Github Actions and a bunch of stuff breaks on that step, but should be unrelated to my changes. |
Hi @Lucretius - there's noise in the linter that will be be resolved by a recent release of the linter, there's a genuine error message in there:
|
Signed-off-by: Robert Lippens <[email protected]>
…ius/terraform-provider-azurerm into data-source-arm-cognitive-account
Thanks for hanging with me on that, I think my editor must be auto-formatting the blocks - all I had done was delete a line, did not expect it to cause the linter to fail. |
This has been released in version 2.34.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.34.0"
}
# ... other configuration ... |
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! |
Resolves #7765
Note that I do not use this resource and as such have not tested this functionality manually. Instead I am relying on the test coverage, and using the existing resource code, modified for the data source. If anyone uses this resource and sees anything missing in the data source that they expect to retrieve, let me know.