Commit 47b8cf4f authored by Jérome Perrin's avatar Jérome Perrin

ERP5 wip

parent 0c9b98ea
......@@ -170,7 +170,7 @@ class TestAccessLog(BalancerTestCase, CrontabMixin):
parameter_dict['dummy_http_server'] = [[cls.getManagedResource("slow_web_server", SlowHTTPServer).netloc, 1, False]]
return parameter_dict
def test_access_log(self):
def test_access_log_format(self):
# type: () -> None
balancer_url = json.loads(self.computer_partition.getConnectionParameterDict()['_'])['default']
requests.get(
......@@ -194,6 +194,9 @@ class TestAccessLog(BalancerTestCase, CrontabMixin):
self.assertLess(request_time, 4000000)
import pdb; pdb.set_trace()
# TODO: log rotation
# TODO: apachedex on logs
class CaucaseClientCertificate(ManagedResource):
ca_crt_file = None # type: str
......@@ -336,3 +339,23 @@ class TestFrontendXForwardedFor(BalancerTestCase):
)
del TestAccessLog
'''before
----------------------------------------------------------------------
Ran 26 tests in 1195.545s
OK
________________________________________________________
Executed in 19.97 mins fish external
usr time 10.32 secs 1657.00 micros 10.31 secs
sys time 3.18 secs 235.00 micros 3.18 secs
/srv/slapgrid/slappart4/srv/slapos/soft/c63ba7265399450b28f9ea6d5667a5e7/eggs/slapos.cookbook-1.0.152-py2.7.egg
/srv/slapgrid/slappart4/srv/slapos/inst/slappart0/tmp/soft/c63ba7265399450b28f9ea6d5667a5e7/eggs/slapos.cookbook-1.0.152-py2.7.egg/slapos/recipe/switch_softwaretype.py
Ran 2 tests in 188.451s
Ran 2 tests in 161.661s
'''
\ No newline at end of file
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