"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cyborg/tests/unit/fake_device_profile.py" between
openstack-cyborg-8.0.0.tar.gz and openstack-cyborg-9.0.0.tar.gz

About: OpenStack Cyborg provides a general purpose management framework for acceleration resources.
The "Zed" series (latest release).

fake_device_profile.py  (openstack-cyborg-8.0.0):fake_device_profile.py  (openstack-cyborg-9.0.0)
skipping to change at line 102 skipping to change at line 102
if drop_uuid: if drop_uuid:
api_devprofs = list(map(_drop_uuid, dp_list)) api_devprofs = list(map(_drop_uuid, dp_list))
else: else:
api_devprofs = dp_list api_devprofs = dp_list
return api_devprofs return api_devprofs
def get_db_devprofs(): def get_db_devprofs():
dp_list = _get_device_profiles_as_dict() dp_list = _get_device_profiles_as_dict()
db_devprofs = list(map(_convert_to_db_devprof, dp_list)) db_devprofs = list(map(_convert_to_db_devprof, dp_list))
return db_devprofs return db_devprofs
def get_xilinx_fpga_devprof():
xilinx_fpga_dp = {
"id": 3,
"uuid": "638828d7-7145-4060-904c-894aa726b133",
"name": 'fake_xilinx_fpga_dp',
"description": "fake_xilinx_fpga_dp-desc",
"created_at": datetime.datetime(
2022, 1, 22, 10, 40, 56,
tzinfo=datetime.timezone.utc),
"updated_at": None,
"groups": [
{"resources:FPGA": "1",
"trait:CUSTOM_FPGA_XILINX": "required",
"trait:CUSTOM_FPGA_PRODUCT_ID_5000": "required",
},
]
}
return _convert_to_obj(xilinx_fpga_dp)
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)