You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/07/16 06:57:03 UTC
git commit: updated refs/heads/master to b73e486
Repository: cloudstack
Updated Branches:
refs/heads/master 8e1f01d77 -> b73e486d0
CLOUDSTACK-8549-Update test_concurrent_snapshots_limits.py asesrt statement
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
This closes #386
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b73e486d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b73e486d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b73e486d
Branch: refs/heads/master
Commit: b73e486d02a7ec84fc221e57cc95b35435e0af2c
Parents: 8e1f01d
Author: pritisarap12 <pr...@clogeny.com>
Authored: Thu Jun 11 13:50:26 2015 +0530
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Thu Jul 16 10:26:26 2015 +0530
----------------------------------------------------------------------
.../test_concurrent_snapshots_limit.py | 32 ++++++++++----------
1 file changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b73e486d/test/integration/component/test_concurrent_snapshots_limit.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_concurrent_snapshots_limit.py b/test/integration/component/test_concurrent_snapshots_limit.py
index 910cb00..d4170fa 100644
--- a/test/integration/component/test_concurrent_snapshots_limit.py
+++ b/test/integration/component/test_concurrent_snapshots_limit.py
@@ -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")