Пример #1
0
 def test_calc_migrate_and_provision(self, mocked):
     volume = mocked['volume']
     volume.display_name = 'volume-ca86b9a0-d0d5-4267-8cd5-c62274056cc0'
     async_migrate, provision = vnx_utils.calc_migrate_and_provision(volume)
     self.assertEqual(vnx_utils.is_async_migrate_enabled(volume),
                      async_migrate)
     self.assertEqual(provision.name, 'THICK')
Пример #2
0
 def test_calc_migrate_and_provision(self, mocked):
     volume = mocked['volume']
     volume.display_name = 'volume-ca86b9a0-d0d5-4267-8cd5-c62274056cc0'
     async_migrate, provision = vnx_utils.calc_migrate_and_provision(volume)
     self.assertEqual(vnx_utils.is_async_migrate_enabled(volume),
                      async_migrate)
     self.assertEqual(provision.name, 'THICK')