From c708abd8d2921c45c0eef259b50f955de4fb1910 Mon Sep 17 00:00:00 2001 From: sreallymatt <106555974+sreallymatt@users.noreply.github.com> Date: Fri, 13 Dec 2024 08:59:23 -0700 Subject: [PATCH] Update internal/services/containers/kubernetes_fleet_manager_data_source_test.go Co-authored-by: stephybun --- ...bernetes_fleet_manager_data_source_test.go | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) 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)) }