예제 #1
0
 def test_copy_snapshot_task_revert(self, client, mocked):
     store_spec = {
         'client': client,
         'snap_name': 'original_name',
         'new_snap_name': 'new_name'
     }
     self.work_flow.add(vnx_taskflow.CopySnapshotTask())
     engine = taskflow.engines.load(self.work_flow, store=store_spec)
     self.assertRaises(vnx_ex.VNXSnapError, engine.run)
예제 #2
0
 def test_copy_snapshot_task(self, client, mocked):
     store_spec = {
         'client': client,
         'snap_name': 'original_name',
         'new_snap_name': 'new_name'
     }
     self.work_flow.add(vnx_taskflow.CopySnapshotTask())
     engine = taskflow.engines.load(self.work_flow, store=store_spec)
     engine.run()