Skip to content

Commit

Permalink
Lint and test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gzdunek committed Oct 16, 2024
1 parent 1441e44 commit b884781
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/utils/keys/yubikey_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ type HardwareKeyPrompt interface {
// PINAndPUK describes a response returned from HardwareKeyPrompt.ChangePIN.
type PINAndPUK struct {
// New PIN set by the user.
PIN string
PIN string
// PUK used to change the PIN.
// This is a new PUK if it has not been changed (from the default PUK).
PUK string
PUK string
// PUKChanged is true if the user changed the default PUK.
PUKChanged bool
}
Expand Down
4 changes: 4 additions & 0 deletions integration/proxy/teleterm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
"github.com/gravitational/teleport/api/client/proto"
"github.com/gravitational/teleport/api/constants"
"github.com/gravitational/teleport/api/types"
"github.com/gravitational/teleport/api/utils/keys"
api "github.com/gravitational/teleport/gen/proto/go/teleport/lib/teleterm/v1"
"github.com/gravitational/teleport/integration/appaccess"
dbhelpers "github.com/gravitational/teleport/integration/db"
Expand Down Expand Up @@ -240,6 +241,9 @@ func testGatewayCertRenewal(ctx context.Context, t *testing.T, params gatewayCer
// db cert has expired.
Clock: fakeClock,
WebauthnLogin: webauthnLogin,
HardwareKeyPromptConstructor: func(rootClusterURI uri.ResourceURI) keys.HardwareKeyPrompt {
return nil
},
})
require.NoError(t, err)

Expand Down

0 comments on commit b884781

Please sign in to comment.