aboutsummaryrefslogtreecommitdiffstats
path: root/run_basic_cnf_macro.py
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-07-27 14:59:15 +0000
committerLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-08-05 17:11:09 +0000
commit4bccbde3060931c8fcf61fbf8b61db4a85b3200e (patch)
treef3e58c61d142d84e96718215355c1ce6913b57c9 /run_basic_cnf_macro.py
parent2ffd98c9d0b85b7c6c6b0bf61cd9e848234914ce (diff)
Change cleanup process of tests
Issue-ID: TEST-402 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: Iffe3aeaa4eab6adcabc94d143d1f94a684cd4657
Diffstat (limited to 'run_basic_cnf_macro.py')
-rw-r--r--run_basic_cnf_macro.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/run_basic_cnf_macro.py b/run_basic_cnf_macro.py
deleted file mode 100644
index e6c1823..0000000
--- a/run_basic_cnf_macro.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.basic_cnf_macro import BasicCnfMacro
-
-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 Apache CNF with macro procedure")
- step = BasicCnfMacro(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")