diff options
author | andreasgeissler <andreas-geissler@telekom.de> | 2020-10-12 18:05:46 +0200 |
---|---|---|
committer | mrichomme <morgan.richomme@orange.com> | 2020-10-16 10:06:41 +0200 |
commit | 8642324e0b95b9efef53a7d62b419d72aed617b6 (patch) | |
tree | 40d76e3b8d312033aad592e8629cf538d36d2eb3 /run_basic_network_nomulticloud.py | |
parent | e39466fadd289f279509e460f6222d9c08f53c56 (diff) |
Added basic_network testcase
Issue-ID: TEST-255
Signed-off-by: andreasgeissler <andreas-geissler@telekom.de>
Change-Id: I86b34c0980cee7a5824231591a60d1f50dfe4f37
Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'run_basic_network_nomulticloud.py')
-rw-r--r-- | run_basic_network_nomulticloud.py | 23 |
1 files changed, 23 insertions, 0 deletions
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() |