Merge "Fix unstable assertion in test_cinder_endpoints"

This commit is contained in:
Jenkins 2014-09-20 05:48:53 +00:00 committed by Gerrit Code Review
commit 26fa3d72d4

View File

@ -121,8 +121,12 @@ class SimpleReadOnlyCinderClientTest(cli.ClientTestBase):
self.assertTableStruct(zone_list, ['Name', 'Status'])
def test_cinder_endpoints(self):
endpoints = self.parser.listing(self.cinder('endpoints'))
self.assertTableStruct(endpoints, ['nova', 'Value'])
out = self.cinder('endpoints')
tables = self.parser.tables(out)
for table in tables:
headers = table['headers']
self.assertTrue(2 >= len(headers))
self.assertEqual('Value', headers[1])
def test_cinder_service_list(self):
service_list = self.parser.listing(self.cinder('service-list'))