diff options
author | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2023-07-27 14:59:15 +0000 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2023-08-05 17:11:09 +0000 |
commit | 4bccbde3060931c8fcf61fbf8b61db4a85b3200e (patch) | |
tree | f3e58c61d142d84e96718215355c1ce6913b57c9 /src/onaptests/utils | |
parent | 2ffd98c9d0b85b7c6c6b0bf61cd9e848234914ce (diff) |
Change cleanup process of tests
Issue-ID: TEST-402
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl>
Change-Id: Iffe3aeaa4eab6adcabc94d143d1f94a684cd4657
Diffstat (limited to 'src/onaptests/utils')
-rw-r--r-- | src/onaptests/utils/exceptions.py | 13 |
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" |