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 resources: azurerm_datadog_monitor_tag_rule azurerm_datadog_monitor_sso_configuration #17825

Merged
merged 20 commits into from
Oct 27, 2022

Conversation

vikotha
Copy link
Contributor

@vikotha vikotha commented Aug 1, 2022

The previous merge for datadog monitor plugin: #16131

@vikotha
Copy link
Contributor Author

vikotha commented Aug 1, 2022

@mbfrahry , this the continuation PR of "azurerm_datadog_monitor" with child resources.
Can you help review this.

Copy link
Collaborator

@magodo magodo left a comment

Choose a reason for hiding this comment

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

Thanks for this PR! 👍
I've taken a look through the documentation and naming stuff, left some comments inline. These comments are mainly for the consistency across the provider codebase.

website/docs/r/datadog_sso.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_sso.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_sso.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_tagrules.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_tagrules.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_tagrules.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_tagrules.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_sso.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_sso.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_sso.html.markdown Outdated Show resolved Hide resolved
@Grogogoll Grogogoll mentioned this pull request Aug 31, 2022
2 tasks
@vikotha
Copy link
Contributor Author

vikotha commented Sep 2, 2022

@magodo have addressed all the comments

@vikotha
Copy link
Contributor Author

vikotha commented Sep 2, 2022

@mbfrahry can we get assignee on this PR.

@vikotha vikotha requested a review from magodo September 2, 2022 06:25
Copy link
Collaborator

@magodo magodo left a comment

Choose a reason for hiding this comment

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

@vikotha Thank you for the update! I've left some more comments about the documents of these two resources. Once they are resolved, I'll move on reviewing the code.

website/docs/r/datadog_tagrules.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_tagrules.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_tagrules.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_tagrules.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_tagrules.html.markdown Outdated Show resolved Hide resolved
website/docs/r/datadog_tagrules.html.markdown Outdated Show resolved Hide resolved
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @vikotha

Thanks for this PR - I've taken a look through and left a few design comments inline, but ultimately I think this resource wants to be embedded within the DataDog Monitor resource, since there appears to be a 1:1 relationship between these - which means this could become a block within that resource since it's related configuration. WDYT?

Thanks!

@vikotha vikotha requested review from katbyte and removed request for magodo October 13, 2022 04:00
@katbyte
Copy link
Collaborator

katbyte commented Oct 13, 2022

Thanks @vikotha - looks like we have some test failures still:

image

@vikotha
Copy link
Contributor Author

vikotha commented Oct 14, 2022

Thanks @vikotha - looks like we have some test failures still:

image

Is this failing locally? I see all checks successful in the pipeline. In my local run as well, everything passed.

@katbyte
Copy link
Collaborator

katbyte commented Oct 24, 2022

@vikotha - this is in our CI server were we run the tests against our azure test subscription - maybe the sku you are using is not available/something needs to be done to enableit?

@vikotha
Copy link
Contributor Author

vikotha commented Oct 25, 2022

@vikotha - this is in our CI server were we run the tests against our azure test subscription - maybe the sku you are using is not available/something needs to be done to enableit?

@katbyte, can you check now?
Updated the locations available for datadog

@katbyte
Copy link
Collaborator

katbyte commented Oct 26, 2022

still failing 😞

------- Stdout: -------
=== RUN   TestAccDatadogMonitorSSO_update
=== PAUSE TestAccDatadogMonitorSSO_update
=== CONT  TestAccDatadogMonitorSSO_update
    testcase.go:110: Step 1/6 error: Error running apply: exit status 1
        
        Error: creating Datadog Monitor: (Monitor Name "acctest-datadog-70" / Resource Group "acctest-datadog-221026161505769070"): datadog.MonitorsClient#Create: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="Invalid sku specified"
        
          with azurerm_datadog_monitor.test,
          on terraform_plugin_test.tf line 11, in resource "azurerm_datadog_monitor" "test":
          11: resource "azurerm_datadog_monitor" "test" {
        
--- FAIL: TestAccDatadogMonitorSSO_update (132.35s)
FAIL

@vikotha
Copy link
Contributor Author

vikotha commented Oct 27, 2022

still failing 😞

------- Stdout: -------
=== RUN   TestAccDatadogMonitorSSO_update
=== PAUSE TestAccDatadogMonitorSSO_update
=== CONT  TestAccDatadogMonitorSSO_update
    testcase.go:110: Step 1/6 error: Error running apply: exit status 1
        
        Error: creating Datadog Monitor: (Monitor Name "acctest-datadog-70" / Resource Group "acctest-datadog-221026161505769070"): datadog.MonitorsClient#Create: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="Invalid sku specified"
        
          with azurerm_datadog_monitor.test,
          on terraform_plugin_test.tf line 11, in resource "azurerm_datadog_monitor" "test":
          11: resource "azurerm_datadog_monitor" "test" {
        
--- FAIL: TestAccDatadogMonitorSSO_update (132.35s)
FAIL

@katbyte , this should work now. If the env variables are not defined the above error is expected.

@katbyte katbyte changed the title Add sub RTs for "azurerm_datadog_monitor" new resources: azurerm_datadog_monitor_tag_rule azurerm_datadog_monitor_sso_configuration Oct 27, 2022
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Thanks @vikotha ! LGTM now 🌵

@katbyte katbyte merged commit 7542e15 into hashicorp:main Oct 27, 2022
@github-actions github-actions bot added this to the v3.29.0 milestone Oct 27, 2022
katbyte added a commit that referenced this pull request Oct 27, 2022
@github-actions
Copy link

This functionality has been released in v3.29.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2022
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.

4 participants