Update tests for RuntimeClass beta

pull/564/head
Tim Allclair 2019-03-08 10:23:50 -08:00
parent bc01f97055
commit 0604256d6c
2 changed files with 9 additions and 7 deletions

View File

@ -1023,6 +1023,14 @@ items:
- get
- patch
- update
- apiGroups:
- node.k8s.io
resources:
- runtimeclasses
verbs:
- get
- list
- watch
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:

View File

@ -43,12 +43,6 @@ var _ = SIGDescribe("RuntimeClass", func() {
expectSandboxFailureEvent(f, pod, fmt.Sprintf("\"%s\" not found", rcName))
})
It("should run a Pod requesting a RuntimeClass with an empty handler", func() {
rcName := createRuntimeClass(f, "empty-handler", "")
pod := createRuntimeClassPod(f, rcName)
expectPodSuccess(f, pod)
})
It("should reject a Pod requesting a RuntimeClass with an unconfigured handler", func() {
handler := f.Namespace.Name + "-handler"
rcName := createRuntimeClass(f, "unconfigured-handler", handler)
@ -57,7 +51,7 @@ var _ = SIGDescribe("RuntimeClass", func() {
})
It("should reject a Pod requesting a deleted RuntimeClass", func() {
rcName := createRuntimeClass(f, "delete-me", "")
rcName := createRuntimeClass(f, "delete-me", "runc")
rcClient := f.ClientSet.NodeV1beta1().RuntimeClasses()
By("Deleting RuntimeClass "+rcName, func() {