Skip to content

Commit

Permalink
test language extensions removal
Browse files Browse the repository at this point in the history
  • Loading branch information
jrauschenbusch committed Jun 24, 2020
1 parent ea0c4f7 commit 142dda6
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,15 @@ func TestAccAzureRMKustoCluster_languageExtensions(t *testing.T) {
),
},
data.ImportStep(),
{
Config: testAccAzureRMKustoCluster_languageExtensionsRemove(data),
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMKustoClusterExists(data.ResourceName),
resource.TestCheckResourceAttr(data.ResourceName, "language_extensions.#", "1"),
resource.TestCheckResourceAttr(data.ResourceName, "language_extensions.0", "R"),
),
},
data.ImportStep(),
},
})
}
Expand Down Expand Up @@ -429,6 +438,32 @@ resource "azurerm_kusto_cluster" "test" {
`, data.RandomInteger, data.Locations.Primary, data.RandomString)
}

func testAccAzureRMKustoCluster_languageExtensionsRemove(data acceptance.TestData) string {
return fmt.Sprintf(`
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "test" {
name = "acctestRG-%d"
location = "%s"
}
resource "azurerm_kusto_cluster" "test" {
name = "acctestkc%s"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
sku {
name = "Dev(No SLA)_Standard_D11_v2"
capacity = 1
}
language_extensions = ["R"]
}
`, data.RandomInteger, data.Locations.Primary, data.RandomString)
}

func testAccAzureRMKustoCluster_vnet(data acceptance.TestData) string {
return fmt.Sprintf(`
provider "azurerm" {
Expand Down

0 comments on commit 142dda6

Please sign in to comment.