Remove unnecessary __init__ and resource_setup/cleanup
This is to remove some unnecessary __init__ and resource_setup and resource_cleanup to keep code clean. Change-Id: I56c00649c5611ef1f94993ae63cef129b04735d3
This commit is contained in:
parent
6dbc403f3d
commit
d7429315f4
@ -25,10 +25,6 @@ class NodeGroupTemplateTest(dp_base.BaseDataProcessingTest):
|
||||
if cls.default_plugin is None:
|
||||
raise cls.skipException("No Sahara plugins configured")
|
||||
|
||||
@classmethod
|
||||
def resource_setup(cls):
|
||||
super(NodeGroupTemplateTest, cls).resource_setup()
|
||||
|
||||
def _create_node_group_template(self, template_name=None):
|
||||
"""Creates Node Group Template with optional name specified.
|
||||
|
||||
|
@ -81,14 +81,6 @@ class BaseIdentityV2Test(BaseIdentityTest):
|
||||
cls.non_admin_tenants_client = cls.os.tenants_public_client
|
||||
cls.non_admin_users_client = cls.os.users_public_client
|
||||
|
||||
@classmethod
|
||||
def resource_setup(cls):
|
||||
super(BaseIdentityV2Test, cls).resource_setup()
|
||||
|
||||
@classmethod
|
||||
def resource_cleanup(cls):
|
||||
super(BaseIdentityV2Test, cls).resource_cleanup()
|
||||
|
||||
|
||||
class BaseIdentityV2AdminTest(BaseIdentityV2Test):
|
||||
|
||||
@ -137,10 +129,6 @@ class BaseIdentityV3Test(BaseIdentityTest):
|
||||
cls.non_admin_token = cls.os.token_v3_client
|
||||
cls.non_admin_projects_client = cls.os.projects_client
|
||||
|
||||
@classmethod
|
||||
def resource_cleanup(cls):
|
||||
super(BaseIdentityV3Test, cls).resource_cleanup()
|
||||
|
||||
|
||||
class BaseIdentityV3AdminTest(BaseIdentityV3Test):
|
||||
|
||||
|
@ -18,10 +18,6 @@ from tempest import test
|
||||
class StacksTestJSON(base.BaseOrchestrationTest):
|
||||
empty_template = "HeatTemplateFormatVersion: '2012-12-12'\n"
|
||||
|
||||
@classmethod
|
||||
def resource_setup(cls):
|
||||
super(StacksTestJSON, cls).resource_setup()
|
||||
|
||||
@test.attr(type='smoke')
|
||||
@test.idempotent_id('d35d628c-07f6-4674-85a1-74db9919e986')
|
||||
def test_stack_list_responds(self):
|
||||
|
@ -71,9 +71,6 @@ CONF = config.CONF
|
||||
|
||||
class TempestCleanup(command.Command):
|
||||
|
||||
def __init__(self, app, cmd):
|
||||
super(TempestCleanup, self).__init__(app, cmd)
|
||||
|
||||
def take_action(self, parsed_args):
|
||||
try:
|
||||
self.init(parsed_args)
|
||||
|
@ -36,11 +36,6 @@ class BaseComputeClient(rest_client.RestClient):
|
||||
|
||||
api_microversion_header_name = 'X-OpenStack-Nova-API-Version'
|
||||
|
||||
def __init__(self, auth_provider, service, region,
|
||||
**kwargs):
|
||||
super(BaseComputeClient, self).__init__(
|
||||
auth_provider, service, region, **kwargs)
|
||||
|
||||
def get_headers(self):
|
||||
headers = super(BaseComputeClient, self).get_headers()
|
||||
if COMPUTE_MICROVERSION:
|
||||
|
Loading…
x
Reference in New Issue
Block a user