kubelet/container: Move prober.ContainerCommandRunner to container.

Also include the ContainerCommandRunner in Runtime interface, but
still keep the ContainerCommandRunner interface for testability.
This commit is contained in:
Yifan Gu
2015-05-11 15:32:51 -07:00
parent 5fcf5911fa
commit 7831b7da72
5 changed files with 28 additions and 42 deletions

View File

@@ -1575,6 +1575,7 @@ func (f *fakeContainerCommandRunner) PortForward(pod *kubecontainer.Pod, port ui
f.Stream = stream
return nil
}
func TestRunInContainerNoSuchPod(t *testing.T) {
fakeCommandRunner := fakeContainerCommandRunner{}
testKubelet := newTestKubelet(t)