mirror of https://github.com/k3s-io/k3s
Update tests for RuntimeClass beta
parent
bc01f97055
commit
0604256d6c
|
@ -1023,6 +1023,14 @@ items:
|
||||||
- get
|
- get
|
||||||
- patch
|
- patch
|
||||||
- update
|
- update
|
||||||
|
- apiGroups:
|
||||||
|
- node.k8s.io
|
||||||
|
resources:
|
||||||
|
- runtimeclasses
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
- apiVersion: rbac.authorization.k8s.io/v1
|
- apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -43,12 +43,6 @@ var _ = SIGDescribe("RuntimeClass", func() {
|
||||||
expectSandboxFailureEvent(f, pod, fmt.Sprintf("\"%s\" not found", rcName))
|
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() {
|
It("should reject a Pod requesting a RuntimeClass with an unconfigured handler", func() {
|
||||||
handler := f.Namespace.Name + "-handler"
|
handler := f.Namespace.Name + "-handler"
|
||||||
rcName := createRuntimeClass(f, "unconfigured-handler", 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() {
|
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()
|
rcClient := f.ClientSet.NodeV1beta1().RuntimeClasses()
|
||||||
|
|
||||||
By("Deleting RuntimeClass "+rcName, func() {
|
By("Deleting RuntimeClass "+rcName, func() {
|
||||||
|
|
Loading…
Reference in New Issue