From 7aa737cd7a91f88ceb025a2235bfd61bd6c29e14 Mon Sep 17 00:00:00 2001 From: Ramya Bangera Date: Thu, 27 Jul 2023 14:06:03 +0530 Subject: [PATCH] Fix linter issues 1. Fix goimports linter issue in internal/provider/provider.go 2. Escaped the unparam linter in the internal/resources/ekscluster/resource_ekscluster_test.go file Signed-off-by: Ramya Bangera --- internal/provider/provider.go | 1 + internal/resources/ekscluster/resource_ekscluster_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 935ec74b2..1d28e8cee 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -7,6 +7,7 @@ package provider import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/vmware/terraform-provider-tanzu-mission-control/internal/authctx" "github.com/vmware/terraform-provider-tanzu-mission-control/internal/resources/akscluster" "github.com/vmware/terraform-provider-tanzu-mission-control/internal/resources/cluster" diff --git a/internal/resources/ekscluster/resource_ekscluster_test.go b/internal/resources/ekscluster/resource_ekscluster_test.go index ed09b20fe..6af17f243 100644 --- a/internal/resources/ekscluster/resource_ekscluster_test.go +++ b/internal/resources/ekscluster/resource_ekscluster_test.go @@ -538,6 +538,7 @@ func getMockEksClusterSpec(accountID string, templateID string) (eksmodel.Vmware } } +// nolint: unparam func bodyInspectingResponder(t *testing.T, expectedContent interface{}, successResponse int, successResponseBody interface{}) httpmock.Responder { return func(r *http.Request) (*http.Response, error) { successFunc := func() (*http.Response, error) {