Detangle Attach/Detach from GCE PD

This commit is contained in:
Sami Wagiaalla
2016-02-19 16:27:41 -05:00
parent f1e528eab6
commit 4858d0ab6f
6 changed files with 285 additions and 293 deletions

View File

@@ -407,6 +407,7 @@ func TestSyncPodsDeletesWhenSourcesAreReady(t *testing.T) {
func TestMountExternalVolumes(t *testing.T) {
testKubelet := newTestKubelet(t)
kubelet := testKubelet.kubelet
kubelet.mounter = &mount.FakeMounter{}
plug := &volumetest.FakeVolumePlugin{PluginName: "fake", Host: nil}
kubelet.volumePluginMgr.InitPlugins([]volume.VolumePlugin{plug}, &volumeHost{kubelet})