add Patch to clientsets

This commit is contained in:
Chao Xu
2016-06-13 11:42:46 -07:00
parent 60c1ec8eac
commit a29f6aa8ae
127 changed files with 1547 additions and 29 deletions

View File

@@ -161,6 +161,10 @@ func (m *FakeNodeHandler) Watch(opts api.ListOptions) (watch.Interface, error) {
return nil, nil
}
func (m *FakeNodeHandler) Patch(name string, pt api.PatchType, data []byte) (*api.Node, error) {
return nil, nil
}
func TestMonitorNodeStatusEvictPods(t *testing.T) {
fakeNow := unversioned.Date(2015, 1, 1, 12, 0, 0, 0, time.UTC)
evictionTimeout := 10 * time.Minute