aboutsummaryrefslogtreecommitdiffstats
path: root/run_basicvm_nomulticloud.py
diff options
context:
space:
mode:
authorMicha? Jagie??o <michal.jagiello@t-mobile.pl>2023-08-07 13:06:39 +0000
committerGerrit Code Review <gerrit@onap.org>2023-08-07 13:06:39 +0000
commitf79b8e825e0e3cbde157e29a3225f9357e4198bd (patch)
tree72494a6d436ce591b54cf621ccec4c68f8154ed7 /run_basicvm_nomulticloud.py
parentbe6ea937c20fb6ba83d6c7b35f6f5677f9a355cc (diff)
parent4bccbde3060931c8fcf61fbf8b61db4a85b3200e (diff)
Merge "Change cleanup process of tests"
Diffstat (limited to 'run_basicvm_nomulticloud.py')
-rw-r--r--run_basicvm_nomulticloud.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/run_basicvm_nomulticloud.py b/run_basicvm_nomulticloud.py
deleted file mode 100644
index a2e9cfd..0000000
--- a/run_basicvm_nomulticloud.py
+++ /dev/null
@@ -1,37 +0,0 @@
-import logging.config
-import time
-import onaptests.utils.exceptions as onap_test_exceptions
-from onapsdk.configuration import settings
-from onaptests.steps.instantiate.vf_module_ala_carte import YamlTemplateVfModuleAlaCarteInstantiateStep
-
-
-
-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 Basic VM without multicloud")
-
- basic_vm_instantiate = YamlTemplateVfModuleAlaCarteInstantiateStep(
- cleanup=settings.CLEANUP_FLAG)
- try:
- basic_vm_instantiate.execute()
- if settings.CLEANUP_FLAG:
- time.sleep(settings.CLEANUP_ACTIVITY_TIMER)
- basic_vm_instantiate.cleanup()
- except onap_test_exceptions.TestConfigurationException:
- logger.error("Basic VM configuration error")
- except onap_test_exceptions.ServiceInstantiateException:
- logger.error("Basic VM instantiation error")
- except onap_test_exceptions.ServiceCleanupException:
- logger.error("Basic VM instance cleanup error")
- except onap_test_exceptions.VnfInstantiateException:
- logger.error("Basic VM Vnf instantiation error")
- except onap_test_exceptions.VnfCleanupException:
- logger.error("Basic VM Vnf instance cleanup error")
- except onap_test_exceptions.VfModuleInstantiateException:
- logger.error("Basic VM Module instantiation error")
- except onap_test_exceptions.VfModuleCleanupException:
- logger.error("Basic VM Module cleanup error")
-
- basic_vm_instantiate.reports_collection.generate_report()