Commit 485605e1 authored by Manjunath A Kumatagi's avatar Manjunath A Kumatagi

Fix the TestUpdate

parent 9c2df998
...@@ -101,6 +101,12 @@ func TestUpdate(t *testing.T) { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment