From 1addd2260b958185fd4e1d5af47b1525f493478c Mon Sep 17 00:00:00 2001 From: Haiwei Xu Date: Thu, 25 Sep 2014 18:46:18 +0900 Subject: [PATCH] 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 --- cinder/tests/api/v2/test_snapshot_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/tests/api/v2/test_snapshot_metadata.py b/cinder/tests/api/v2/test_snapshot_metadata.py index 441fbd7d3cf..e27b25d8813 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):