mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 14:23:37 +00:00
Fix the TestUpdate
This commit is contained in:
parent
9c2df998af
commit
485605e133
@ -101,6 +101,12 @@ func TestUpdate(t *testing.T) {
|
|||||||
test.TestUpdate(
|
test.TestUpdate(
|
||||||
// valid
|
// valid
|
||||||
validNewCSIDriver("foo"),
|
validNewCSIDriver("foo"),
|
||||||
|
// updateFunc
|
||||||
|
func(obj runtime.Object) runtime.Object {
|
||||||
|
object := obj.(*storageapi.CSIDriver)
|
||||||
|
object.Labels = map[string]string{"a": "b"}
|
||||||
|
return object
|
||||||
|
},
|
||||||
//invalid update
|
//invalid update
|
||||||
func(obj runtime.Object) runtime.Object {
|
func(obj runtime.Object) runtime.Object {
|
||||||
object := obj.(*storageapi.CSIDriver)
|
object := obj.(*storageapi.CSIDriver)
|
||||||
|
Loading…
Reference in New Issue
Block a user