diff options
author | 2021-02-05 20:37:02 +0000 | |
---|---|---|
committer | 2021-02-08 18:12:38 +0100 | |
commit | df5a03610d6f00ed8e8ee3e153de055fbc5dae94 (patch) | |
tree | 252a682d3932edd33301861c604abefb2191d8cd /src/onaptests/scenario/basic_network.py | |
parent | 5021508f4b6f8bf2bb6ef890b4bb960dc144484b (diff) |
Python SDK 7.4.0 compatibility
Use Python SDK exceptions.
Issue-ID: TEST-302
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I76996817c0d7b91c0214ad521c3768682ff07e83
Diffstat (limited to 'src/onaptests/scenario/basic_network.py')
-rw-r--r-- | src/onaptests/scenario/basic_network.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/onaptests/scenario/basic_network.py b/src/onaptests/scenario/basic_network.py index 8aafd32..7a0b9f7 100644 --- a/src/onaptests/scenario/basic_network.py +++ b/src/onaptests/scenario/basic_network.py @@ -5,6 +5,7 @@ import time from xtesting.core import testcase from onapsdk.configuration import settings +from onapsdk.exceptions import SDKException import onaptests.utils.exceptions as onap_test_exceptions from onaptests.steps.instantiate.vl_ala_carte import YamlTemplateVlAlaCarteInstantiateStep @@ -40,8 +41,8 @@ class BasicNetwork(testcase.TestCase): time.sleep(settings.CLEANUP_ACTIVITY_TIMER) try: self.test.cleanup() - except ValueError as error: - self.__logger.info("service deleted as expected {0}".format(error)) + except SDKException as error: + self.__logger.info("service deletion error {0}".format(error)) self.result = 100 else: self.__logger.info("No cleanup requested. Test completed.") |