aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/scenario/cds_resource_resolution.py
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2022-04-07 07:26:58 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2022-04-12 09:37:39 +0000
commit81584955687e053d0697a63131b026fa0eda47c7 (patch)
treefac92faedda8016eeef7b5112e0a193a73dad51d /src/onaptests/scenario/cds_resource_resolution.py
parent4d1467f9290af4d64d329bc103893eaadd00e02c (diff)
Log exception stack trace on test failure
If test fails and exception is raised most of the test scenarios don't print a stack trace so debugging consume more time. Additionally double check on the SDC service distribution status due to an error on Python ONAP SDK Issue-ID: SDC-3949 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Ifc51dbe287a45d5fbbee788f205d1dbe936516e4
Diffstat (limited to 'src/onaptests/scenario/cds_resource_resolution.py')
-rw-r--r--src/onaptests/scenario/cds_resource_resolution.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/onaptests/scenario/cds_resource_resolution.py b/src/onaptests/scenario/cds_resource_resolution.py
index 8c40916..cff04d8 100644
--- a/src/onaptests/scenario/cds_resource_resolution.py
+++ b/src/onaptests/scenario/cds_resource_resolution.py
@@ -84,9 +84,9 @@ class CDSResourceResolution(testcase.TestCase):
test_phase()
self.result += 50
except OnapTestException as exc:
- self.__logger.error(exc.error_message)
+ self.__logger.exception(exc.error_message)
except SDKException:
- self.__logger.error("SDK Exception")
+ self.__logger.exception("SDK Exception")
finally:
self.stop_time = time.time()