CLOUDSTACK-4425:Fix to attach uploaded volume to a stopped VM test Signed-off-by: Prasanna Santhanam <[email protected]> (cherry picked from commit 8762a0d0c6dde46e16b73f6880aa84ec2f359f55)
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/0454723f Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/0454723f Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/0454723f Branch: refs/heads/master Commit: 0454723f9837d3a2eb2978abe556f18de3d89ef9 Parents: 9100fe2 Author: SrikanteswaraRao Talluri <[email protected]> Authored: Thu Aug 22 11:46:58 2013 +0530 Committer: Prasanna Santhanam <[email protected]> Committed: Fri Aug 23 12:39:48 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/0454723f/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
