From 8642324e0b95b9efef53a7d62b419d72aed617b6 Mon Sep 17 00:00:00 2001 From: andreasgeissler Date: Mon, 12 Oct 2020 18:05:46 +0200 Subject: Added basic_network testcase Issue-ID: TEST-255 Signed-off-by: andreasgeissler Change-Id: I86b34c0980cee7a5824231591a60d1f50dfe4f37 Signed-off-by: mrichomme --- run_basic_network_nomulticloud.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 run_basic_network_nomulticloud.py (limited to 'run_basic_network_nomulticloud.py') diff --git a/run_basic_network_nomulticloud.py b/run_basic_network_nomulticloud.py new file mode 100644 index 0000000..73e487b --- /dev/null +++ b/run_basic_network_nomulticloud.py @@ -0,0 +1,23 @@ +import logging.config +import time +from onapsdk.configuration import settings +from onaptests.steps.instantiate.vl_ala_carte import YamlTemplateVlAlaCarteInstantiateStep + + + +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 Network without multicloud") + + basic_network_instantiate = YamlTemplateVlAlaCarteInstantiateStep( + cleanup=settings.CLEANUP_FLAG) + basic_network_instantiate.execute() + if settings.CLEANUP_FLAG: + time.sleep(settings.CLEANUP_ACTIVITY_TIMER) + try: + basic_network_instantiate.cleanup() + except ValueError as error: + logger.info("service instance deleted as expected {0}".format(error)) + basic_network_instantiate.reports_collection.generate_report() -- cgit 1.2.3-korg