Commit d096e4ef authored by Łukasz Nowak's avatar Łukasz Nowak

rapid-cdn: Flake8ize test

parent d33d2ec3
...@@ -832,7 +832,8 @@ class HttpFrontendTestCase(SlapOSInstanceTestCase): ...@@ -832,7 +832,8 @@ class HttpFrontendTestCase(SlapOSInstanceTestCase):
% server_https_auth.server_address % server_https_auth.server_address
self.server_https_auth_process = multiprocessing.Process( self.server_https_auth_process = multiprocessing.Process(
target=server_https_auth.serve_forever, name='HTTPSServerAuth', daemon=True) target=server_https_auth.serve_forever, name='HTTPSServerAuth',
daemon=True)
self.server_https_auth_process.start() self.server_https_auth_process.start()
server_https_auth.socket.close() server_https_auth.socket.close()
self.logger.debug('Started process %s' % (self.server_https_auth_process,)) self.logger.debug('Started process %s' % (self.server_https_auth_process,))
...@@ -4854,7 +4855,6 @@ class TestEnableHttp2ByDefaultFalseSlave(TestSlave): ...@@ -4854,7 +4855,6 @@ class TestEnableHttp2ByDefaultFalseSlave(TestSlave):
test_enable_http3_false_http_version = '1' test_enable_http3_false_http_version = '1'
class ReplicateSlaveMixin(object): class ReplicateSlaveMixin(object):
def frontends1And2HaveDifferentIPv6(self): def frontends1And2HaveDifferentIPv6(self):
_, *prefixlen = self._ipv6_address.split('/') _, *prefixlen = self._ipv6_address.split('/')
...@@ -4894,7 +4894,8 @@ class ReplicateSlaveMixin(object): ...@@ -4894,7 +4894,8 @@ class ReplicateSlaveMixin(object):
# for now, accept failing promise due to stopped frontend # for now, accept failing promise due to stopped frontend
class TestReplicateSlave(SlaveHttpFrontendTestCase, TestDataMixin, AtsMixin, ReplicateSlaveMixin): class TestReplicateSlave(
SlaveHttpFrontendTestCase, TestDataMixin, AtsMixin, ReplicateSlaveMixin):
instance_parameter_dict = { instance_parameter_dict = {
'domain': 'example.com', 'domain': 'example.com',
'port': HTTPS_PORT, 'port': HTTPS_PORT,
...@@ -4988,7 +4989,8 @@ class TestReplicateSlave(SlaveHttpFrontendTestCase, TestDataMixin, AtsMixin, Rep ...@@ -4988,7 +4989,8 @@ class TestReplicateSlave(SlaveHttpFrontendTestCase, TestDataMixin, AtsMixin, Rep
) )
class TestReplicateSlaveOtherDestroyed(SlaveHttpFrontendTestCase, ReplicateSlaveMixin): class TestReplicateSlaveOtherDestroyed(
SlaveHttpFrontendTestCase, ReplicateSlaveMixin):
instance_parameter_dict = { instance_parameter_dict = {
'domain': 'example.com', 'domain': 'example.com',
'port': HTTPS_PORT, 'port': HTTPS_PORT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment