You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by gi...@apache.org on 2014/07/24 16:51:19 UTC

git commit: updated refs/heads/4.4-forward to ca59f01

Repository: cloudstack
Updated Branches:
  refs/heads/4.4-forward 4395308bd -> ca59f0160


CLOUDSTACK-7127: Fix for addRegion failure, avoiding regionid 1 while creating new region through test case


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ca59f016
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ca59f016
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ca59f016

Branch: refs/heads/4.4-forward
Commit: ca59f01602823a6d6fe84233f3a3d3ea499efa06
Parents: 4395308
Author: Gaurav Aradhye <ga...@clogeny.com>
Authored: Thu Jul 24 13:38:38 2014 +0530
Committer: Girish Shilamkar <gi...@clogeny.com>
Committed: Thu Jul 24 20:33:25 2014 +0530

----------------------------------------------------------------------
 test/integration/component/test_regions.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ca59f016/test/integration/component/test_regions.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_regions.py b/test/integration/component/test_regions.py
index 7b7c4a4..40e65cf 100644
--- a/test/integration/component/test_regions.py
+++ b/test/integration/component/test_regions.py
@@ -46,7 +46,7 @@ class TestRegions(cloudstackTestCase):
         return
 
     def setUp(self):
-        pseudo_random_int = choice(xrange(1, 200))
+        pseudo_random_int = choice(xrange(2, 200))
         self.services["region"]["regionid"] = pseudo_random_int
         self.services["region"]["regionname"] = "region" + str(pseudo_random_int)
         self.services["region"]["regionendpoint"] = "http://region" + str(pseudo_random_int) + ":8080/client"
@@ -78,7 +78,7 @@ class TestRegions(cloudstackTestCase):
     def test_createRegionWithExistingRegionName(self):
         """Test for duplicate checks on region name
         """
-        random_int = choice(xrange(1, 200))
+        random_int = choice(xrange(2, 200))
         self.services["region"]["regionid"] = random_int  #alter id but not name
         self.services["region"]["regionendpoint"] = "http://region" + str(random_int) + ":8080/client"
         self.assertRaises(Exception, Region.create, self.api_client, self.services["region"])