Add missing tests
This change adds missing tests to "Add `ChassisCollection` and `Chassis` classes" [1] [1] https://review.openstack.org/#/c/608177/ Change-Id: Ib2b0e587ea897c6bf7280c5cff4764927fc9536a
This commit is contained in:
parent
5fbc00ed91
commit
47053d4326
|
@ -65,6 +65,7 @@ class MainTestCase(base.TestCase):
|
|||
self.assertFalse(self.root.protocol_features_supported.select_query)
|
||||
self.assertEqual('/redfish/v1/Systems', self.root._systems_path)
|
||||
self.assertEqual('/redfish/v1/Managers', self.root._managers_path)
|
||||
self.assertEqual('/redfish/v1/Chassis', self.root._chassis_path)
|
||||
self.assertEqual('/redfish/v1/SessionService',
|
||||
self.root._session_service_path)
|
||||
|
||||
|
@ -174,6 +175,11 @@ class BareMinimumMainTestCase(base.TestCase):
|
|||
exceptions.MissingAttributeError,
|
||||
'Managers/@odata.id', self.root.get_manager_collection)
|
||||
|
||||
def test_get_chassis_collection_when_chassis_attr_absent(self):
|
||||
self.assertRaisesRegex(
|
||||
exceptions.MissingAttributeError,
|
||||
'Chassis/@odata.id', self.root.get_chassis_collection)
|
||||
|
||||
def test_get_session_service_when_sessionservice_attr_absent(self):
|
||||
self.assertRaisesRegex(
|
||||
exceptions.MissingAttributeError,
|
||||
|
|
Loading…
Reference in New Issue