CLOUDSTACK-2382: fix the validation part in the test_global_settings

This commit is contained in:
Srikanteswararao Talluri 2013-05-08 14:21:58 +05:30 committed by Kishan Kavala
parent 46f8b6f34a
commit 237397df3c
1 changed files with 6 additions and 1 deletions

View File

@ -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")