Fix the TestUpdate

This commit is contained in:
Manjunath A Kumatagi 2019-04-07 13:45:22 +05:30
parent 9c2df998af
commit 485605e133

View File

@ -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)