use glanceclient version '2'. fix keystone error message.

current devstack deploys glance version '2' only.
use it.

messages in keystone's exceptions was changed.
fix unit tests that checks it.

Change-Id: I7ed1f0ff518efa374a5e3b693c5785958c77340d
This commit is contained in:
Andrey Pavlov 2017-03-28 07:22:49 +03:00 committed by tikitavi
parent 942b8602fd
commit 337395721b
1 changed files with 2 additions and 2 deletions

View File

@ -218,11 +218,11 @@ class ImageTest(base.EC2TestCase):
data = self.client.describe_image_attribute(
ImageId=image_id, Attribute='kernel')
self.assertIn('KernelId', data)
self.assertNotIn('KernelId', data)
data = self.client.describe_image_attribute(
ImageId=image_id, Attribute='ramdisk')
self.assertIn('RamdiskId', data)
self.assertNotIn('RamdiskId', data)
# description
data = self.client.describe_image_attribute(