diff --git a/internal/services/containers/kubernetes_fleet_manager_data_source_test.go b/internal/services/containers/kubernetes_fleet_manager_data_source_test.go index ad5162fd84b2..8196f94c641d 100644 --- a/internal/services/containers/kubernetes_fleet_manager_data_source_test.go +++ b/internal/services/containers/kubernetes_fleet_manager_data_source_test.go @@ -30,28 +30,11 @@ func TestAccKubernetesFleetManagerDataSource_basic(t *testing.T) { func (KubernetesFleetManagerDataSource) basic(data acceptance.TestData) string { return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - location = "%s" - name = "acctestrg-%d" -} - -resource "azurerm_kubernetes_fleet_manager" "test" { - location = azurerm_resource_group.test.location - name = "acctestkfm-%s" - resource_group_name = azurerm_resource_group.test.name - tags = { - environment = "terraform-acctests" - some_key = "some-value" - } -} +%s data "azurerm_kubernetes_fleet_manager" "test" { name = azurerm_kubernetes_fleet_manager.test.name resource_group_name = azurerm_kubernetes_fleet_manager.test.resource_group_name } -`, data.Locations.Primary, data.RandomInteger, data.RandomString) +`, KubernetesFleetManagerTestResource{}.complete(data)) }