aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/utils
diff options
context:
space:
mode:
authormorganrol <morgan.richomme@orange.com>2021-04-06 19:18:42 +0200
committermrichomme <morgan.richomme@orange.com>2021-04-07 19:19:55 +0200
commit7f14630e5f8b613bf0ce984f21beade5a8085dd7 (patch)
tree9e99a9f2584c5e987a4b14a650d2485731552a59 /src/onaptests/utils
parent2f224001177afb13b5de22d2d97d0ea63c5781b8 (diff)
[CLAMP] raise exception in case of Policy or DCAE errors
remove the exit(1) to be sure we got a nice reporting Issue-ID: INT-1819 Signed-off-by: morganrol <morgan.richomme@orange.com> Change-Id: Ie652d382fd649e3537209d6891881db5ee219207
Diffstat (limited to 'src/onaptests/utils')
-rw-r--r--src/onaptests/utils/exceptions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/onaptests/utils/exceptions.py b/src/onaptests/utils/exceptions.py
index c12ee2f..34f7637 100644
--- a/src/onaptests/utils/exceptions.py
+++ b/src/onaptests/utils/exceptions.py
@@ -78,3 +78,11 @@ class SubstepExecutionException(OnapTestException):
class EnvironmentCleanupException(OnapTestException):
"""Test environment cleanup exception."""
error_message="Test couldn't finish a cleanup"
+
+class PolicyException(OnapTestException):
+ """Policy exception."""
+ error_message="Problem with policy module"
+
+class DcaeException(OnapTestException):
+ """DCAE exception."""
+ error_message="Problem with DCAE module"