Skip to content

Commit

Permalink
re-added gen_sonobuoy_result_file
Browse files Browse the repository at this point in the history
Signed-off-by: Katharina Trentau <[email protected]>
  • Loading branch information
fraugabel committed Sep 9, 2024
1 parent f021a04 commit 9cc32ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion Tests/kaas/k8s-default-storage-class/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def __init__(self, *args, return_code: int):


def setup_k8s_client(kubeconfigfile=None):

if kubeconfigfile:
logger.debug(f"using kubeconfig file '{kubeconfigfile}'")
config.load_kube_config(kubeconfigfile)
Expand All @@ -55,6 +54,7 @@ def setup_k8s_client(kubeconfigfile=None):
k8s_storage_client,
)


def gen_sonobuoy_result_file(error_n: int, error_msg: str, test_file_name: str):
test_name = test_file_name.replace(".py", "")
test_status = "passed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@


def check_default_storageclass(k8s_client_storage):

api_response = k8s_client_storage.list_storage_class(_preload_content=False)
storageclasses = api_response.read().decode("utf-8")
storageclasses_dict = json.loads(storageclasses)
Expand Down Expand Up @@ -138,7 +137,6 @@ def check_default_persistentvolumeclaim_readwriteonce(k8s_api_instance, storage_
# Check if pod is up and running:
retries = 0
while pod_status != "Running" and retries <= 30:

api_response = k8s_api_instance.read_namespaced_pod(
pod_name, namespace, _preload_content=False
)
Expand Down Expand Up @@ -193,7 +191,6 @@ def check_default_persistentvolumeclaim_readwriteonce(k8s_api_instance, storage_


def main(argv):

initialize_logging()
return_code = 0
return_message = "return_message: FAILED"
Expand Down

0 comments on commit 9cc32ce

Please sign in to comment.