Merge "Fix test_admin_catalog_list"

This commit is contained in:
Jenkins 2013-08-29 10:47:37 +00:00 committed by Gerrit Code Review
commit 80c2079b0d

View File

@ -46,9 +46,12 @@ class SimpleReadOnlyKeystoneClientTest(tempest.cli.ClientTestBase):
out = self.keystone('catalog')
catalog = self.parser.details_multiple(out, with_label=True)
for svc in catalog:
self.assertTrue(svc['__label'].startswith('Service:'),
msg=('Invalid beginning of service block: %s' %
svc['__label']))
if svc.get('__label'):
self.assertTrue(svc['__label'].startswith('Service:'),
msg=('Invalid beginning of service block: '
'%s' % svc['__label']))
self.assertIn('id', svc.keys())
self.assertIn('region', svc.keys())
def test_admin_endpoint_list(self):
out = self.keystone('endpoint-list')