@@ -27,15 +27,15 @@ import (
27
27
e2enode "k8s.io/kubernetes/test/e2e/framework/node"
28
28
instrumentation "k8s.io/kubernetes/test/e2e/instrumentation/common"
29
29
30
- gin "github.com/onsi/ginkgo"
31
- gom "github.com/onsi/gomega"
30
+ "github.com/onsi/ginkgo"
31
+ "github.com/onsi/gomega"
32
32
)
33
33
34
34
var _ = instrumentation .SIGDescribe ("MetricsGrabber" , func () {
35
35
f := framework .NewDefaultFramework ("metrics-grabber" )
36
36
var c , ec clientset.Interface
37
37
var grabber * e2emetrics.Grabber
38
- gin .BeforeEach (func () {
38
+ ginkgo .BeforeEach (func () {
39
39
var err error
40
40
c = f .ClientSet
41
41
ec = f .KubemarkExternalClusterClientSet
@@ -44,24 +44,24 @@ var _ = instrumentation.SIGDescribe("MetricsGrabber", func() {
44
44
framework .ExpectNoError (err )
45
45
})
46
46
47
- gin .It ("should grab all metrics from API server." , func () {
48
- gin .By ("Connecting to /metrics endpoint" )
47
+ ginkgo .It ("should grab all metrics from API server." , func () {
48
+ ginkgo .By ("Connecting to /metrics endpoint" )
49
49
response , err := grabber .GrabFromAPIServer ()
50
50
framework .ExpectNoError (err )
51
- gom .Expect (response ).NotTo (gom .BeEmpty ())
51
+ gomega .Expect (response ).NotTo (gomega .BeEmpty ())
52
52
})
53
53
54
- gin .It ("should grab all metrics from a Kubelet." , func () {
55
- gin .By ("Proxying to Node through the API server" )
54
+ ginkgo .It ("should grab all metrics from a Kubelet." , func () {
55
+ ginkgo .By ("Proxying to Node through the API server" )
56
56
node , err := e2enode .GetRandomReadySchedulableNode (f .ClientSet )
57
57
framework .ExpectNoError (err )
58
58
response , err := grabber .GrabFromKubelet (node .Name )
59
59
framework .ExpectNoError (err )
60
- gom .Expect (response ).NotTo (gom .BeEmpty ())
60
+ gomega .Expect (response ).NotTo (gomega .BeEmpty ())
61
61
})
62
62
63
- gin .It ("should grab all metrics from a Scheduler." , func () {
64
- gin .By ("Proxying to Pod through the API server" )
63
+ ginkgo .It ("should grab all metrics from a Scheduler." , func () {
64
+ ginkgo .By ("Proxying to Pod through the API server" )
65
65
// Check if master Node is registered
66
66
nodes , err := c .CoreV1 ().Nodes ().List (context .TODO (), metav1.ListOptions {})
67
67
framework .ExpectNoError (err )
@@ -78,11 +78,11 @@ var _ = instrumentation.SIGDescribe("MetricsGrabber", func() {
78
78
}
79
79
response , err := grabber .GrabFromScheduler ()
80
80
framework .ExpectNoError (err )
81
- gom .Expect (response ).NotTo (gom .BeEmpty ())
81
+ gomega .Expect (response ).NotTo (gomega .BeEmpty ())
82
82
})
83
83
84
- gin .It ("should grab all metrics from a ControllerManager." , func () {
85
- gin .By ("Proxying to Pod through the API server" )
84
+ ginkgo .It ("should grab all metrics from a ControllerManager." , func () {
85
+ ginkgo .By ("Proxying to Pod through the API server" )
86
86
// Check if master Node is registered
87
87
nodes , err := c .CoreV1 ().Nodes ().List (context .TODO (), metav1.ListOptions {})
88
88
framework .ExpectNoError (err )
@@ -99,6 +99,6 @@ var _ = instrumentation.SIGDescribe("MetricsGrabber", func() {
99
99
}
100
100
response , err := grabber .GrabFromControllerManager ()
101
101
framework .ExpectNoError (err )
102
- gom .Expect (response ).NotTo (gom .BeEmpty ())
102
+ gomega .Expect (response ).NotTo (gomega .BeEmpty ())
103
103
})
104
104
})
0 commit comments