diff options
author | mrichomme <morgan.richomme@orange.com> | 2020-10-15 14:57:37 +0200 |
---|---|---|
committer | mrichomme <morgan.richomme@orange.com> | 2020-10-15 16:27:50 +0200 |
commit | e39466fadd289f279509e460f6222d9c08f53c56 (patch) | |
tree | a1651a3f07b6e503ea1a42575d7ca8a7b69d9db2 /src | |
parent | b7b9796d16a2e53e0e58ae9888dade1e89a0cc19 (diff) |
Fix bad path of the logs in the reporting page
Issue-ID: TEST-270
Signed-off-by: mrichomme <morgan.richomme@orange.com>
Change-Id: Ief03cf6916b417fb0c80c5086ffe8e73f3865329
Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/onaptests/configuration/settings.py | 2 | ||||
-rw-r--r-- | src/onaptests/steps/reports_collection.py | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/onaptests/configuration/settings.py b/src/onaptests/configuration/settings.py index 3339082..745dc08 100644 --- a/src/onaptests/configuration/settings.py +++ b/src/onaptests/configuration/settings.py @@ -28,7 +28,7 @@ LOG_CONFIG = { "level": "DEBUG", "class": "logging.FileHandler", "formatter": "default", - "filename": "./pythonsdk.debug.log", + "filename": "/tmp/pythonsdk.debug.log", "mode": "w" } }, diff --git a/src/onaptests/steps/reports_collection.py b/src/onaptests/steps/reports_collection.py index bcb199f..3c1dfb6 100644 --- a/src/onaptests/steps/reports_collection.py +++ b/src/onaptests/steps/reports_collection.py @@ -36,7 +36,7 @@ class ReportsCollection: def generate_report(self) -> None: step_list = self.report - failing_steps = [] + failing_steps = {} for step,status in step_list.items(): if 'FAIL' in status: failing_steps[step] = status @@ -51,7 +51,6 @@ class ReportsCollection: except NameError: components = "" - log_path = settings.LOG_CONFIG['handlers']['file']['filename'] jinja_env = Environment( autoescape=select_autoescape(['html']), loader=FileSystemLoader(sys.path[-1] + '/onaptests/templates/reporting')) @@ -62,5 +61,5 @@ class ReportsCollection: usecase=usecase, details=details, components=components, - log_path=log_path).dump( + log_path="./pythonsdk.debug.log").dump( settings.REPORTING_FILE_PATH) |