From 3bcb41e599dbafd4302f70411b92a611e689072f Mon Sep 17 00:00:00 2001 From: hugoShaka Date: Wed, 13 Nov 2024 17:25:08 -0500 Subject: [PATCH] lint --- lib/autoupdate/rolloutcontroller/client.go | 1 + lib/autoupdate/rolloutcontroller/client_test.go | 6 ++++-- lib/autoupdate/rolloutcontroller/reconciler.go | 8 +++++--- lib/autoupdate/rolloutcontroller/reconciler_test.go | 10 ++++++---- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/lib/autoupdate/rolloutcontroller/client.go b/lib/autoupdate/rolloutcontroller/client.go index c54d41ad75ccd..4dead0f9dee19 100644 --- a/lib/autoupdate/rolloutcontroller/client.go +++ b/lib/autoupdate/rolloutcontroller/client.go @@ -20,6 +20,7 @@ package rolloutcontroller import ( "context" + autoupdatepb "github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1" ) diff --git a/lib/autoupdate/rolloutcontroller/client_test.go b/lib/autoupdate/rolloutcontroller/client_test.go index 43a6f8b180fa3..ba204ffb77db3 100644 --- a/lib/autoupdate/rolloutcontroller/client_test.go +++ b/lib/autoupdate/rolloutcontroller/client_test.go @@ -20,10 +20,12 @@ package rolloutcontroller import ( "context" - "github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1" + "testing" + "github.com/stretchr/testify/require" "google.golang.org/protobuf/proto" - "testing" + + "github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1" ) // mockClient is a mock implementation if the Client interface for testing purposes. diff --git a/lib/autoupdate/rolloutcontroller/reconciler.go b/lib/autoupdate/rolloutcontroller/reconciler.go index de1f20396bedf..78989c4ec4a6b 100644 --- a/lib/autoupdate/rolloutcontroller/reconciler.go +++ b/lib/autoupdate/rolloutcontroller/reconciler.go @@ -20,12 +20,14 @@ package rolloutcontroller import ( "context" - "github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1" - update "github.com/gravitational/teleport/api/types/autoupdate" - "github.com/gravitational/trace" "log/slog" "sync" "time" + + "github.com/gravitational/trace" + + "github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1" + update "github.com/gravitational/teleport/api/types/autoupdate" ) const ( diff --git a/lib/autoupdate/rolloutcontroller/reconciler_test.go b/lib/autoupdate/rolloutcontroller/reconciler_test.go index de17fd9831583..340451d8da46d 100644 --- a/lib/autoupdate/rolloutcontroller/reconciler_test.go +++ b/lib/autoupdate/rolloutcontroller/reconciler_test.go @@ -20,17 +20,19 @@ package rolloutcontroller import ( "context" + "testing" + "github.com/google/go-cmp/cmp" "github.com/google/uuid" + "github.com/gravitational/trace" + "github.com/stretchr/testify/require" + "google.golang.org/protobuf/testing/protocmp" + "github.com/gravitational/teleport/api/gen/proto/go/teleport/autoupdate/v1" update "github.com/gravitational/teleport/api/types/autoupdate" apiutils "github.com/gravitational/teleport/api/utils" "github.com/gravitational/teleport/lib/backend" "github.com/gravitational/teleport/lib/utils" - "github.com/gravitational/trace" - "github.com/stretchr/testify/require" - "google.golang.org/protobuf/testing/protocmp" - "testing" ) // rolloutEquals returns a require.ValueAssertionFunc that checks the rollout is identical.