From 6e77a0b85c9438b97b45d90bb2a0fa8f27899a08 Mon Sep 17 00:00:00 2001 From: mehabhalodiya Date: Wed, 27 Nov 2024 00:32:20 +0530 Subject: [PATCH] Add task for list_all_resources.sh Signed-off-by: mehabhalodiya --- reliability-v2/config/reliability.yaml | 1 + reliability-v2/tasks/Tasks.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/reliability-v2/config/reliability.yaml b/reliability-v2/config/reliability.yaml index 99871c8d7a3..9decad179cf 100644 --- a/reliability-v2/config/reliability.yaml +++ b/reliability-v2/config/reliability.yaml @@ -108,6 +108,7 @@ reliability: - func delete_all_projects - func verify_project_deletion -n 1 - func new_project -n 1 + - reliability-v2/tasks/script/list_all_resources.sh -n 10 - /cronjob.sh -n 10 tasks: - /cronjob.sh -c diff --git a/reliability-v2/tasks/Tasks.py b/reliability-v2/tasks/Tasks.py index 350df2e7030..d50f9fae2c0 100644 --- a/reliability-v2/tasks/Tasks.py +++ b/reliability-v2/tasks/Tasks.py @@ -3,6 +3,7 @@ from time import sleep import requests import sys +import subprocess from threading import Lock import asyncio from tasks.GlobalData import global_data @@ -445,4 +446,4 @@ def check_netobserv_pods(self, user): else: self.logger.error(f"Pods status fetch error: result {result}, rc - {rc}") - return (result, rc_return) \ No newline at end of file + return (result, rc_return)