functionality:
-
functions:
- - no_live_migration
+ - no_migration
tests:
- NovaServers.boot_and_live_migrate_server
- NovaServers.boot_server_attach_created_volume_and_live_migrate
- NovaServers.boot_server_from_volume_and_live_migrate
+ - NovaServers.boot_and_migrate_server
return True
- def _live_migration_supported(self):
- """Determine if live migration is supported."""
+ def _migration_supported(self):
+ """Determine if migration is supported."""
if self.compute_cnt > 1:
return True
with open(RallyBase.BLACKLIST_FILE, 'r') as black_list_file:
black_list_yaml = yaml.safe_load(black_list_file)
- if not self._live_migration_supported():
- func_list.append("no_live_migration")
+ if not self._migration_supported():
+ func_list.append("no_migration")
if 'functionality' in black_list_yaml.keys():
for item in black_list_yaml['functionality']:
@mock.patch('__builtin__.open', mock.mock_open())
@mock.patch('functest.opnfv_tests.openstack.rally.rally.yaml.safe_load',
return_value={'functionality': [
- {'functions': ['no_live_migration'], 'tests': ['test']}]})
+ {'functions': ['no_migration'], 'tests': ['test']}]})
@mock.patch('functest.opnfv_tests.openstack.rally.rally.RallyBase.'
- '_live_migration_supported', return_value=False)
+ '_migration_supported', return_value=False)
def test_excl_func_default(self, mock_func, mock_yaml_load):
CONST.__setattr__('INSTALLER_TYPE', 'test_installer')
CONST.__setattr__('DEPLOY_SCENARIO', 'test_scenario')