Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sinbai committed Nov 27, 2024
1 parent bef6853 commit 13b9ed3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions internal/services/fabric/fabric_capacity_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ func TestAccFabricFabricCapacity_update(t *testing.T) {
),
},
data.ImportStep(),
{
Config: r.update(data),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),
},
data.ImportStep(),
{
Config: r.basic(data),
Check: acceptance.ComposeTestCheckFunc(
Expand Down Expand Up @@ -167,6 +174,30 @@ resource "azurerm_fabric_capacity" "test" {
administration_members = [data.azurerm_client_config.current.object_id]
sku {
name = "F32"
tier = "Fabric"
}
tags = {
environment = "test"
}
}
`, template, data.RandomInteger, data.Locations.Primary)
}

func (r FabricFabricCapacityResource) update(data acceptance.TestData) string {
template := r.template(data)
return fmt.Sprintf(`
%s
resource "azurerm_fabric_capacity" "test" {
name = "acctestffc%d"
resource_group_name = azurerm_resource_group.test.name
location = "%s"
administration_members = []
sku {
name = "F64"
tier = "Fabric"
Expand Down

0 comments on commit 13b9ed3

Please sign in to comment.