예제 #1
0
 def test_attach_snap_task_revert(self, client, mocked):
     store_spec = {
         'client': client,
         'smp_name': 'mount_point_name',
         'snap_name': 'snap_name'
     }
     self.work_flow.add(vnx_taskflow.AttachSnapTask())
     engine = taskflow.engines.load(self.work_flow, store=store_spec)
     self.assertRaises(vnx_ex.VNXAttachSnapError, engine.run)
예제 #2
0
 def test_attach_snap_task(self, client, mocked):
     store_spec = {
         'client': client,
         'smp_name': 'mount_point_name',
         'snap_name': 'snap_name'
     }
     self.work_flow.add(vnx_taskflow.AttachSnapTask())
     engine = taskflow.engines.load(self.work_flow, store=store_spec)
     engine.run()