diff options
Diffstat (limited to 'src/onaptests/scenario/basic_vm.py')
-rw-r--r-- | src/onaptests/scenario/basic_vm.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/onaptests/scenario/basic_vm.py b/src/onaptests/scenario/basic_vm.py index 1dac176..b758088 100644 --- a/src/onaptests/scenario/basic_vm.py +++ b/src/onaptests/scenario/basic_vm.py @@ -7,8 +7,8 @@ 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.vf_module_ala_carte import YamlTemplateVfModuleAlaCarteInstantiateStep +from onaptests.utils.exceptions import OnapTestException class BasicVm(testcase.TestCase): """Onboard then instantiate a simple VM with ONAP.""" @@ -43,11 +43,9 @@ class BasicVm(testcase.TestCase): else: self.__logger.info("No cleanup requested. Test completed.") self.result = 100 - except onap_test_exceptions.OnapTestException as exc: + except (OnapTestException, SDKException) as exc: self.result = 0 self.__logger.error(exc.error_message) - except SDKException as error: - self.__logger.info("service error {0}".format(error)) finally: self.stop_time = time.time() |