You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2014/07/28 16:05:02 UTC
[50/50] git commit: updated refs/heads/4.4 to d5220a8
CLOUDSTACK-7127: Fix for addRegion failure, avoiding regionid 1 while creating new region through test case
(cherry picked from commit ca59f01602823a6d6fe84233f3a3d3ea499efa06)
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/d5220a88
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/d5220a88
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/d5220a88
Branch: refs/heads/4.4
Commit: d5220a88a085385ebc4b783a40f27d128ea7d28f
Parents: 724c8dc
Author: Gaurav Aradhye <ga...@clogeny.com>
Authored: Thu Jul 24 13:38:38 2014 +0530
Committer: Daan Hoogland <da...@onecht.net>
Committed: Mon Jul 28 16:02:56 2014 +0200
----------------------------------------------------------------------
test/integration/component/test_regions.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d5220a88/test/integration/component/test_regions.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_regions.py b/test/integration/component/test_regions.py
index b40a48b..2a84943 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"])