Browse Source

Merge "Disable security group quotas in NetworkSecGroupTest"

changes/12/681912/6 0.9.0
Zuul 1 year ago
committed by Gerrit Code Review
parent
commit
15c85f6509
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      neutron_tempest_plugin/scenario/test_security_groups.py

+ 13
- 0
neutron_tempest_plugin/scenario/test_security_groups.py View File

@ -16,6 +16,7 @@ from neutron_lib import constants
from tempest.common import waiters
from tempest.lib.common.utils import data_utils
from tempest.lib.common.utils import test_utils
from tempest.lib import decorators
from neutron_tempest_plugin.common import ssh
@ -58,6 +59,12 @@ class NetworkSecGroupTest(base.BaseTempestTestCase):
return
raise e
@classmethod
def setup_credentials(cls):
super(NetworkSecGroupTest, cls).setup_credentials()
cls.project_id = cls.os_primary.credentials.tenant_id
cls.network_client = cls.os_admin.network_client
@classmethod
def resource_setup(cls):
super(NetworkSecGroupTest, cls).resource_setup()
@ -68,6 +75,12 @@ class NetworkSecGroupTest(base.BaseTempestTestCase):
cls.create_router_interface(router['id'], cls.subnet['id'])
cls.keypair = cls.create_keypair()
def setUp(self):
super(NetworkSecGroupTest, self).setUp()
self.addCleanup(test_utils.call_and_ignore_notfound_exc,
self.network_client.reset_quotas, self.project_id)
self.network_client.update_quotas(self.project_id, security_group=-1)
def create_vm_testing_sec_grp(self, num_servers=2, security_groups=None,
ports=None):
"""Create instance for security group testing


Loading…
Cancel
Save