def firmware_inventory(self): """Property to reference SoftwareInventoryCollection instance""" return softwareinventory.SoftwareInventoryCollection( self._conn, self._get_software_inventory_collection_path, redfish_version=self.redfish_version, registries=self.registries)
def setUp(self): super(SoftwareInventoryCollectionTestCase, self).setUp() conn = mock.Mock() with open('sushy/tests/unit/json_samples/' 'softwareinventory_collection.json') as f: conn.get.return_value.json.return_value = json.load(f) self.soft_inv_col = softwareinventory.SoftwareInventoryCollection( conn, '/redfish/v1/UpdateService/SoftwareInventory', redfish_version='1.3.0')
def firmware_inventory(self): """Property to reference FirmwareInventory collection instance""" if not self._firmware_inventory_path: raise exceptions.MissingAttributeError( attribute='FirmwareInventory/@odata.id', resource=self._firmware_inventory_path) return softwareinventory.SoftwareInventoryCollection( self._conn, self._firmware_inventory_path, redfish_version=self.redfish_version, registries=self.registries)