diff --git a/internal/acceptance_test/data_source_edge_cluster_test.go b/internal/acceptance_test/data_source_edge_cluster_test.go deleted file mode 100644 index 5317ce00..00000000 --- a/internal/acceptance_test/data_source_edge_cluster_test.go +++ /dev/null @@ -1,46 +0,0 @@ -// (C) Copyright 2021 Hewlett Packard Enterprise Development LP - -package acceptancetest - -import ( - "testing" - - api_client "github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk/pkg/client" - "github.com/HewlettPackard/hpegl-vmaas-terraform-resources/pkg/atf" -) - -func TestAccDataSourceNetworkEdgeCluster(t *testing.T) { - acc := &atf.Acc{ - PreCheck: testAccPreCheck, - Providers: testAccProviders, - ResourceName: "hpegl_vmaas_edge_cluster", - GetAPI: func(attr map[string]string) (interface{}, error) { - cl, cfg := getAPIClient() - iClient := api_client.RouterAPIService{ - Client: cl, - Cfg: cfg, - } - name := attr["name"] - var serverID int - ServerResp, err := iClient.GetNetworkServices(getAccContext(), nil) - if err != nil { - return nil, err - } - // Align request for Network Server - if len(ServerResp.NetworkServices) == 0 { - return nil, err - } - for i, n := range ServerResp.NetworkServices { - if n.TypeName == "NSX" { - serverID = ServerResp.NetworkServices[i].ID - - break - } - } - - return iClient.GetEdgeCluster(getAccContext(), serverID, name) - }, - } - - acc.RunDataSourceTests(t) -}