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

r/azurerm_eventgrid_event_subscription - advanced_filter MaxItems increase from 5 to 25 #10625

Conversation

jbinko
Copy link
Contributor

@jbinko jbinko commented Feb 17, 2021

Fix for #10620

  • Limit increased to 25 values per filter item.
  • Documentation was updated
  • I added acc tests to verify implementation

It would be nice to implement validation function to verify that total number of values inside advanced_filter block <= 25.
As a maximum of total number of advanced filter values allowed on event subscription is 25.
Any guidance on optimal approach (where to inject validation function for advanced_filter block) is welcomed.

make testacc TEST=./azurerm/internal/services/eventgrid TESTARGS='-run=TestAccEventGridEventSubscription_advancedFilterMaxItems'make testacc TEST=./azurerm/internal/services/eventgrid/eventgrid_event_subscription_resource_test.go TESTARGS='-run=TestAccEventGridEventSubscription_advancedFilterMaxItems'
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test ./azurerm/internal/services/eventgrid/eventgrid_event_subscription_resource_test.go -v -run=TestAccEventGridEventSubscription_advancedFilterMaxItems -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN TestAccEventGridEventSubscription_advancedFilterMaxItems
=== PAUSE TestAccEventGridEventSubscription_advancedFilterMaxItems
=== CONT TestAccEventGridEventSubscription_advancedFilterMaxItems
--- PASS: TestAccEventGridEventSubscription_advancedFilterMaxItems (159.80s)
PASS
ok command-line-arguments 159.874s

make testacc TEST=./azurerm/internal/services/eventgrid/eventgrid_system_topic_event_subscription_resource_test.go TESTARGS='-run=TestAccEventGridSystemTopicEventSubscription_advancedFilterMaxItems'
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test ./azurerm/internal/services/eventgrid/eventgrid_system_topic_event_subscription_resource_test.go -v -run=TestAccEventGridSystemTopicEventSubscription_advancedFilterMaxItems -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN TestAccEventGridSystemTopicEventSubscription_advancedFilterMaxItems
=== PAUSE TestAccEventGridSystemTopicEventSubscription_advancedFilterMaxItems
=== CONT TestAccEventGridSystemTopicEventSubscription_advancedFilterMaxItems
--- PASS: TestAccEventGridSystemTopicEventSubscription_advancedFilterMaxItems (178.36s)
PASS
ok command-line-arguments 178.438s

@jbinko jbinko force-pushed the r/azurerm_eventgrid_event_subscription/fix/MaxItems branch from 7f93631 to e989eec Compare February 17, 2021 21:07
@jbinko jbinko force-pushed the r/azurerm_eventgrid_event_subscription/fix/MaxItems branch from 965b977 to ff24f84 Compare February 17, 2021 21:34
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 @jbinko - LGTM 👍

@katbyte katbyte added this to the v2.48.0 milestone Feb 18, 2021
@katbyte katbyte merged commit 9e481e7 into hashicorp:master Feb 18, 2021
katbyte added a commit that referenced this pull request Feb 18, 2021
@ghost
Copy link

ghost commented Feb 18, 2021

This has been released in version 2.48.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.48.0"
}
# ... other configuration ...

@jbinko jbinko deleted the r/azurerm_eventgrid_event_subscription/fix/MaxItems branch February 19, 2021 11:14
@ghost
Copy link

ghost commented Mar 20, 2021

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 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 20, 2021
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.

None yet

2 participants