Modified test case for nova security group

Modified test_security_group_create_get_delete()
by adding security group with space char between
name along with leading and trailing white spaces

Change-Id: I2a2664458e8505b3eef027435850de0b3df29019
Blueprint: testcases-expansion-icehouse
This commit is contained in:
Pranali Deore
2014-03-10 21:10:41 -07:00
committed by Ubuntu
parent 7889ceba67
commit 08e8ced08a

View File

@@ -61,8 +61,11 @@ class SecurityGroupsTestJSON(base.BaseSecurityGroupsTest):
@test.attr(type='smoke')
def test_security_group_create_get_delete(self):
# Security Group should be created, fetched and deleted
s_name = data_utils.rand_name('securitygroup-')
# with char space between name along with
# leading and trailing spaces
s_name = ' %s ' % data_utils.rand_name('securitygroup ')
resp, securitygroup = self.create_security_group(name=s_name)
self.assertEqual(200, resp.status)
self.assertIn('name', securitygroup)
securitygroup_name = securitygroup['name']
self.assertEqual(securitygroup_name, s_name,