Add test for ironic driver-list command

Change-Id: I44614dc3959941c3da619c54520b50e7605129de
This commit is contained in:
Kyrylo Romanenko 2016-06-21 16:49:35 +03:00
parent e9d9b9d957
commit 520081880e
1 changed files with 11 additions and 0 deletions

View File

@ -43,3 +43,14 @@ class DriverSanityTestIronicClient(base.FunctionalTestBase):
for driver in drivers_names:
driver_properties = self.properties_driver(driver)
self.assertNotEqual([x['Property'] for x in driver_properties], [])
def test_driver_list(self):
"""Test steps:
1) get list of drivers
2) check that list of drivers is not empty
"""
driver = 'fake'
available_drivers = self.get_drivers_names()
self.assertTrue(len(available_drivers) > 0)
self.assertIn(driver, available_drivers)