Skip to content

Commit

Permalink
chore: goimports -w -l "github.com/equinix/terraform-provider-equinix…
Browse files Browse the repository at this point in the history
…/" .

Signed-off-by: Marques Johansson <[email protected]>
  • Loading branch information
displague committed Apr 22, 2024
1 parent 6490d46 commit e7708e9
Show file tree
Hide file tree
Showing 23 changed files with 50 additions and 30 deletions.
3 changes: 2 additions & 1 deletion equinix/data_source_fabric_cloud_router_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package equinix_test

import (
"fmt"
"testing"

"github.com/equinix/terraform-provider-equinix/internal/acceptance"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
_ "github.com/hashicorp/terraform-plugin-testing/terraform"
"testing"
)

func TestAccDataSourceFabricCloudRouter_PFCR(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions equinix/data_source_fabric_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package equinix

import (
"context"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
3 changes: 2 additions & 1 deletion equinix/data_source_fabric_connection_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package equinix_test

import (
"fmt"
"testing"

"github.com/equinix/terraform-provider-equinix/internal/acceptance"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"testing"
)

func TestAccFabricDataSourceConnection_PFCR(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion equinix/data_source_fabric_network_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package equinix_test

import (
"fmt"
"testing"

"github.com/equinix/terraform-provider-equinix/internal/acceptance"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
_ "github.com/hashicorp/terraform-plugin-testing/terraform"
"testing"
)

func TestAccDataSourceFabricNetwork_PFCR(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion equinix/data_source_fabric_port_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package equinix_test
import (
"encoding/json"
"fmt"
"github.com/equinix/equinix-sdk-go/services/fabricv4"
"os"
"testing"

"github.com/equinix/equinix-sdk-go/services/fabricv4"

"github.com/equinix/terraform-provider-equinix/internal/acceptance"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
)
Expand Down
1 change: 1 addition & 0 deletions equinix/data_source_fabric_service_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package equinix

import (
"context"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down
3 changes: 2 additions & 1 deletion equinix/data_source_fabric_service_profile_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package equinix_test

import (
"fmt"
"testing"

"github.com/equinix/terraform-provider-equinix/internal/acceptance"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"testing"
)

func testAccFabricReadServiceProfileConfig(spName string, portUUID string, portType string, portMetroCode string) string {
Expand Down
2 changes: 1 addition & 1 deletion equinix/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"strings"
"time"

"github.com/equinix/ecx-go/v2"
"github.com/equinix/terraform-provider-equinix/internal/config"
"github.com/equinix/terraform-provider-equinix/internal/resources/metal/vrf"
"github.com/equinix/ecx-go/v2"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
Expand Down
2 changes: 0 additions & 2 deletions equinix/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"context"
"fmt"
"os"
"regexp"
"strings"
"testing"

"github.com/equinix/terraform-provider-equinix/internal/config"
Expand Down
7 changes: 4 additions & 3 deletions equinix/resource_fabric_cloud_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package equinix
import (
"context"
"fmt"
"log"
"strings"
"time"

"github.com/equinix/equinix-sdk-go/services/fabricv4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"log"
"strings"
"time"

equinix_errors "github.com/equinix/terraform-provider-equinix/internal/errors"
equinix_fabric_schema "github.com/equinix/terraform-provider-equinix/internal/fabric/schema"
Expand Down
3 changes: 2 additions & 1 deletion equinix/resource_fabric_cloud_router_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package equinix_test
import (
"context"
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"testing"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

"github.com/equinix/terraform-provider-equinix/equinix"
"github.com/equinix/terraform-provider-equinix/internal/acceptance"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
Expand Down
7 changes: 4 additions & 3 deletions equinix/resource_fabric_connection_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/equinix/terraform-provider-equinix/equinix"
"github.com/equinix/terraform-provider-equinix/internal/acceptance"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"os"
"testing"
"time"

"github.com/equinix/terraform-provider-equinix/equinix"
"github.com/equinix/terraform-provider-equinix/internal/acceptance"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"github.com/hashicorp/terraform-plugin-testing/terraform"
)
Expand Down
6 changes: 4 additions & 2 deletions equinix/resource_fabric_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package equinix
import (
"context"
"fmt"

"github.com/equinix/equinix-sdk-go/services/fabricv4"
"github.com/equinix/terraform-provider-equinix/internal/config"
equinix_errors "github.com/equinix/terraform-provider-equinix/internal/errors"
Expand All @@ -11,10 +12,11 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"log"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
)

func fabricNetworkChangeSch() map[string]*schema.Schema {
Expand Down
3 changes: 2 additions & 1 deletion equinix/resource_fabric_network_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package equinix_test
import (
"context"
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"testing"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

"github.com/equinix/terraform-provider-equinix/equinix"
"github.com/equinix/terraform-provider-equinix/internal/acceptance"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
Expand Down
3 changes: 2 additions & 1 deletion equinix/resource_fabric_port.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import (
"context"
"errors"
"fmt"
"github.com/equinix/equinix-sdk-go/services/fabricv4"
"log"
"runtime/debug"
"strings"

"github.com/equinix/equinix-sdk-go/services/fabricv4"

equinix_errors "github.com/equinix/terraform-provider-equinix/internal/errors"
equinix_fabric_schema "github.com/equinix/terraform-provider-equinix/internal/fabric/schema"
equinix_schema "github.com/equinix/terraform-provider-equinix/internal/schema"
Expand Down
5 changes: 3 additions & 2 deletions equinix/resource_fabric_routing_protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package equinix
import (
"context"
"fmt"
"github.com/equinix/equinix-sdk-go/services/fabricv4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"log"
"strconv"
"strings"
"time"

"github.com/equinix/equinix-sdk-go/services/fabricv4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"

equinix_errors "github.com/equinix/terraform-provider-equinix/internal/errors"
equinix_fabric_schema "github.com/equinix/terraform-provider-equinix/internal/fabric/schema"
equinix_schema "github.com/equinix/terraform-provider-equinix/internal/schema"
Expand Down
3 changes: 2 additions & 1 deletion equinix/resource_fabric_routing_protocol_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package equinix_test
import (
"context"
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"testing"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

"github.com/equinix/terraform-provider-equinix/equinix"
"github.com/equinix/terraform-provider-equinix/internal/acceptance"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
Expand Down
5 changes: 3 additions & 2 deletions equinix/resource_fabric_service_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package equinix
import (
"context"
"fmt"
"github.com/equinix/equinix-sdk-go/services/fabricv4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"log"
"strconv"
"strings"
"time"

"github.com/equinix/equinix-sdk-go/services/fabricv4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"

"github.com/equinix/terraform-provider-equinix/internal/converters"
equinix_errors "github.com/equinix/terraform-provider-equinix/internal/errors"
equinix_fabric_schema "github.com/equinix/terraform-provider-equinix/internal/fabric/schema"
Expand Down
5 changes: 3 additions & 2 deletions equinix/resource_fabric_service_profile_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package equinix_test
import (
"context"
"fmt"
"testing"
"time"

"github.com/equinix/terraform-provider-equinix/equinix"
"github.com/equinix/terraform-provider-equinix/internal/acceptance"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"testing"
"time"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"github.com/hashicorp/terraform-plugin-testing/terraform"
Expand Down
3 changes: 2 additions & 1 deletion internal/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package errors

import (
"fmt"
"github.com/equinix/equinix-sdk-go/services/fabricv4"
"net/http"
"strings"

"github.com/equinix/equinix-sdk-go/services/fabricv4"

"github.com/equinix/rest-go"
"github.com/packethost/packngo"
)
Expand Down
3 changes: 2 additions & 1 deletion internal/fabric/schema/fabric_common_mapping_helpers.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package schema

import (
"strconv"

"github.com/equinix/equinix-sdk-go/services/fabricv4"
"github.com/equinix/terraform-provider-equinix/internal/converters"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"strconv"
)

func OrderTerraformToGo(orderTerraform []interface{}) fabricv4.Order {
Expand Down
3 changes: 2 additions & 1 deletion internal/resources/metal/project/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package project

import (
"context"
"github.com/equinix/equinix-sdk-go/services/metalv1"
"path"
"strings"
"time"

"github.com/equinix/equinix-sdk-go/services/metalv1"

fwtypes "github.com/equinix/terraform-provider-equinix/internal/framework/types"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
Expand Down
3 changes: 2 additions & 1 deletion internal/sweep/sweep_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package sweep_test

import (
"github.com/equinix/terraform-provider-equinix/internal/resources/metal/vlan"
"testing"

"github.com/equinix/terraform-provider-equinix/internal/resources/metal/vlan"

"github.com/equinix/terraform-provider-equinix/internal/resources/metal/connection"
"github.com/equinix/terraform-provider-equinix/internal/resources/metal/device"
"github.com/equinix/terraform-provider-equinix/internal/resources/metal/organization"
Expand Down

0 comments on commit e7708e9

Please sign in to comment.