mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-7953: Fixed time wait period for verifying snapshot policy
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
parent
1db2d14422
commit
50ab04dc0d
@ -16,13 +16,21 @@
|
||||
# under the License.
|
||||
|
||||
from nose.plugins.attrib import attr
|
||||
from marvin.cloudstackTestCase import *
|
||||
from marvin.cloudstackAPI import *
|
||||
from marvin.lib.utils import *
|
||||
from marvin.lib.base import *
|
||||
from marvin.lib.common import *
|
||||
from marvin.cloudstackTestCase import cloudstackTestCase, unittest
|
||||
#from marvin.cloudstackAPI import *
|
||||
from marvin.lib.utils import cleanup_resources
|
||||
from marvin.lib.base import (Account,
|
||||
VirtualMachine,
|
||||
SnapshotPolicy,
|
||||
ServiceOffering)
|
||||
from marvin.lib.common import (get_zone,
|
||||
get_template,
|
||||
get_domain,
|
||||
list_volumes,
|
||||
list_snapshots,
|
||||
list_snapshot_policy)
|
||||
from marvin.lib.utils import is_snapshot_on_nfs
|
||||
import os
|
||||
import time
|
||||
|
||||
|
||||
class Services:
|
||||
@ -262,7 +270,7 @@ class TestSnapshotLimit(cloudstackTestCase):
|
||||
# Sleep for (maxsnaps+1) hours to verify
|
||||
# only maxsnaps snapshots are retained
|
||||
time.sleep(
|
||||
(self.services["recurring_snapshot"]["maxsnaps"]) * 3600
|
||||
(int(self.services["recurring_snapshot"]["maxsnaps"]) + 1) * 3600
|
||||
)
|
||||
|
||||
# Verify the snapshot was created or not
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user