Skip to content

Commit

Permalink
fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramadon committed Dec 4, 2024
1 parent 0e3b86b commit b14a43c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion extension/agenthealth/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ package agenthealth

import (
"github.com/amazon-contributing/opentelemetry-collector-contrib/extension/awsmiddleware"
"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent"
"go.opentelemetry.io/collector/component"
"go.uber.org/zap"

"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats"
"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent"
"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/useragent"
)

Expand Down
3 changes: 2 additions & 1 deletion extension/agenthealth/handler/stats/provider/process_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ package provider

import (
"errors"
"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent"
"sync"
"testing"
"time"

"github.com/shirou/gopsutil/v3/process"
"github.com/stretchr/testify/assert"

"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent"
)

type mockProcessMetrics struct {
Expand Down
6 changes: 5 additions & 1 deletion extension/agenthealth/handler/stats/provider/statuscode.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT

package provider

import (
"context"
"github.com/amazon-contributing/opentelemetry-collector-contrib/extension/awsmiddleware"
"net/http"
"sync"
"time"

"github.com/amazon-contributing/opentelemetry-collector-contrib/extension/awsmiddleware"

"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent"
)

Expand Down
15 changes: 5 additions & 10 deletions extension/agenthealth/handler/stats/provider/statuscode_test.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT

package provider

import (
"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent"
"reflect"
"testing"
)

// MockOperationsFilter is a mock implementation of OperationsFilter.
type MockOperationsFilter struct {
allowedOperations map[string]bool
}

func (m *MockOperationsFilter) IsAllowed(operation string) bool {
return m.allowedOperations[operation]
}
"github.com/aws/amazon-cloudwatch-agent/extension/agenthealth/handler/stats/agent"
)

func TestSingletonStatsProvider_Stats(t *testing.T) {
provider := &SingletonStatsProvider{
Expand Down

0 comments on commit b14a43c

Please sign in to comment.