From 44b8e589e3861b849e6092db2a248f98882f5918 Mon Sep 17 00:00:00 2001 From: Salim Afiune Date: Fri, 9 Apr 2021 17:43:17 -0500 Subject: [PATCH] chore: run goimports-reviser to order imports (#378) Signed-off-by: Salim Afiune Maya --- api/events_test.go | 3 ++- api/http_test.go | 3 ++- api/integration_alert_channels_test.go | 3 ++- api/integrations_ctr_reg_ecr_access_key_test.go | 3 ++- api/integrations_ctr_reg_ecr_cross_account_test.go | 3 ++- api/integrations_ctr_reg_test.go | 3 ++- api/logging.go | 2 +- api/vulnerabilities_container.go | 3 ++- cli/cmd/access_token.go | 3 ++- cli/cmd/compliance_gcp_test.go | 3 ++- cli/cmd/compliance_test.go | 3 ++- cli/cmd/vuln_html.go | 2 +- integration/host_vulnerability_test.go | 3 ++- integration/version_test.go | 3 ++- 14 files changed, 26 insertions(+), 14 deletions(-) diff --git a/api/events_test.go b/api/events_test.go index 239fa8d34..766b00af9 100644 --- a/api/events_test.go +++ b/api/events_test.go @@ -24,9 +24,10 @@ import ( "testing" "time" + "github.com/stretchr/testify/assert" + "github.com/lacework/go-sdk/api" "github.com/lacework/go-sdk/internal/lacework" - "github.com/stretchr/testify/assert" ) func TestEventsSeverity(t *testing.T) { diff --git a/api/http_test.go b/api/http_test.go index c378e8264..b5c3c9716 100644 --- a/api/http_test.go +++ b/api/http_test.go @@ -24,9 +24,10 @@ import ( "net/http" "testing" + "github.com/stretchr/testify/assert" + "github.com/lacework/go-sdk/api" "github.com/lacework/go-sdk/internal/lacework" - "github.com/stretchr/testify/assert" ) func TestNewRequest(t *testing.T) { diff --git a/api/integration_alert_channels_test.go b/api/integration_alert_channels_test.go index 40283eff8..9f0e547dc 100644 --- a/api/integration_alert_channels_test.go +++ b/api/integration_alert_channels_test.go @@ -21,8 +21,9 @@ package api_test import ( "testing" - "github.com/lacework/go-sdk/api" "github.com/stretchr/testify/assert" + + "github.com/lacework/go-sdk/api" ) func TestAlertLevelValid(t *testing.T) { diff --git a/api/integrations_ctr_reg_ecr_access_key_test.go b/api/integrations_ctr_reg_ecr_access_key_test.go index 33836caa3..d5651ff29 100644 --- a/api/integrations_ctr_reg_ecr_access_key_test.go +++ b/api/integrations_ctr_reg_ecr_access_key_test.go @@ -21,8 +21,9 @@ package api_test import ( "testing" - "github.com/lacework/go-sdk/api" "github.com/stretchr/testify/assert" + + "github.com/lacework/go-sdk/api" ) func TestIntegrationsNewAwsEcrAccessKeyIntegration(t *testing.T) { diff --git a/api/integrations_ctr_reg_ecr_cross_account_test.go b/api/integrations_ctr_reg_ecr_cross_account_test.go index 9add22e70..d80b7eece 100644 --- a/api/integrations_ctr_reg_ecr_cross_account_test.go +++ b/api/integrations_ctr_reg_ecr_cross_account_test.go @@ -21,8 +21,9 @@ package api_test import ( "testing" - "github.com/lacework/go-sdk/api" "github.com/stretchr/testify/assert" + + "github.com/lacework/go-sdk/api" ) func TestIntegrationsNewAwsEcrWitCrossAccountIntegration(t *testing.T) { diff --git a/api/integrations_ctr_reg_test.go b/api/integrations_ctr_reg_test.go index d6ce1c8f7..908010d86 100644 --- a/api/integrations_ctr_reg_test.go +++ b/api/integrations_ctr_reg_test.go @@ -21,8 +21,9 @@ package api_test import ( "testing" - "github.com/lacework/go-sdk/api" "github.com/stretchr/testify/assert" + + "github.com/lacework/go-sdk/api" ) func TestIntegrationsNewContainerRegIntegration(t *testing.T) { diff --git a/api/logging.go b/api/logging.go index 223357685..7b32d444d 100644 --- a/api/logging.go +++ b/api/logging.go @@ -24,10 +24,10 @@ import ( "os" "syscall" + "github.com/pkg/errors" "go.uber.org/zap" "github.com/lacework/go-sdk/lwlogger" - "github.com/pkg/errors" ) // WithLogLevel sets the log level of the client, available: info or debug diff --git a/api/vulnerabilities_container.go b/api/vulnerabilities_container.go index f003e7f87..45c7c3c8c 100644 --- a/api/vulnerabilities_container.go +++ b/api/vulnerabilities_container.go @@ -24,8 +24,9 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/internal/array" "github.com/pkg/errors" + + "github.com/lacework/go-sdk/internal/array" ) // ContainerVulnerabilityService is a service that interacts with the vulnerabilities diff --git a/cli/cmd/access_token.go b/cli/cmd/access_token.go index 85cddcf0e..0a04a33a4 100644 --- a/cli/cmd/access_token.go +++ b/cli/cmd/access_token.go @@ -21,9 +21,10 @@ package cmd import ( "fmt" - "github.com/lacework/go-sdk/api" "github.com/pkg/errors" "github.com/spf13/cobra" + + "github.com/lacework/go-sdk/api" ) var ( diff --git a/cli/cmd/compliance_gcp_test.go b/cli/cmd/compliance_gcp_test.go index 01aedb1ba..ec8aac943 100644 --- a/cli/cmd/compliance_gcp_test.go +++ b/cli/cmd/compliance_gcp_test.go @@ -22,8 +22,9 @@ import ( "fmt" "testing" - "github.com/lacework/go-sdk/api" "github.com/stretchr/testify/assert" + + "github.com/lacework/go-sdk/api" ) func TestSplitIDAndAlias(t *testing.T) { diff --git a/cli/cmd/compliance_test.go b/cli/cmd/compliance_test.go index 48dafe29c..68fd80772 100644 --- a/cli/cmd/compliance_test.go +++ b/cli/cmd/compliance_test.go @@ -21,8 +21,9 @@ package cmd import ( "testing" - "github.com/lacework/go-sdk/api" "github.com/stretchr/testify/assert" + + "github.com/lacework/go-sdk/api" ) func TestComplianceRecommendationsFilterNoResults(t *testing.T) { diff --git a/cli/cmd/vuln_html.go b/cli/cmd/vuln_html.go index 7447f09ea..098be5429 100644 --- a/cli/cmd/vuln_html.go +++ b/cli/cmd/vuln_html.go @@ -28,10 +28,10 @@ import ( "sort" "strings" - "github.com/lacework/go-sdk/internal/databox" "github.com/pkg/errors" "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/internal/databox" ) const ( diff --git a/integration/host_vulnerability_test.go b/integration/host_vulnerability_test.go index 2f73bbf15..28fb5a1f5 100644 --- a/integration/host_vulnerability_test.go +++ b/integration/host_vulnerability_test.go @@ -25,8 +25,9 @@ import ( "runtime" "testing" - "github.com/lacework/go-sdk/api" "github.com/stretchr/testify/assert" + + "github.com/lacework/go-sdk/api" ) // persistent host "ip-10-0-1-170.us-west-2.compute.internal" diff --git a/integration/version_test.go b/integration/version_test.go index efba9ad01..cdadda691 100644 --- a/integration/version_test.go +++ b/integration/version_test.go @@ -26,8 +26,9 @@ import ( "testing" "time" - "github.com/lacework/go-sdk/lwupdater" "github.com/stretchr/testify/assert" + + "github.com/lacework/go-sdk/lwupdater" ) // To test the daily version check we need to set the environment