Skip to content

Commit

Permalink
Add extra import checks
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartleeks committed Sep 26, 2019
1 parent baf9cb3 commit 94e8910
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions azurerm/resource_arm_application_insights_analytics_item_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ func TestAccAzureRMApplicationInsightsAnalyticsItem_update(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "content", "requests #test"),
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
{
Config: config2,
Check: resource.ComposeTestCheckFunc(
Expand All @@ -69,6 +74,11 @@ func TestAccAzureRMApplicationInsightsAnalyticsItem_update(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "content", "requests #updated"),
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}
Expand Down Expand Up @@ -106,6 +116,21 @@ func TestAccAzureRMApplicationInsightsAnalyticsItem_multiple(t *testing.T) {
resource.TestCheckResourceAttr(resourceName3, "function_alias", "myfunction"),
),
},
{
ResourceName: resourceName1,
ImportState: true,
ImportStateVerify: true,
},
{
ResourceName: resourceName2,
ImportState: true,
ImportStateVerify: true,
},
{
ResourceName: resourceName3,
ImportState: true,
ImportStateVerify: true,
},
},
})
}
Expand Down

0 comments on commit 94e8910

Please sign in to comment.