From 94e89109b9388c1b0a7ede2fac7633b0579d3864 Mon Sep 17 00:00:00 2001 From: Stuart Leeks Date: Thu, 26 Sep 2019 18:54:14 +0100 Subject: [PATCH] Add extra import checks --- ...pplication_insights_analytics_item_test.go | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/azurerm/resource_arm_application_insights_analytics_item_test.go b/azurerm/resource_arm_application_insights_analytics_item_test.go index e353ab9b0c7e3..feb2c247657bb 100644 --- a/azurerm/resource_arm_application_insights_analytics_item_test.go +++ b/azurerm/resource_arm_application_insights_analytics_item_test.go @@ -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( @@ -69,6 +74,11 @@ func TestAccAzureRMApplicationInsightsAnalyticsItem_update(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "content", "requests #updated"), ), }, + { + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + }, }, }) } @@ -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, + }, }, }) }