]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix parameter miss in test_snapshot_metadata test case
authorHaiwei Xu <xu-haiwei@mxw.nes.nec.co.jp>
Thu, 25 Sep 2014 09:46:18 +0000 (18:46 +0900)
committerHaiwei Xu <xu-haiwei@mxw.nes.nec.co.jp>
Thu, 25 Sep 2014 09:46:18 +0000 (18:46 +0900)
Exception.SnapshotNotFound exception should be passed snapshot_id
parameter, but the test case didn't pass it when raising this
exception.

Change-Id: Ic9b8cf7b647933b847a9602752ca87d141cda09e

cinder/tests/api/v2/test_snapshot_metadata.py

index 441fbd7d3cfe344754a4a336a9105f93ce1f6e93..e27b25d88136312265c04fce669793b5d6e7b91e 100644 (file)
@@ -126,7 +126,7 @@ def return_volume(context, volume_id):
 
 
 def return_snapshot_nonexistent(context, snapshot_id):
-    raise exception.SnapshotNotFound('bogus test message')
+    raise exception.SnapshotNotFound(snapshot_id=snapshot_id)
 
 
 def fake_update_snapshot_metadata(self, context, snapshot, diff):