Skip to content

Commit

Permalink
mage fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse committed May 4, 2020
1 parent 9275f8b commit 7fcad4f
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
3 changes: 2 additions & 1 deletion metricbeat/module/kubernetes/node/node_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
3 changes: 2 additions & 1 deletion metricbeat/module/kubernetes/pod/pod_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
3 changes: 2 additions & 1 deletion metricbeat/module/kubernetes/proxy/proxy_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
17 changes: 8 additions & 9 deletions metricbeat/module/kubernetes/test/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,20 @@ 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"},
}
}

// GetSchedulerConfig function returns configuration for talking to kube-proxy.
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"},
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 7fcad4f

Please sign in to comment.