|
2 | 2 | import os
|
3 | 3 | import unittest
|
4 | 4 | from contextlib import contextmanager
|
5 |
| -from datetime import datetime, timedelta |
6 | 5 | from shutil import copyfile
|
7 | 6 | from tempfile import TemporaryDirectory
|
8 | 7 |
|
9 | 8 | import cherrypy
|
10 |
| -from cryptography.hazmat.backends import default_backend |
11 |
| -from cryptography.hazmat.primitives import serialization |
12 |
| -from cryptography.hazmat.primitives.asymmetric import rsa |
13 |
| -from cryptography import x509 |
14 |
| -from cryptography.x509.oid import NameOID |
15 |
| -from cryptography.hazmat.primitives import hashes |
16 |
| - |
17 | 9 | from cmapi_server import helpers
|
18 | 10 | from cmapi_server.constants import CMAPI_CONF_PATH
|
19 | 11 | from cmapi_server.controllers.dispatcher import dispatcher, jsonify_error
|
| 12 | +from cmapi_server.logging_management import config_cmapi_server_logging |
20 | 13 | from cmapi_server.managers.process import MCSProcessManager
|
21 | 14 | from cmapi_server.managers.certificate import CertificateManager
|
22 | 15 |
|
@@ -80,6 +73,7 @@ def run(self, result=None):
|
80 | 73 | )
|
81 | 74 | copyfile(cmapi_config_filename, self.cmapi_config_filename)
|
82 | 75 | copyfile(TEST_MCS_CONFIG_FILEPATH, self.mcs_config_filename)
|
| 76 | + config_cmapi_server_logging() |
83 | 77 | self.app = cherrypy.tree.mount(
|
84 | 78 | root=None, config=self.cmapi_config_filename
|
85 | 79 | )
|
|
0 commit comments