Revert "Revert "Create basic_cnf test leveraging onapsdk""
[testsuite/pythonsdk-tests.git] / src / onaptests / utils / exceptions.py
1 #!/usr/bin/env python
2
3 # Copyright (c) 2018 Orange and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 """Module to define pythonsdk-test exceptions."""
10
11 __author__ = ("Morgan Richomme <morgan.richomme@orange.com>")
12
13
14 class TestConfigurationException(Exception):
15     """Raise when configutation of the use cases is not complete or buggy."""
16
17
18 class ServiceDistributionException(Exception):
19     """Service not properly distributed."""
20
21
22 class ServiceInstantiateException(Exception):
23     """Service cannot be instantiate."""
24
25
26 class ServiceCleanupException(Exception):
27     """Service cannot be cleaned."""
28
29
30 class VnfInstantiateException(Exception):
31     """VNF cannot be instantiate."""
32
33
34 class VnfCleanupException(Exception):
35     """VNF cannot be cleaned."""
36
37
38 class VfModuleInstantiateException(Exception):
39     """VF Module cannot be instantiate."""
40
41
42 class VfModuleCleanupException(Exception):
43     """VF Module cannot be instantiate."""
44
45
46 class NetworkInstantiateException(Exception):
47     """Network cannot be instantiate."""
48
49
50 class NetworkCleanupException(Exception):
51     """Network cannot be cleaned."""
52
53 class ProfileInformationException(Exception):
54     """Missing k8s profile information."""
55
56 class ProfileCleanupException(Exception):
57     """K8s profile cannot be cleaned."""