2 import onaptests.utils.exceptions as onap_test_exceptions
3 from onapsdk.configuration import settings
4 from onaptests.steps.cloud.check_status import CheckNamespaceStatusStep
8 if __name__ == "__main__":
9 # logging configuration for onapsdk, it is not requested for onaptests
10 # Correction requested in onapsdk to avoid having this duplicate code
11 logging.config.dictConfig(settings.LOG_CONFIG)
12 logger = logging.getLogger("Status Check")
14 status = CheckNamespaceStatusStep(
15 cleanup=settings.CLEANUP_FLAG)
19 except onap_test_exceptions.TestConfigurationException:
20 logger.error("Status Check configuration error")
21 status.reports_collection.generate_report()