

def test_rebuild_instance_not_passing_request_spec(self):
    call_info = self._stub_rpc_method('cast', None)
    self.cells_rpcapi.rebuild_instance(self.fake_context, 'fake-instance', 'fake-pass', 'fake-files', 'fake-image_ref', 'fake-orig_image_ref', 'fake-orig_sys_metadata', 'fake-bdms', recreate=False, on_shared_storage=False, host=None, preserve_ephemeral=False, request_spec='fake-spec', kwargs=None)
    expected_args = {
        'instance': 'fake-instance',
        'image_href': 'fake-image_ref',
        'admin_password': 'fake-pass',
        'files_to_inject': 'fake-files',
        'preserve_ephemeral': False,
        'kwargs': None,
    }
    self._check_result(call_info, 'rebuild_instance', expected_args, version='1.25')

dataset/ETHPy150Open openstack/nova/nova/tests/unit/cells/test_cells_rpcapi.py CellsAPITestCase.test_rebuild_instance_not_passing_request_spec/original