Expect(result).To(Or(Equal("401"),Equal("403")),"the kubelet's main port 10250 should reject requests with no credentials")
gomega.Expect(result).To(gomega.Or(gomega.Equal("401"),gomega.Equal("403")),"the kubelet's main port 10250 should reject requests with no credentials")
}
}
})
})
It("The kubelet can delegate ServiceAccount tokens to the API server",func(){
ginkgo.It("The kubelet can delegate ServiceAccount tokens to the API server",func(){
By("create a new ServiceAccount for authentication")
ginkgo.By("create a new ServiceAccount for authentication")
trueValue:=true
trueValue:=true
newSA:=&v1.ServiceAccount{
newSA:=&v1.ServiceAccount{
ObjectMeta:metav1.ObjectMeta{
ObjectMeta:metav1.ObjectMeta{
...
@@ -84,7 +84,7 @@ var _ = SIGDescribe("[Feature:NodeAuthenticator]", func() {
...
@@ -84,7 +84,7 @@ var _ = SIGDescribe("[Feature:NodeAuthenticator]", func() {
Expect(groups.Has("system:authenticated")).To(Equal(true),fmt.Sprintf("expected system:authenticated group, had %v",groups.List()))
gomega.Expect(groups.Has("system:authenticated")).To(gomega.Equal(true),fmt.Sprintf("expected system:authenticated group, had %v",groups.List()))
Expect(groups.Has("system:serviceaccounts")).To(Equal(true),fmt.Sprintf("expected system:serviceaccounts group, had %v",groups.List()))
gomega.Expect(groups.Has("system:serviceaccounts")).To(gomega.Equal(true),fmt.Sprintf("expected system:serviceaccounts group, had %v",groups.List()))
Expect(groups.Has("system:serviceaccounts:"+f.Namespace.Name)).To(Equal(true),fmt.Sprintf("expected system:serviceaccounts:"+f.Namespace.Name+" group, had %v",groups.List()))
gomega.Expect(groups.Has("system:serviceaccounts:"+f.Namespace.Name)).To(gomega.Equal(true),fmt.Sprintf("expected system:serviceaccounts:"+f.Namespace.Name+" group, had %v",groups.List()))
})
})
/*
/*
...
@@ -285,7 +285,7 @@ var _ = SIGDescribe("ServiceAccounts", func() {
...
@@ -285,7 +285,7 @@ var _ = SIGDescribe("ServiceAccounts", func() {