Merge "Add product property to the root Sushy object"
This commit is contained in:
commit
a7f6f99e72
|
@ -37,6 +37,9 @@ class Sushy(base.ResourceBase):
|
||||||
uuid = base.Field('UUID')
|
uuid = base.Field('UUID')
|
||||||
"""The Redfish root service UUID"""
|
"""The Redfish root service UUID"""
|
||||||
|
|
||||||
|
product = base.Field('Product')
|
||||||
|
"""The product associated with this Redfish service"""
|
||||||
|
|
||||||
_systems_path = base.Field(['Systems', '@odata.id'])
|
_systems_path = base.Field(['Systems', '@odata.id'])
|
||||||
"""SystemCollection path"""
|
"""SystemCollection path"""
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
"Name": "Root Service",
|
"Name": "Root Service",
|
||||||
"RedfishVersion": "1.0.2",
|
"RedfishVersion": "1.0.2",
|
||||||
"UUID": "92384634-2938-2342-8820-489239905423",
|
"UUID": "92384634-2938-2342-8820-489239905423",
|
||||||
|
"Product": "Product",
|
||||||
"Systems": {
|
"Systems": {
|
||||||
"@odata.id": "/redfish/v1/Systems"
|
"@odata.id": "/redfish/v1/Systems"
|
||||||
},
|
},
|
||||||
|
|
|
@ -54,6 +54,7 @@ class MainTestCase(base.TestCase):
|
||||||
self.assertEqual('1.0.2', self.root.redfish_version)
|
self.assertEqual('1.0.2', self.root.redfish_version)
|
||||||
self.assertEqual('92384634-2938-2342-8820-489239905423',
|
self.assertEqual('92384634-2938-2342-8820-489239905423',
|
||||||
self.root.uuid)
|
self.root.uuid)
|
||||||
|
self.assertEqual('Product', self.root.product)
|
||||||
self.assertEqual('/redfish/v1/Systems', self.root._systems_path)
|
self.assertEqual('/redfish/v1/Systems', self.root._systems_path)
|
||||||
self.assertEqual('/redfish/v1/Managers', self.root._managers_path)
|
self.assertEqual('/redfish/v1/Managers', self.root._managers_path)
|
||||||
self.assertEqual('/redfish/v1/SessionService',
|
self.assertEqual('/redfish/v1/SessionService',
|
||||||
|
|
Loading…
Reference in New Issue