@@ -19,7 +19,7 @@ package auth
19
19
import (
20
20
"fmt"
21
21
22
- "k8s.io/api/core/v1"
22
+ v1 "k8s.io/api/core/v1"
23
23
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24
24
"k8s.io/kubernetes/pkg/master/ports"
25
25
"k8s.io/kubernetes/test/e2e/framework"
@@ -40,7 +40,7 @@ var _ = SIGDescribe("[Feature:NodeAuthenticator]", func() {
40
40
41
41
nodeList , err := f .ClientSet .CoreV1 ().Nodes ().List (metav1.ListOptions {})
42
42
framework .ExpectNoError (err , "failed to list nodes in namespace: %s" , ns )
43
- gomega . Expect (len (nodeList .Items )). NotTo ( gomega . BeZero () )
43
+ framework . ExpectNotEqual (len (nodeList .Items ), 0 )
44
44
45
45
pickedNode := nodeList .Items [0 ]
46
46
nodeIPs = e2enode .GetAddresses (& pickedNode , v1 .NodeExternalIP )
@@ -51,7 +51,8 @@ var _ = SIGDescribe("[Feature:NodeAuthenticator]", func() {
51
51
saName := "default"
52
52
sa , err := f .ClientSet .CoreV1 ().ServiceAccounts (ns ).Get (saName , metav1.GetOptions {})
53
53
framework .ExpectNoError (err , "failed to retrieve service account (%s:%s)" , ns , saName )
54
- gomega .Expect (len (sa .Secrets )).NotTo (gomega .BeZero ())
54
+ framework .ExpectNotEqual (len (sa .Secrets ), 0 )
55
+
55
56
})
56
57
57
58
ginkgo .It ("The kubelet's main port 10250 should reject requests with no credentials" , func () {
0 commit comments