-
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 Log Analytics Sku for azurerm_log_analytics_workspace (#1078) #1079
New Log Analytics Sku for azurerm_log_analytics_workspace (#1078) #1079
Conversation
azurerm_log_analytics_workspace
(#1078)
👋 hey @MattMencel Thanks for this PR :) As you've seen for us to add support for this this would need to be added to the Azure SDK for Go - which is in turn generated from these Swagger files (in this case the Enum value needs to be added here), which will then trigger a PR to the Go SDK repository, which can then be released and vendored in. In the interim it might make sense just to hard-code this value for the moment and add a Taking a look at this PR - if we can revert the Thanks! |
I added the new Sku as a PR to I'm not sure how to handle the Acceptance Test. Just add a new...
...at the bottom with the new Sku? |
hey @MattMencel Sorry - I'd missed we'd not replied to this!
👍 cool thanks, it looks like that change hasn't made it into v15.2 of the Azure SDK for Go - but I'd assume this is available from v16 which should be out at the end of this/the start of next month; once it is we can upgrade to that and this PR should build & work as expected.
Indeed, there's two parts to this: firstly adding a method which returns the Terraform Configuration for the acceptance test - (in this case that'll be provisioning a Log Analytics Workspace with the new SKU) - once that's done we then need to create a Test which calls that configuration (here's an example of that). At which point this test can be run using the following command:
(We'll also run the tests at this end, so as long as the config is present we should be good :) Thanks! |
Tagged |
I borked my rebase. Sorry.... I'm going to try to clean this up....but if I can't figure it out I'll just delete the PR and try again. |
Wow I think I maybe got a clean PR again. If you want something else on the tests let me know. I'm not sure I know what I'm doing there. :) |
@MattMencel thanks for pushing those updates, this now LGTM. Once this is available in the next Azure SDK (and we've upgraded to it) - we'll merge this in :) Thanks! |
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.
LGTM - once the next version of the Azure SDK is released & we've upgraded to it we should be able to run this test and merge this 👍
Just checked, this value isn't present in v16.2.1 of the Azure SDK for Go - I guess it'll be released with v17 |
hey @MattMencel Sorry for the delay here, just to let you know that I've taken another look at the SDK and this is now available - as such I've rebased this PR and we can now merge it :) Thanks! |
``` $ acctests azurerm TestAccAzureRMLogAnalyticsWorkspace_ === RUN TestAccAzureRMLogAnalyticsWorkspace_importRequiredOnly --- PASS: TestAccAzureRMLogAnalyticsWorkspace_importRequiredOnly (136.16s) === RUN TestAccAzureRMLogAnalyticsWorkspace_importRetentionInDaysComplete --- PASS: TestAccAzureRMLogAnalyticsWorkspace_importRetentionInDaysComplete (74.59s) === RUN TestAccAzureRMLogAnalyticsWorkspace_requiredOnly --- PASS: TestAccAzureRMLogAnalyticsWorkspace_requiredOnly (129.72s) === RUN TestAccAzureRMLogAnalyticsWorkspace_retentionInDaysComplete --- PASS: TestAccAzureRMLogAnalyticsWorkspace_retentionInDaysComplete (131.16s) PASS ok github.com/terraform-providers/terraform-provider-azurerm/azurerm 471.669s ```
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.
LGTM 👍
Tests pass:
|
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! |
Fixes #1078