Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/configurators/aws/aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ func TestAWSDocumentConfigurator(t *testing.T) {
ForceEC2Permissions: true,
},
Policies: &policiesMock{
upsertArn: "polcies-arn",
upsertArn: "policies-arn",
},
}
configurator, err := NewAWSConfigurator(config)
Expand Down Expand Up @@ -1429,7 +1429,7 @@ func TestAWSConfigurator(t *testing.T) {
ForceRDSPermissions: true,
},
Policies: &policiesMock{
upsertArn: "polcies-arn",
upsertArn: "policies-arn",
},
}

Expand Down
4 changes: 2 additions & 2 deletions lib/events/athena/athena.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ func (cfg *Config) CheckAndSetDefaults(ctx context.Context) error {
}

if cfg.LimiterRate < 0 {
return trace.BadParameter("LimiterRate cannot be nagative")
return trace.BadParameter("LimiterRate cannot be negative")
}
if cfg.LimiterBurst < 0 {
return trace.BadParameter("LimiterBurst cannot be nagative")
return trace.BadParameter("LimiterBurst cannot be negative")
}

if cfg.LimiterRate > 0 && cfg.LimiterBurst == 0 {
Expand Down
2 changes: 1 addition & 1 deletion lib/kube/proxy/pod_rbac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func TestListPodRBAC(t *testing.T) {
},
},
{
name: "user with pod access request that no longer fullfils the role requirements",
name: "user with pod access request that no longer fullfills the role requirements",
args: args{
user: userWithLimitedAccess,
namespace: metav1.NamespaceDefault,
Expand Down
2 changes: 1 addition & 1 deletion lib/reversetunnel/agentpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ func (c *agentPoolRuntimeConfig) update(ctx context.Context, netConfig types.Clu
if err == nil {
c.tlsRoutingConnUpgradeRequired = client.IsALPNConnUpgradeRequired(addr.Addr, lib.IsInsecureDevMode())
} else {
logrus.WithError(err).Warnf("Faield to resolve addr.")
logrus.WithError(err).Warnf("Failed to resolve addr.")
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/services/matchers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ func TestResourceMatchersToTypes(t *testing.T) {
out: []*types.DatabaseResourceMatcher{},
},
{
name: "sinlge element with single label",
name: "single element with single label",
in: []ResourceMatcher{
{Labels: types.Labels{"elem1": []string{"elem1"}}},
},
Expand All @@ -541,7 +541,7 @@ func TestResourceMatchersToTypes(t *testing.T) {
},
},
{
name: "sinlge element with multiple labels",
name: "single element with multiple labels",
in: []ResourceMatcher{
{Labels: types.Labels{"elem2": []string{"elem1", "elem2"}}},
},
Expand Down
2 changes: 1 addition & 1 deletion lib/srv/alpnproxy/forward_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func (h *ForwardToSystemProxyHandler) Handle(ctx context.Context, clientConn net

// Send original CONNECT request to system proxy.
if err = req.WriteProxy(serverConn); err != nil {
log.WithError(err).Errorf("Failed to send CONNTECT request to system proxy %q.", systemProxyURL.Host)
log.WithError(err).Errorf("Failed to send CONNECT request to system proxy %q.", systemProxyURL.Host)
writeHeaderToHijackedConnection(clientConn, req, http.StatusBadGateway)
return
}
Expand Down
2 changes: 1 addition & 1 deletion lib/usagereporter/teleport/usagereporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func TestConvertUsageEvent(t *testing.T) {
}},
},
{
name: "error when discover metadata dones't have id",
name: "error when discover metadata doesn't have id",
event: &usageeventsv1.UsageEventOneOf{Event: &usageeventsv1.UsageEventOneOf_UiDiscoverResourceSelectionEvent{
UiDiscoverResourceSelectionEvent: &usageeventsv1.UIDiscoverResourceSelectionEvent{
Metadata: &usageeventsv1.DiscoverMetadata{Id: ""},
Expand Down