Fix job failure by supporting storage driver template

Change-Id: Iee64dfd199b3b685badb996158518dc69a7d1c31
This commit is contained in:
Fei Long Wang 2016-12-13 12:58:52 +13:00
parent 86ef41ab9d
commit 1ec7ca35c2

View File

@ -43,11 +43,13 @@ class TestTitles(testtools.TestCase):
self.assertTrue(len(titles) >= 4,
"Titles count in '%s' doesn't match expected" % spec)
problem = 'Problem description'
self.assertIn(problem, titles)
driver = 'Driver description'
self.assertTrue(problem in titles or driver in titles)
proposed = 'Proposed change'
self.assertIn(proposed, titles)
self.assertIn('Alternatives', titles[proposed], spec)
if problem in titles:
self.assertIn('Alternatives', titles[proposed], spec)
impl = 'Implementation'
self.assertIn(impl, titles)