From 7f14630e5f8b613bf0ce984f21beade5a8085dd7 Mon Sep 17 00:00:00 2001 From: morganrol Date: Tue, 6 Apr 2021 19:18:42 +0200 Subject: [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 Change-Id: Ie652d382fd649e3537209d6891881db5ee219207 --- src/onaptests/utils/exceptions.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/onaptests/utils') 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" -- cgit 1.2.3-korg ='hidden' name='id' value='6f262130309a3cff1a25a8980b9e51b00cedb66a'/> SDNC northbound adaptorsGrokmirror user
summaryrefslogtreecommitdiffstats
blob: 7ae257b9e933520b42dbbf4f991b5759fe3823e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40