Merge "Add test for security groups"

This commit is contained in:
Jenkins 2015-05-06 08:44:26 +00:00 committed by Gerrit Code Review
commit 4bbe791e97
1 changed files with 8 additions and 0 deletions

View File

@ -202,6 +202,14 @@ class NegativeSecGroupTest(base.BaseSecGroupTest):
security_group_id=non_existent_sg,
direction='ingress', ethertype=self.ethertype)
@test.attr(type=['negative', 'smoke'])
@test.idempotent_id('55100aa8-b24f-333c-0bef-64eefd85f15c')
def test_update_default_security_group_name(self):
sg_list = self.client.list_security_groups(name='default')
sg = sg_list['security_groups'][0]
self.assertRaises(lib_exc.Conflict, self.client.update_security_group,
sg['id'], name='test')
class NegativeSecGroupIPv6Test(NegativeSecGroupTest):
_ip_version = 6