From: Jenkins Date: Sat, 15 Aug 2015 03:02:12 +0000 (+0000) Subject: Merge "Validate string, integer limit for input parameter" X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=24025cfd3dddf46035571fdc2e173762a95e1685;p=openstack-build%2Fcinder-build.git Merge "Validate string, integer limit for input parameter" --- 24025cfd3dddf46035571fdc2e173762a95e1685 diff --cc cinder/tests/unit/api/contrib/test_volume_transfer.py index b70fe77b6,1ff9461ac..c3e40bbd7 --- a/cinder/tests/unit/api/contrib/test_volume_transfer.py +++ b/cinder/tests/unit/api/contrib/test_volume_transfer.py @@@ -292,8 -298,10 +298,10 @@@ class VolumeTransferAPITestCase(test.Te self.assertTrue(transfer.item(0).hasAttribute('id')) self.assertTrue(transfer.item(0).hasAttribute('auth_key')) self.assertTrue(transfer.item(0).hasAttribute('created_at')) - self.assertEqual(transfer.item(0).getAttribute('name'), 'transfer-001') + self.assertEqual('transfer-001', transfer.item(0).getAttribute('name')) self.assertTrue(transfer.item(0).hasAttribute('volume_id')) + self.assertTrue(mock_validate.called) + db.volume_destroy(context.get_admin_context(), volume_id) def test_create_transfer_with_no_body(self):