changed the testcase skip code into setup method
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/96b1a5ce Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/96b1a5ce Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/96b1a5ce Branch: refs/heads/master Commit: 96b1a5ced1b1db841269c5d7e3eff9b9f164bd64 Parents: a4829f4 Author: pavan018 <pavanbandarupa...@gmail.com> Authored: Thu Aug 13 11:38:27 2015 +0530 Committer: pavan018 <pavanbandarupa...@gmail.com> Committed: Thu Aug 13 11:39:06 2015 +0530 ---------------------------------------------------------------------- test/integration/component/test_simultaneous_volume_attach.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/96b1a5ce/test/integration/component/test_simultaneous_volume_attach.py ---------------------------------------------------------------------- diff --git a/test/integration/component/test_simultaneous_volume_attach.py b/test/integration/component/test_simultaneous_volume_attach.py index 12f9677..7ccde9c 100644 --- a/test/integration/component/test_simultaneous_volume_attach.py +++ b/test/integration/component/test_simultaneous_volume_attach.py @@ -61,6 +61,7 @@ class TestMultipleVolumeAttach(cloudstackTestCase): # RBD storage type is required for data volumes for LXC cls.invalidStoragePoolType = True return + cls.disk_offering = DiskOffering.create( cls.apiclient, cls.services["disk_offering"] @@ -98,8 +99,6 @@ class TestMultipleVolumeAttach(cloudstackTestCase): mode=cls.services["mode"] ) - if cls.hypervisor.lower() == 'lxc' and cls.storage_pools.type.lower() != 'rbd': - raise unittest.SkipTest("Data Disk attach for NFS is not supported on LXC") #Create volumes (data disks) cls.volume1 = Volume.create( cls.apiclient,