mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58: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(
|
||||
// valid
|
||||
validNewCSIDriver("foo"),
|
||||
// updateFunc
|
||||
func(obj runtime.Object) runtime.Object {
|
||||
object := obj.(*storageapi.CSIDriver)
|
||||
object.Labels = map[string]string{"a": "b"}
|
||||
return object
|
||||
},
|
||||
//invalid update
|
||||
func(obj runtime.Object) runtime.Object {
|
||||
object := obj.(*storageapi.CSIDriver)
|
||||
|
Loading…
Reference in New Issue
Block a user