You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pr...@apache.org on 2013/05/16 20:22:01 UTC
[36/68] [abbrv] git commit: updated refs/heads/planner_reserve to
ed8ff40
CLOUDSTACK-2382: fix the validation part in the test_global_settings
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/237397df
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/237397df
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/237397df
Branch: refs/heads/planner_reserve
Commit: 237397df3cd27626ebffef1e274ac8404620dfa4
Parents: 46f8b6f
Author: Srikanteswararao Talluri <sr...@citrix.com>
Authored: Wed May 8 14:21:58 2013 +0530
Committer: Kishan Kavala <ki...@cloud.com>
Committed: Tue May 14 17:31:21 2013 +0530
----------------------------------------------------------------------
test/integration/smoke/test_global_settings.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/237397df/test/integration/smoke/test_global_settings.py
----------------------------------------------------------------------
diff --git a/test/integration/smoke/test_global_settings.py b/test/integration/smoke/test_global_settings.py
index a7cdb3e..5cd3654 100644
--- a/test/integration/smoke/test_global_settings.py
+++ b/test/integration/smoke/test_global_settings.py
@@ -22,6 +22,7 @@ from marvin.cloudstackAPI import *
from marvin.integration.lib.utils import *
from marvin.integration.lib.base import *
from marvin.integration.lib.common import *
+from nose.plugins.attrib import attr
#Import System modules
class TestUpdateConfigWithScope(cloudstackTestCase):
@@ -31,6 +32,7 @@ class TestUpdateConfigWithScope(cloudstackTestCase):
def setUp(self):
self.apiClient = self.testClient.getApiClient()
+ @attr(tags=["simulator", "devcloud", "basic", "advanced"])
def test_UpdateConfigParamWithScope(self):
"""
test update configuration setting at zone level scope
@@ -54,7 +56,10 @@ class TestUpdateConfigWithScope(cloudstackTestCase):
self.assertNotEqual(len(listConfigurationsResponse), 0, "Check if the list API \
returns a non-empty response")
- configParam = listConfigurationsResponse[7]
+ for item in listConfigurationsResponse:
+ if item.name == updateConfigurationResponse.name:
+ configParam = item
+
self.assertEqual(configParam.value, updateConfigurationResponse.value, "Check if the update API returned \
is the same as the one we got in the list API")