def testDiscoverVolumesInfo(self):
     discover_volumes.glustercli.volumeInfo = self._mockGetVolumeInfo
     status, output = discover_volumes.discoverVolumes("V1", False)
     volumesList = json.loads(output)
     self._verifyVolumeInfo(volumesList, "V1")
 def testDiscoverVolumesInfo(self):
     discover_volumes.glustercli.volumeInfo = self._mockGetVolumeInfo
     status, output = discover_volumes.discoverVolumes("V1", False)
     volumesList = json.loads(output)
     self._verifyVolumeInfo(volumesList, "V1")
 def testDiscoverVolumesList(self):
     discover_volumes.glustercli.volumeInfo = self._mockGetVolumeInfo
     status, output = discover_volumes.discoverVolumes(None, True)
     volumesList = json.loads(output)
     self._verifyVolumeList(volumesList)
 def testDiscoverVolumesList(self):
     discover_volumes.glustercli.volumeInfo = self._mockGetVolumeInfo
     status, output = discover_volumes.discoverVolumes(None, True)
     volumesList = json.loads(output)
     self._verifyVolumeList(volumesList)