CLOUDSTACK-4425:Fix to attach uploaded volume to a stopped VM test Signed-off-by: Prasanna Santhanam <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8762a0d0 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8762a0d0 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8762a0d0 Branch: refs/heads/4.2 Commit: 8762a0d0c6dde46e16b73f6880aa84ec2f359f55 Parents: 17ffe48 Author: SrikanteswaraRao Talluri <[email protected]> Authored: Thu Aug 22 11:46:58 2013 +0530 Committer: Prasanna Santhanam <[email protected]> Committed: Fri Aug 23 09:41:19 2013 +0530 ---------------------------------------------------------------------- test/integration/component/test_stopped_vm.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8762a0d0/test/integration/component/test_stopped_vm.py ---------------------------------------------------------------------- diff --git a/test/integration/component/test_stopped_vm.py b/test/integration/component/test_stopped_vm.py index c845f60..41eeb46 100644 --- a/test/integration/component/test_stopped_vm.py +++ b/test/integration/component/test_stopped_vm.py @@ -1697,9 +1697,7 @@ class TestUploadAttachVolume(cloudstackTestCase): 'Stopped', "Check VM state is Running or not" ) - with self.assertRaises(Exception): - virtual_machine.attach_volume(self.apiclient, volume) - self.debug("Failed to attach the volume as expected") + virtual_machine.attach_volume(self.apiclient, volume) return
