Replace pkg/kubecfg#FakeKubeClient with the fake in pkg/client

This commit is contained in:
Clayton Coleman
2014-08-15 17:15:03 -04:00
parent 59bb81e24b
commit 82b0ec5115
4 changed files with 113 additions and 194 deletions

View File

@@ -319,7 +319,7 @@ func TestSyncronize(t *testing.T) {
type FakeWatcher struct {
w *watch.FakeWatcher
*client.FakeClient
*client.Fake
}
func (fw FakeWatcher) WatchReplicationControllers(l, f labels.Selector, rv uint64) (watch.Interface, error) {
@@ -327,7 +327,7 @@ func (fw FakeWatcher) WatchReplicationControllers(l, f labels.Selector, rv uint6
}
func TestWatchControllers(t *testing.T) {
client := FakeWatcher{watch.NewFake(), &client.FakeClient{}}
client := FakeWatcher{watch.NewFake(), &client.Fake{}}
manager := MakeReplicationManager(client)
var testControllerSpec api.ReplicationController
received := make(chan struct{})