diff options
author | mrichomme <morgan.richomme@orange.com> | 2020-10-13 12:52:24 +0200 |
---|---|---|
committer | mrichomme <morgan.richomme@orange.com> | 2020-10-14 11:27:35 +0200 |
commit | b7b9796d16a2e53e0e58ae9888dade1e89a0cc19 (patch) | |
tree | 379944906ed2c5a837dc1e09810235fd03a37e8b /src/onaptests/utils | |
parent | 6276bed4df9b8458c4b6805edab81652fb15de76 (diff) |
Improve xtesting integration
All the exceptions shall be caught by the use case
Issue-ID: TEST-257
Signed-off-by: mrichomme <morgan.richomme@orange.com>
Change-Id: Ie2762ad869d8984ce2125db4a8ef4990ee50f82a
Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'src/onaptests/utils')
-rw-r--r-- | src/onaptests/utils/__init__.py | 1 | ||||
-rw-r--r-- | src/onaptests/utils/exceptions.py | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/src/onaptests/utils/__init__.py b/src/onaptests/utils/__init__.py new file mode 100644 index 0000000..a9de3b8 --- /dev/null +++ b/src/onaptests/utils/__init__.py @@ -0,0 +1 @@ +"""Scenario package.""" diff --git a/src/onaptests/utils/exceptions.py b/src/onaptests/utils/exceptions.py new file mode 100644 index 0000000..f80fc09 --- /dev/null +++ b/src/onaptests/utils/exceptions.py @@ -0,0 +1,51 @@ +#!/usr/bin/env python + +# Copyright (c) 2018 Orange and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +"""Module to define pythonsdk-test exceptions.""" + +__author__ = ("Morgan Richomme <morgan.richomme@orange.com>") + + +class TestConfigurationException(Exception): + """Raise when configutation of the use cases is not complete or buggy.""" + + +class ServiceDistributionException(Exception): + """Service not properly distributed.""" + + +class ServiceInstantiateException(Exception): + """Service cannot be instantiate.""" + + +class ServiceCleanupException(Exception): + """Service cannot be cleaned.""" + + +class VnfInstantiateException(Exception): + """VNF cannot be instantiate.""" + + +class VnfCleanupException(Exception): + """VNF cannot be cleaned.""" + + +class VfModuleInstantiateException(Exception): + """VF Module cannot be instantiate.""" + + +class VfModuleCleanupException(Exception): + """VF Module cannot be instantiate.""" + + +class NetworkInstantiateException(Exception): + """Network cannot be instantiate.""" + + +class NetworkCleanupException(Exception): + """Network cannot be cleaned.""" |