Skip to content

Commit

Permalink
Removing the update use-case since it's no longer valid
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Apr 6, 2018
1 parent d4ba49c commit 7042a80
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions azurerm/resource_arm_redis_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,44 +356,6 @@ func TestAccAzureRMRedisCache_InternalSubnetStaticIP(t *testing.T) {
})
}

func TestAccAzureRMRedisCache_InternalSubnetUpdate(t *testing.T) {
resourceName := "azurerm_redis_cache.test"
ri := acctest.RandInt()
location := testLocation()

config := testAccAzureRMRedisCache_premium(ri, location)
updatedConfig := testAccAzureRMRedisCache_internalSubnet(ri, location)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testCheckAzureRMRedisCacheDestroy,
Steps: []resource.TestStep{
{
Config: config,
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMRedisCacheExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "subnet_id", ""),
),
},
{
Config: updatedConfig,
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMRedisCacheExists(resourceName),
resource.TestCheckResourceAttrSet(resourceName, "subnet_id"),
),
},
{
Config: config,
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMRedisCacheExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "subnet_id", ""),
),
},
},
})
}

func testCheckAzureRMRedisCacheExists(name string) resource.TestCheckFunc {
return func(s *terraform.State) error {
// Ensure we have enough information in state to look up in API
Expand Down

0 comments on commit 7042a80

Please sign in to comment.