summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes.erdfelt@rackspace.com>2012-03-03 18:01:23 +0000
committerJohannes Erdfelt <johannes.erdfelt@rackspace.com>2012-03-03 18:01:23 +0000
commitdf842706c32c2ee2bb982a0f8d90923e5fa77b91 (patch)
treedec0d8f48cd64083c47a700b6fd0ceb22e96454f
parentf3a7149a85f78843422a1bf2c822ff8f47f08d7b (diff)
downloadnova-df842706c32c2ee2bb982a0f8d90923e5fa77b91.tar.gz
nova-df842706c32c2ee2bb982a0f8d90923e5fa77b91.tar.xz
nova-df842706c32c2ee2bb982a0f8d90923e5fa77b91.zip
Fix test_attach_volume_raise_exception
The arguments for attach_volume have changed, but the test failure was being masked by an overly broad check for the Exception type. Change-Id: I0a54efaee8520d734357e867e2fec0fc9be2cec6
-rw-r--r--nova/tests/test_xenapi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/test_xenapi.py b/nova/tests/test_xenapi.py
index 6f8ad189b..e5eafa685 100644
--- a/nova/tests/test_xenapi.py
+++ b/nova/tests/test_xenapi.py
@@ -202,10 +202,10 @@ class XenAPIVolumeTestCase(test.TestCase):
volume = self._create_volume()
instance = db.instance_create(self.context, self.instance_values)
xenapi_fake.create_vm(instance.name, 'Running')
- self.assertRaises(Exception,
+ self.assertRaises(exception.VolumeDriverNotFound,
conn.attach_volume,
+ {'driver_volume_type': 'nonexist'},
instance.name,
- volume['id'],
'/dev/sdc')