test_fpga_ext_arq.py (openstack-cyborg-6.0.0) | : | test_fpga_ext_arq.py (openstack-cyborg-7.0.0) | ||
---|---|---|---|---|
skipping to change at line 337 | skipping to change at line 337 | |||
rp_uuid = obj_extarq.arq.device_rp_uuid | rp_uuid = obj_extarq.arq.device_rp_uuid | |||
obj_extarq._update_placement( | obj_extarq._update_placement( | |||
self.context, fun_id, fake_dep.driver_name) | self.context, fun_id, fake_dep.driver_name) | |||
function_id = fun_id.upper().replace('-', '_-') | function_id = fun_id.upper().replace('-', '_-') | |||
vendor = fake_dep.driver_name.upper() | vendor = fake_dep.driver_name.upper() | |||
trait_names = ["_".join(( | trait_names = ["_".join(( | |||
constants.FPGA_FUNCTION_ID, vendor, function_id))] | constants.FPGA_FUNCTION_ID, vendor, function_id))] | |||
mock_add_traits.assert_called_once_with(rp_uuid, trait_names) | mock_add_traits.assert_called_once_with(rp_uuid, trait_names) | |||
mock_delete_traits.assert_called_once_with( | mock_delete_traits.assert_called_once_with( | |||
rp_uuid, [constants.FPGA_FUNCTION_ID]) | self.context, rp_uuid, [constants.FPGA_FUNCTION_ID]) | |||
@mock.patch('cyborg.agent.rpcapi.AgentAPI.fpga_program') | @mock.patch('cyborg.agent.rpcapi.AgentAPI.fpga_program') | |||
@mock.patch('cyborg.objects.Deployable.get_cpid_list') | @mock.patch('cyborg.objects.Deployable.get_cpid_list') | |||
@mock.patch('cyborg.objects.Deployable.update') | @mock.patch('cyborg.objects.Deployable.update') | |||
@mock.patch('cyborg.common.placement_client.PlacementClient.' | @mock.patch('cyborg.common.placement_client.PlacementClient.' | |||
'__init__') | '__init__') | |||
@mock.patch('cyborg.common.placement_client.PlacementClient.' | @mock.patch('cyborg.common.placement_client.PlacementClient.' | |||
'add_traits_to_rp') | 'add_traits_to_rp') | |||
@mock.patch('cyborg.common.placement_client.PlacementClient.' | @mock.patch('cyborg.common.placement_client.PlacementClient.' | |||
'delete_traits_with_prefixes') | 'delete_traits_with_prefixes') | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |