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

Revert "increase max capacity for eventhub namespaces to 100" #3440

Merged
merged 1 commit into from
May 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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