diff options
author | Micha? Jagie??o <michal.jagiello@t-mobile.pl> | 2023-08-07 13:06:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-08-07 13:06:39 +0000 |
commit | f79b8e825e0e3cbde157e29a3225f9357e4198bd (patch) | |
tree | 72494a6d436ce591b54cf621ccec4c68f8154ed7 /run_multi_vnf_ubuntu.py | |
parent | be6ea937c20fb6ba83d6c7b35f6f5677f9a355cc (diff) | |
parent | 4bccbde3060931c8fcf61fbf8b61db4a85b3200e (diff) |
Merge "Change cleanup process of tests"
Diffstat (limited to 'run_multi_vnf_ubuntu.py')
-rw-r--r-- | run_multi_vnf_ubuntu.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/run_multi_vnf_ubuntu.py b/run_multi_vnf_ubuntu.py deleted file mode 100644 index e8ca7fa..0000000 --- a/run_multi_vnf_ubuntu.py +++ /dev/null @@ -1,32 +0,0 @@ -import logging.config -import time -import onaptests.utils.exceptions as onap_test_exceptions -from onapsdk.configuration import settings -from onaptests.scenario.multi_vnf_macro import MultiVnfUbuntuMacroStep - -if __name__ == "__main__": - # logging configuration for onapsdk, it is not requested for onaptests - # Correction requested in onapsdk to avoid having this duplicate code - logging.config.dictConfig(settings.LOG_CONFIG) - logger = logging.getLogger("Instantiate Ubuntu multi VNF without multicloud") - step = MultiVnfUbuntuMacroStep(cleanup=settings.CLEANUP_FLAG) - try: - step.execute() - if settings.CLEANUP_FLAG: - logger.info("Starting to clean up in {} seconds".format(settings.CLEANUP_ACTIVITY_TIMER)) - time.sleep(settings.CLEANUP_ACTIVITY_TIMER) - step.cleanup() - except onap_test_exceptions.TestConfigurationException: - logger.error("Ubuntu NSO VM configuration error") - except onap_test_exceptions.ServiceInstantiateException: - logger.error("Ubuntu NSO VM instantiation error") - except onap_test_exceptions.ServiceCleanupException: - logger.error("Ubuntu NSO VM instance cleanup error") - except onap_test_exceptions.VnfInstantiateException: - logger.error("Ubuntu NSO VM Vnf instantiation error") - except onap_test_exceptions.VnfCleanupException: - logger.error("Ubuntu NSO VM Vnf instance cleanup error") - except onap_test_exceptions.VfModuleInstantiateException: - logger.error("Ubuntu NSO VM Module instantiation error") - except onap_test_exceptions.VfModuleCleanupException: - logger.error("Ubuntu NSO VM Module cleanup error") |