From e1eeac2aa16ff366a38001ab4e3fef0f7e65ed69 Mon Sep 17 00:00:00 2001 From: Mahesh N <112473480+mahesh-hpe@users.noreply.github.com> Date: Wed, 22 Nov 2023 23:04:36 +0530 Subject: [PATCH] Delete internal/acceptance_test/data_source_edge_cluster_test.go --- .../data_source_edge_cluster_test.go | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 internal/acceptance_test/data_source_edge_cluster_test.go 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) -}