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

Monitor Activity Log Alert: add missing criteria fields #2150

Merged
merged 1 commit into from
Oct 25, 2018

Conversation

liemnotliam
Copy link
Contributor

This PR addresses #2140 by providing support for additional criteria fields. criteria.operation_name is now optional as it's not a required field for the API call.

Fixes #2140

Test results:

~/go/src/github.com/terraform-providers/terraform-provider-azurerm on activity-log-alert-criteria*
λ TESTARGS="-run TestAccAzureRMMonitorActivityLogAlert -count=1" make testacc
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -run TestAccAzureRMMonitorActivityLogAlert -count=1 -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
?       github.com/terraform-providers/terraform-provider-azurerm       [no test files]
=== RUN   TestAccAzureRMMonitorActivityLogAlert_basic
--- PASS: TestAccAzureRMMonitorActivityLogAlert_basic (62.71s)
=== RUN   TestAccAzureRMMonitorActivityLogAlert_singleResource
--- PASS: TestAccAzureRMMonitorActivityLogAlert_singleResource (98.70s)
=== RUN   TestAccAzureRMMonitorActivityLogAlert_complete
--- PASS: TestAccAzureRMMonitorActivityLogAlert_complete (101.31s)
=== RUN   TestAccAzureRMMonitorActivityLogAlert_basicAndCompleteUpdate
--- PASS: TestAccAzureRMMonitorActivityLogAlert_basicAndCompleteUpdate (135.57s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm       398.322s
testing: warning: no tests to run
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/authentication        0.021s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure 0.036s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/kubernetes    0.010s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/response      0.027s [no tests to run]
?       github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/set   [no test files]
testing: warning: no tests to run
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/suppress      0.036s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate      0.022s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils 0.029s [no tests to run]
?       github.com/terraform-providers/terraform-provider-azurerm/version       [no test files]

* Add additional fields to criteria block.
* Mark criteria.operation_name as optional.
* Update tests and docs.
@ghost ghost added the size/M label Oct 24, 2018
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.

Hi @liemnotliam,

Thank you for adding these fields! This PR LGTM 👍

@katbyte katbyte merged commit ae1b223 into hashicorp:master Oct 25, 2018
@katbyte katbyte added this to the 1.18.0 milestone Oct 25, 2018
katbyte added a commit that referenced this pull request Oct 25, 2018
@liemnotliam liemnotliam deleted the activity-log-alert-criteria branch October 29, 2018 14:22
@tombuildsstuff
Copy link
Contributor

hi @liemnotliam

Just to let you know that this has been released as a part of v1.18 of the AzureRM Provider (the full changelog is available here). You can upgrade to this by specifying the version in the provider block (as shown below) and then running terraform init -upgrade

provider "azurerm" {
  version = "=1.18.0"
}

Thanks!

@ghost
Copy link

ghost commented Mar 6, 2019

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 and limited conversation to collaborators Mar 6, 2019
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.

3 participants