aboutsummaryrefslogtreecommitdiffstats
path: root/run_status.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_status.py')
-rw-r--r--run_status.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/run_status.py b/run_status.py
index 0c3aaf1..82c42c9 100644
--- a/run_status.py
+++ b/run_status.py
@@ -1,8 +1,7 @@
import logging.config
import onaptests.utils.exceptions as onap_test_exceptions
from onapsdk.configuration import settings
-from onaptests.steps.cloud.check_status import CheckNamespaceStatusStep
-
+from onaptests.scenario.status import Status
if __name__ == "__main__":
@@ -11,11 +10,9 @@ if __name__ == "__main__":
logging.config.dictConfig(settings.LOG_CONFIG)
logger = logging.getLogger("Status Check")
- status = CheckNamespaceStatusStep(
- cleanup=settings.CLEANUP_FLAG)
+ status = Status()
try:
- status.execute()
- status.cleanup()
+ status.run()
+ status.clean()
except onap_test_exceptions.TestConfigurationException:
logger.error("Status Check configuration error")
- status.reports_collection.generate_report() \ No newline at end of file