Ejemplo n.º 1
0
 def testExposeShutdownExposeUnexpose(self):
     logging.debug("First Expose...")
     record, hostname = self._expose_vdi(self.TRANSFER_MODE)
     logging.debug("TransferVM shutdown")
     testsetup.clean_vms(hostname)
     logging.debug("Second Expose for same disk")
     #For the second expose, we must use the same vdi
     record, hostname = self._expose_vdi(self.TRANSFER_MODE, hostname, record['vdi_uuid'])
     logging.debug("Second unexpose")
     self._unexpose_vdi(hostname, record)
     delete_vdi(hostname, record['vdi_uuid'])
Ejemplo n.º 2
0
 def testExposeShutdown(self):
     record, hostname = self._expose_vdi(self.TRANSFER_MODE)
     testsetup.clean_vms(hostname)
     assertVdiKeyNotOnSR(hostname, record['vdi_uuid'])
     delete_vdi(hostname, record['vdi_uuid'])