    def test_security_group_quota_limit(self):
        self.flags(quota_security_groups=10)
        for i in range(1, 10):
            name = 'test name %i' % i
            descript = 'test description %i' % i
            create = self.cloud.create_security_group
            result = create(self.context, name, descript)

        # 11'th group should fail
        self.assertRaises(exception.EC2APIError,
                          create, self.context, 'foo', 'bar')
Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control.