From: Haiwei Xu Date: Thu, 25 Sep 2014 09:46:18 +0000 (+0900) Subject: Fix parameter miss in test_snapshot_metadata test case X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=1addd2260b958185fd4e1d5af47b1525f493478c;p=openstack-build%2Fcinder-build.git Fix parameter miss in test_snapshot_metadata test case Exception.SnapshotNotFound exception should be passed snapshot_id parameter, but the test case didn't pass it when raising this exception. Change-Id: Ic9b8cf7b647933b847a9602752ca87d141cda09e --- diff --git a/cinder/tests/api/v2/test_snapshot_metadata.py b/cinder/tests/api/v2/test_snapshot_metadata.py index 441fbd7d3..e27b25d88 100644 --- a/cinder/tests/api/v2/test_snapshot_metadata.py +++ b/cinder/tests/api/v2/test_snapshot_metadata.py @@ -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):