mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8549-Update test_concurrent_snapshots_limits.py asesrt statement
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> This closes #386
This commit is contained in:
parent
8e1f01d779
commit
b73e486d02
|
|
@ -167,15 +167,15 @@ class TestConcurrentSnapshotLimit(cloudstackTestCase):
|
|||
self.apiclient,
|
||||
name="concurrent.snapshots.threshold.perhost"
|
||||
)
|
||||
self.assertEqual(
|
||||
isinstance(
|
||||
config,
|
||||
list),
|
||||
True,
|
||||
"concurrent.snapshots.threshold.perhost should be present\
|
||||
in global config")
|
||||
if config[0].value:
|
||||
concurrentSnapshots = int(config[0].value)
|
||||
self.assertEqual(
|
||||
isinstance(
|
||||
config,
|
||||
list),
|
||||
True,
|
||||
"concurrent.snapshots.threshold.perhost should be present\
|
||||
in global config")
|
||||
concurrentSnapshots = int(config[0].value)
|
||||
self.debug("concurrent Snapshots: %s" % concurrentSnapshots)
|
||||
|
||||
threads = []
|
||||
|
|
@ -227,15 +227,15 @@ class TestConcurrentSnapshotLimit(cloudstackTestCase):
|
|||
self.apiclient,
|
||||
name="concurrent.snapshots.threshold.perhost"
|
||||
)
|
||||
self.assertEqual(
|
||||
isinstance(
|
||||
config,
|
||||
list),
|
||||
True,
|
||||
"concurrent.snapshots.threshold.perhost should be present\
|
||||
in global config")
|
||||
if config[0].value:
|
||||
concurrentSnapshots = int(config[0].value)
|
||||
self.assertEqual(
|
||||
isinstance(
|
||||
config,
|
||||
list),
|
||||
True,
|
||||
"concurrent.snapshots.threshold.perhost should be present\
|
||||
in global config")
|
||||
concurrentSnapshots = int(config[0].value)
|
||||
else:
|
||||
self.skipTest("Skipping tests as the config value \
|
||||
concurrent.snapshots.threshold.perhost is Null")
|
||||
|
|
|
|||
Loading…
Reference in New Issue