From 7fa44381b5c0673cb0a464aaccab8d6881caa5fa Mon Sep 17 00:00:00 2001 From: kt Date: Tue, 14 May 2019 17:37:50 -0700 Subject: [PATCH] Revert "increase max capacity for eventhub namespaces to 100" (#3440) This reverts commit 2a34f9cd3f4dcd60597c0b80e33acae45a3bc63e. --- azurerm/resource_arm_eventhub_namespace.go | 4 ++-- azurerm/resource_arm_eventhub_namespace_test.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/azurerm/resource_arm_eventhub_namespace.go b/azurerm/resource_arm_eventhub_namespace.go index 45c7db7cab49..8dce4f6aaf35 100644 --- a/azurerm/resource_arm_eventhub_namespace.go +++ b/azurerm/resource_arm_eventhub_namespace.go @@ -58,7 +58,7 @@ func resourceArmEventHubNamespace() *schema.Resource { Type: schema.TypeInt, Optional: true, Default: 1, - ValidateFunc: validation.IntBetween(1, 100), + ValidateFunc: validation.IntBetween(1, 20), }, "auto_inflate_enabled": { @@ -77,7 +77,7 @@ func resourceArmEventHubNamespace() *schema.Resource { Type: schema.TypeInt, Optional: true, Computed: true, - ValidateFunc: validation.IntBetween(0, 100), + ValidateFunc: validation.IntBetween(0, 20), }, "default_primary_connection_string": { diff --git a/azurerm/resource_arm_eventhub_namespace_test.go b/azurerm/resource_arm_eventhub_namespace_test.go index d11fe6bd6bf8..6cb088008e59 100644 --- a/azurerm/resource_arm_eventhub_namespace_test.go +++ b/azurerm/resource_arm_eventhub_namespace_test.go @@ -228,7 +228,7 @@ func TestAccAzureRMEventHubNamespace_BasicWithCapacity(t *testing.T) { Config: config, Check: resource.ComposeTestCheckFunc( testCheckAzureRMEventHubNamespaceExists(resourceName), - resource.TestCheckResourceAttr(resourceName, "capacity", "100"), + resource.TestCheckResourceAttr(resourceName, "capacity", "20"), ), }, }, @@ -250,7 +250,7 @@ func TestAccAzureRMEventHubNamespace_BasicWithCapacityUpdate(t *testing.T) { Config: preConfig, Check: resource.ComposeTestCheckFunc( testCheckAzureRMEventHubNamespaceExists(resourceName), - resource.TestCheckResourceAttr(resourceName, "capacity", "100"), + resource.TestCheckResourceAttr(resourceName, "capacity", "20"), ), }, { @@ -311,7 +311,7 @@ func TestAccAzureRMEventHubNamespace_maximumThroughputUnitsUpdate(t *testing.T) testCheckAzureRMEventHubNamespaceExists(resourceName), resource.TestCheckResourceAttr(resourceName, "sku", "Standard"), resource.TestCheckResourceAttr(resourceName, "capacity", "2"), - resource.TestCheckResourceAttr(resourceName, "maximum_throughput_units", "100"), + resource.TestCheckResourceAttr(resourceName, "maximum_throughput_units", "20"), ), }, {