From c015d02fb07248efa789bc389e84f420aaa40fb4 Mon Sep 17 00:00:00 2001 From: Tullio Sebastiani Date: Fri, 4 Oct 2024 15:59:47 +0200 Subject: [PATCH] fixing typo in krkn_telemetry_openshift (#127) Signed-off-by: Tullio Sebastiani --- src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py | 2 +- src/krkn_lib/tests/test_krkn_telemetry_openshift.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py b/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py index b9d80cd0..82335f0a 100644 --- a/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py +++ b/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py @@ -181,7 +181,7 @@ def put_ocp_logs( archive_path = self.__ocpcli.collect_filter_archive_ocp_logs( workdir, dst_dir, - self.__kubecli.get_kubeconfig_path(), + self.__ocpcli.get_kubeconfig_path(), start_timestamp, end_timestamp, logs_filter_patterns, diff --git a/src/krkn_lib/tests/test_krkn_telemetry_openshift.py b/src/krkn_lib/tests/test_krkn_telemetry_openshift.py index e6f6847e..d8c9951a 100644 --- a/src/krkn_lib/tests/test_krkn_telemetry_openshift.py +++ b/src/krkn_lib/tests/test_krkn_telemetry_openshift.py @@ -49,3 +49,8 @@ def _test_put_ocp_logs(self): int(ten_minutes_ago.timestamp()), int(ten_minutes_fwd.timestamp()), ) + + def test_get_kubeconfig_path(self): + kube_path = self.lib_ocp.get_kubeconfig_path() + self.assertIsNotNone(kube_path) + self.assertEqual(kube_path, "~/.kube/config")