From 4527884e46403773161c9fd773179f5c5cd651a9 Mon Sep 17 00:00:00 2001 From: Kevin Pouget Date: Wed, 8 Nov 2023 17:54:28 +0100 Subject: [PATCH] testing: watsonx-serving: test: cleanup Watsonx on exit --- testing/watsonx-serving/test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/watsonx-serving/test.py b/testing/watsonx-serving/test.py index f88436adc2..8487f6f203 100755 --- a/testing/watsonx-serving/test.py +++ b/testing/watsonx-serving/test.py @@ -187,7 +187,7 @@ def cleanup_cluster(): """ # _Not_ executed in OpenShift CI cluster (running on AWS). Only required for running in bare-metal environments. - logging.info("Nothing to do to cleanup the cluster.") + prepare_watsonx_serving.cleanup() @entrypoint(ignore_secret_path=True) @@ -279,6 +279,7 @@ class Entrypoint: def __init__(self): self.cleanup_cluster_ci = cleanup_cluster + self.cleanup_cluster = cleanup_cluster self.prepare_ci = prepare_ci self.prepare_watsonx_serving = _prepare_watsonx_serving