Skip to content

Commit

Permalink
Revert "increase max capacity for eventhub namespaces to 100" (#3440)
Browse files Browse the repository at this point in the history
This reverts commit 2a34f9c.
  • Loading branch information
katbyte authored May 15, 2019
1 parent 45848b8 commit 7fa4438
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions azurerm/resource_arm_eventhub_namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_eventhub_namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
},
},
Expand All @@ -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"),
),
},
{
Expand Down Expand Up @@ -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"),
),
},
{
Expand Down

0 comments on commit 7fa4438

Please sign in to comment.