From 091f636c35611a47d22b213f4945ad88ed62868b Mon Sep 17 00:00:00 2001 From: yoguo Date: Tue, 26 Nov 2024 17:41:48 +0800 Subject: [PATCH] Call the rhsm_register function explicitly in test_collect_insights_result case --- os_tests/tests/test_general_check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os_tests/tests/test_general_check.py b/os_tests/tests/test_general_check.py index 7cb8a0f..c043006 100644 --- a/os_tests/tests/test_general_check.py +++ b/os_tests/tests/test_general_check.py @@ -1982,6 +1982,8 @@ def test_collect_insights_result(self): self.skipTest('No insights-client installation found!') utils_lib.run_cmd(self, 'rpm -q insights-client', msg="get insights-client version") utils_lib.run_cmd(self, 'insights-client --version', msg="get insights client version, debug want", timeout=120) + + utils_lib.rhsm_register(self, cancel_case=True) out = utils_lib.run_cmd(self, 'sudo insights-client --register', msg="try to register system", timeout=120) if 'Unauthorized' in out: self.skipTest("Missing RHSM or basic username/password to register insights.")