Support List() single-matchers

This commit is contained in:
Wojciech Tyczynski
2015-04-13 12:33:37 +02:00
parent 0ea87e4864
commit 6feaf8ee4f
4 changed files with 66 additions and 5 deletions

View File

@@ -280,6 +280,15 @@ func TestListPodListSelection(t *testing.T) {
},
},
}
fakeEtcdClient.Data["/registry/pods/default/zot"] = tools.EtcdResponseWithError{
R: &etcd.Response{
Node: &etcd.Node{
Value: runtime.EncodeOrDie(latest.Codec, &api.Pod{
ObjectMeta: api.ObjectMeta{Name: "zot"},
}),
},
},
}
storage := NewStorage(helper, nil).Pod
ctx := api.NewDefaultContext()