Added missing super() calls in setUp() and tearDown()

* Added missing super().setup() calls to beginning of setUp()
* Added missing super().tearDown() calls to end of tearDown()

Change-Id: Ib3321e0e30347ac1fe9cde33bd5c8257375e25a4
This commit is contained in:
Christopher Hunt 2016-04-26 15:23:50 -05:00
parent 1c6e1328bd
commit 9e98b0e03c
12 changed files with 22 additions and 1 deletions

View File

@ -184,12 +184,14 @@ class SecurityGroupRuleCreateTest(NetworkingSecurityGroupsFixture):
cls.expected_secgroup.description = 'testing security rules creates'
def setUp(self):
super(SecurityGroupRuleCreateTest, self).setUp()
self.secgroup = self.create_test_secgroup(self.expected_secgroup)
self.expected_secrule = self.get_expected_secrule_data()
self.expected_secrule.security_group_id = self.secgroup.id
def tearDown(self):
self.secGroupCleanUp()
super(SecurityGroupRuleCreateTest, self).tearDown()
@data_driven_test(data_set_list)
def ddtest_security_group_rule_create(self,

View File

@ -190,12 +190,14 @@ class SecurityGroupRuleCreateTest(NetworkingSecurityGroupsFixture):
cls.expected_secgroup.description = 'testing security rules creates'
def setUp(self):
super(SecurityGroupRuleCreateTest, self).setUp()
self.secgroup = self.create_test_secgroup(self.expected_secgroup)
self.expected_secrule = self.get_expected_secrule_data()
self.expected_secrule.security_group_id = self.secgroup.id
def tearDown(self):
self.secGroupCleanUp()
super(SecurityGroupRuleCreateTest, self).tearDown()
@data_driven_test(data_set_list)
def ddtest_security_group_rule_create(self,

View File

@ -34,12 +34,14 @@ class SecurityGroupRuleDeleteTest(NetworkingSecurityGroupsFixture):
cls.expected_secrule = cls.get_expected_secrule_data()
def setUp(self):
super(SecurityGroupRuleDeleteTest, self).setUp()
self.secgroup = self.create_test_secgroup(self.expected_secgroup)
self.expected_secrule.security_group_id = self.secgroup.id
self.secrule = self.create_test_secrule(self.expected_secrule)
def tearDown(self):
self.secGroupCleanUp()
super(SecurityGroupRuleDeleteTest, self).tearDown()
@tags('sec_group')
def test_security_group_rule_delete(self):

View File

@ -35,12 +35,14 @@ class SecurityGroupRuleDeleteTest(NetworkingSecurityGroupsFixture):
cls.expected_secrule.direction = 'egress'
def setUp(self):
super(SecurityGroupRuleDeleteTest, self).setUp()
self.secgroup = self.create_test_secgroup(self.expected_secgroup)
self.expected_secrule.security_group_id = self.secgroup.id
self.secrule = self.create_test_secrule(self.expected_secrule)
def tearDown(self):
self.secGroupCleanUp()
super(SecurityGroupRuleDeleteTest, self).tearDown()
@tags('sec_group_egress')
def test_security_group_rule_delete(self):

View File

@ -37,12 +37,14 @@ class SecurityGroupRuleGetTest(NetworkingSecurityGroupsFixture):
cls.expected_secrule = cls.get_expected_secrule_data()
def setUp(self):
super(SecurityGroupRuleGetTest, self).setUp()
self.secgroup = self.create_test_secgroup(self.expected_secgroup)
self.expected_secrule.security_group_id = self.secgroup.id
self.secrule = self.create_test_secrule(self.expected_secrule)
def tearDown(self):
self.secGroupCleanUp()
super(SecurityGroupRuleGetTest, self).tearDown()
@tags('sec_group')
def test_security_group_rule_get(self):

View File

@ -38,12 +38,14 @@ class SecurityGroupRuleGetTest(NetworkingSecurityGroupsFixture):
cls.expected_secrule.direction = 'egress'
def setUp(self):
super(SecurityGroupRuleGetTest, self).setUp()
self.secgroup = self.create_test_secgroup(self.expected_secgroup)
self.expected_secrule.security_group_id = self.secgroup.id
self.secrule = self.create_test_secrule(self.expected_secrule)
def tearDown(self):
self.secGroupCleanUp()
super(SecurityGroupRuleGetTest, self).tearDown()
@tags('sec_group_egress')
def test_security_group_rule_get(self):

View File

@ -130,10 +130,12 @@ class SecurityGroupCreateTest(NetworkingSecurityGroupsFixture):
super(SecurityGroupCreateTest, cls).setUpClass()
def setUp(self):
super(SecurityGroupCreateTest, self).setUp()
self.expected_secgroup = self.get_expected_secgroup_data()
def tearDown(self):
self.secGroupsCleanUp()
super(SecurityGroupCreateTest, self).tearDown()
@data_driven_test(data_set_list)
def ddtest_security_group_create(self, name=None,

View File

@ -34,12 +34,14 @@ class SecurityGroupDeleteTest(NetworkingSecurityGroupsFixture):
cls.expected_secrule = cls.get_expected_secrule_data()
def setUp(self):
super(SecurityGroupDeleteTest, self).setUp()
self.secgroup = self.create_test_secgroup(self.expected_secgroup,
delete=False)
self.expected_secrule.security_group_id = self.secgroup.id
def tearDown(self):
self.secGroupCleanUp()
super(SecurityGroupDeleteTest, self).tearDown()
@tags('sec_group')
def test_security_group_delete(self):

View File

@ -37,11 +37,13 @@ class SecurityGroupGetTest(NetworkingSecurityGroupsFixture):
cls.expected_secrule = cls.get_expected_secrule_data()
def setUp(self):
super(SecurityGroupGetTest, self).setUp()
self.secgroup = self.create_test_secgroup(self.expected_secgroup)
self.expected_secrule.security_group_id = self.secgroup.id
def tearDown(self):
self.secGroupCleanUp()
super(SecurityGroupGetTest, self).tearDown()
@tags('sec_group')
def test_security_group_get(self):

View File

@ -107,6 +107,7 @@ class SecurityGroupUpdateTest(NetworkingSecurityGroupsFixture):
cls.expected_secrule = cls.get_expected_secrule_data()
def setUp(self):
super(SecurityGroupUpdateTest, self).setUp()
self.secgroup = self.create_test_secgroup(self.expected_secgroup)
self.expected_secrule.security_group_id = self.secgroup.id
secrule1 = self.create_test_secrule(self.expected_secrule)
@ -126,6 +127,7 @@ class SecurityGroupUpdateTest(NetworkingSecurityGroupsFixture):
def tearDown(self):
self.expected_secgroup.security_group_rules = []
self.secGroupCleanUp()
super(SecurityGroupUpdateTest, self).tearDown()
@data_driven_test(data_set_list)
def ddtest_security_group_update(self, name=None,

View File

@ -163,6 +163,7 @@ class SecurityGroupsEgressIPv4Test(NetworkingComputeFixture):
def setUp(self):
""" Creating the remote clients """
super(SecurityGroupsEgressIPv4Test, self).setUp()
self.fixture_log.debug('Creating the Remote Clients')
self.lp_rc = self.servers.behaviors.get_remote_instance_client(
server=self.listener, ip_address=self.lp.pnet_fix_ipv4[0],

View File

@ -178,7 +178,7 @@ class SecurityGroupsEgressIPv6Test(NetworkingComputeFixture):
def setUp(self):
""" Creating the remote clients """
super(SecurityGroupsEgressIPv6Test, self).setUp()
self.fixture_log.debug('Creating the Remote Clients')
self.lp_rc = self.servers.behaviors.get_remote_instance_client(
server=self.listener, ip_address=self.lp.pnet_fix_ipv4[0],