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:
pritisarap12 2015-06-11 13:50:26 +05:30 committed by Rohit Yadav
parent 8e1f01d779
commit b73e486d02
1 changed files with 16 additions and 16 deletions

View File

@ -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")