Repository: cloudstack Updated Branches: refs/heads/master 49005b324 -> 59c77fbaa
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/59c77fba Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/59c77fba Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/59c77fba Branch: refs/heads/master Commit: 59c77fbaa4c07e2de9578369e69f47d0e71039b8 Parents: 49005b3 Author: Gaurav Aradhye <[email protected]> Authored: Thu Jul 24 13:38:38 2014 +0530 Committer: Girish Shilamkar <[email protected]> Committed: Thu Jul 24 20:32:40 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/59c77fba/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"])
