diff --git a/metricbeat/module/kubernetes/container/container_integration_test.go b/metricbeat/module/kubernetes/container/container_integration_test.go index baaae24aa2f..18df4cdd2d1 100644 --- a/metricbeat/module/kubernetes/container/container_integration_test.go +++ b/metricbeat/module/kubernetes/container/container_integration_test.go @@ -20,9 +20,10 @@ package container import ( - "github.com/stretchr/testify/assert" "testing" + "github.com/stretchr/testify/assert" + mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing" "github.com/elastic/beats/v7/metricbeat/module/kubernetes/test" ) diff --git a/metricbeat/module/kubernetes/node/node_integration_test.go b/metricbeat/module/kubernetes/node/node_integration_test.go index 37eb6bb934b..7d1c73bc20b 100644 --- a/metricbeat/module/kubernetes/node/node_integration_test.go +++ b/metricbeat/module/kubernetes/node/node_integration_test.go @@ -20,9 +20,10 @@ package node import ( - "github.com/stretchr/testify/assert" "testing" + "github.com/stretchr/testify/assert" + mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing" "github.com/elastic/beats/v7/metricbeat/module/kubernetes/test" ) diff --git a/metricbeat/module/kubernetes/pod/pod_integration_test.go b/metricbeat/module/kubernetes/pod/pod_integration_test.go index 2be31362e9f..9202891f84d 100644 --- a/metricbeat/module/kubernetes/pod/pod_integration_test.go +++ b/metricbeat/module/kubernetes/pod/pod_integration_test.go @@ -20,9 +20,10 @@ package pod import ( - "github.com/stretchr/testify/assert" "testing" + "github.com/stretchr/testify/assert" + mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing" "github.com/elastic/beats/v7/metricbeat/module/kubernetes/test" ) diff --git a/metricbeat/module/kubernetes/proxy/proxy_integration_test.go b/metricbeat/module/kubernetes/proxy/proxy_integration_test.go index ffd3ee48a3f..d596fb545f8 100644 --- a/metricbeat/module/kubernetes/proxy/proxy_integration_test.go +++ b/metricbeat/module/kubernetes/proxy/proxy_integration_test.go @@ -20,9 +20,10 @@ package proxy import ( - "github.com/stretchr/testify/assert" "testing" + "github.com/stretchr/testify/assert" + mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing" "github.com/elastic/beats/v7/metricbeat/module/kubernetes/test" ) diff --git a/metricbeat/module/kubernetes/scheduler/scheduler_integration_test.go b/metricbeat/module/kubernetes/scheduler/scheduler_integration_test.go index 72322ee9145..90d986404dc 100644 --- a/metricbeat/module/kubernetes/scheduler/scheduler_integration_test.go +++ b/metricbeat/module/kubernetes/scheduler/scheduler_integration_test.go @@ -20,9 +20,10 @@ package scheduler import ( - "github.com/stretchr/testify/assert" "testing" + "github.com/stretchr/testify/assert" + mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing" "github.com/elastic/beats/v7/metricbeat/module/kubernetes/test" ) diff --git a/metricbeat/module/kubernetes/system/system_integration_test.go b/metricbeat/module/kubernetes/system/system_integration_test.go index a8d9eb9f938..5b876f0caff 100644 --- a/metricbeat/module/kubernetes/system/system_integration_test.go +++ b/metricbeat/module/kubernetes/system/system_integration_test.go @@ -20,11 +20,12 @@ package system import ( -"github.com/stretchr/testify/assert" -"testing" + "testing" -mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing" -"github.com/elastic/beats/v7/metricbeat/module/kubernetes/test" + "github.com/stretchr/testify/assert" + + mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing" + "github.com/elastic/beats/v7/metricbeat/module/kubernetes/test" ) func TestFetchMetricset(t *testing.T) { diff --git a/metricbeat/module/kubernetes/test/integration.go b/metricbeat/module/kubernetes/test/integration.go index f741c3f7050..0ae88b963fd 100644 --- a/metricbeat/module/kubernetes/test/integration.go +++ b/metricbeat/module/kubernetes/test/integration.go @@ -68,10 +68,10 @@ func GetKubeletConfig(t *testing.T, metricSetName string) map[string]interface{} func GetKubeProxyConfig(t *testing.T, metricSetName string) map[string]interface{} { t.Helper() return map[string]interface{}{ - "module": "kubernetes", - "metricsets": []string{metricSetName}, - "host": "${NODE_NAME}", - "hosts": []string{"localhost:10252"}, + "module": "kubernetes", + "metricsets": []string{metricSetName}, + "host": "${NODE_NAME}", + "hosts": []string{"localhost:10252"}, } } @@ -79,10 +79,9 @@ func GetKubeProxyConfig(t *testing.T, metricSetName string) map[string]interface func GetSchedulerConfig(t *testing.T, metricSetName string) map[string]interface{} { t.Helper() return map[string]interface{}{ - "module": "kubernetes", - "metricsets": []string{metricSetName}, - "host": "${NODE_NAME}", - "hosts": []string{"localhost:10251"}, + "module": "kubernetes", + "metricsets": []string{metricSetName}, + "host": "${NODE_NAME}", + "hosts": []string{"localhost:10251"}, } } - diff --git a/metricbeat/module/kubernetes/volume/volume_integration_test.go b/metricbeat/module/kubernetes/volume/volume_integration_test.go index fd907c1a63d..c0934a8cae0 100644 --- a/metricbeat/module/kubernetes/volume/volume_integration_test.go +++ b/metricbeat/module/kubernetes/volume/volume_integration_test.go @@ -20,9 +20,10 @@ package volume import ( - "github.com/stretchr/testify/assert" "testing" + "github.com/stretchr/testify/assert" + mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing" "github.com/elastic/beats/v7/metricbeat/module/kubernetes/test" )