From: Ann Kamyshnikova Date: Thu, 30 Apr 2015 12:42:06 +0000 (+0300) Subject: Add test for security groups X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=087eb159a61bcd3eb49860a23cb6ee7d12311d41;p=openstack-build%2Fneutron-build.git Add test for security groups Add test that default security group name can not be updated. Change-Id: Iff0a920122be8e19a1e1d92db33519f372a8b9b2 --- diff --git a/neutron/tests/api/test_security_groups_negative.py b/neutron/tests/api/test_security_groups_negative.py index b45c11db0..347b18be1 100644 --- a/neutron/tests/api/test_security_groups_negative.py +++ b/neutron/tests/api/test_security_groups_negative.py @@ -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