aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/utils/exceptions.py
diff options
context:
space:
mode:
authorMicha? Jagie??o <michal.jagiello@t-mobile.pl>2023-08-07 13:06:39 +0000
committerGerrit Code Review <gerrit@onap.org>2023-08-07 13:06:39 +0000
commitf79b8e825e0e3cbde157e29a3225f9357e4198bd (patch)
tree72494a6d436ce591b54cf621ccec4c68f8154ed7 /src/onaptests/utils/exceptions.py
parentbe6ea937c20fb6ba83d6c7b35f6f5677f9a355cc (diff)
parent4bccbde3060931c8fcf61fbf8b61db4a85b3200e (diff)
Merge "Change cleanup process of tests"
Diffstat (limited to 'src/onaptests/utils/exceptions.py')
-rw-r--r--src/onaptests/utils/exceptions.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/onaptests/utils/exceptions.py b/src/onaptests/utils/exceptions.py
index 6842714..978e628 100644
--- a/src/onaptests/utils/exceptions.py
+++ b/src/onaptests/utils/exceptions.py
@@ -14,6 +14,15 @@ class OnapTestException(Exception):
error_message = 'Generic OnapTest exception'
+class OnapTestExceptionGroup(ExceptionGroup, OnapTestException): # noqa
+ """Group of Onap Test Exceptions."""
+ error_message = 'Generic OnapTest exception group'
+
+
+class SkipExecutionException(OnapTestException):
+ """Used only for validation purposes"""
+
+
class TestConfigurationException(OnapTestException):
"""Raise when configuration of the use case is incomplete or buggy."""
error_message = 'Configuration error'
@@ -83,6 +92,10 @@ class SubstepExecutionException(OnapTestException):
"""Exception raised if substep execution fails."""
+class SubstepExecutionExceptionGroup(ExceptionGroup, SubstepExecutionException): # noqa
+ """Group of Substep Exceptions."""
+
+
class EnvironmentCleanupException(OnapTestException):
"""Test environment cleanup exception."""
error_message = "Test couldn't finish a cleanup"