File tree Expand file tree Collapse file tree
test/integration/component Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616# under the License.
1717
1818from nose .plugins .attrib import attr
19- from marvin .cloudstackTestCase import *
20- from marvin .cloudstackAPI import *
21- from marvin .lib .utils import *
22- from marvin .lib .base import *
23- from marvin .lib .common import *
19+ from marvin .cloudstackTestCase import cloudstackTestCase , unittest
20+ #from marvin.cloudstackAPI import *
21+ from marvin .lib .utils import cleanup_resources
22+ from marvin .lib .base import (Account ,
23+ VirtualMachine ,
24+ SnapshotPolicy ,
25+ ServiceOffering )
26+ from marvin .lib .common import (get_zone ,
27+ get_template ,
28+ get_domain ,
29+ list_volumes ,
30+ list_snapshots ,
31+ list_snapshot_policy )
2432from marvin .lib .utils import is_snapshot_on_nfs
25- import os
33+ import time
2634
2735
2836class Services :
@@ -262,7 +270,7 @@ def test_04_snapshot_limit(self):
262270 # Sleep for (maxsnaps+1) hours to verify
263271 # only maxsnaps snapshots are retained
264272 time .sleep (
265- (self .services ["recurring_snapshot" ]["maxsnaps" ]) * 3600
273+ (int ( self .services ["recurring_snapshot" ]["maxsnaps" ]) + 1 ) * 3600
266274 )
267275
268276 # Verify the snapshot was created or not
You can’t perform that action at this time.
0 commit comments