diff --git a/pkg/config-api-provider/test/root_group_test.go b/pkg/config-api-provider/test/root_group_test.go deleted file mode 100644 index 29f4fcbc..00000000 --- a/pkg/config-api-provider/test/root_group_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package test - -import ( - "testing" - - datasources "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/terraform-provider-configuration/provider/data-sources" - "github.com/hashicorp/terraform-plugin-testing/helper/resource" -) - -func TestRootGroupDataSource(t *testing.T) { - resource.Test(t, resource.TestCase{ - ProtoV6ProviderFactories: testAccProtoV6ProviderFactories, - Steps: []resource.TestStep{ - // Read testing - { - PreConfig: func() { - datasources.GetRootGroup = func() datasources.RootGroupResponseModel { - return GenerateRootGroupResponseModel("mock_uid") - } - }, - Config: providerConfig + ` - data "uxi_root_group" "my_root_group" {} - `, - Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("data.uxi_root_group.my_root_group", "id", "mock_uid"), - ), - }, - }, - }) -} diff --git a/pkg/config-api-provider/test/utils.go b/pkg/config-api-provider/test/utils.go index d6bc5b37..f4f92dc1 100644 --- a/pkg/config-api-provider/test/utils.go +++ b/pkg/config-api-provider/test/utils.go @@ -1,7 +1,6 @@ package test import ( - "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/terraform-provider-configuration/provider/data-sources" "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/terraform-provider-configuration/provider/resources" ) @@ -44,15 +43,6 @@ func GenerateGroupResponseModel(uid string, non_replacement_field_postfix string } } -func GenerateRootGroupResponseModel(uid string) datasources.RootGroupResponseModel { - return datasources.RootGroupResponseModel{ - UID: uid, - Name: "root", - ParentUid: nil, - Path: uid, - } -} - func GenerateServiceTestResponseModel(uid string, postfix string) resources.ServiceTestResponseModel { return resources.ServiceTestResponseModel{ Uid: uid,