From 08e8ced08ae25da3e43fbaaaefd118e738397165 Mon Sep 17 00:00:00 2001 From: Pranali Deore Date: Mon, 10 Mar 2014 21:10:41 -0700 Subject: [PATCH] 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 --- tempest/api/compute/security_groups/test_security_groups.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tempest/api/compute/security_groups/test_security_groups.py b/tempest/api/compute/security_groups/test_security_groups.py index 538ebc6055..3736f28234 100644 --- a/tempest/api/compute/security_groups/test_security_groups.py +++ b/tempest/api/compute/security_groups/test_security_groups.py @@ -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,