Skip to content

Commit

Permalink
Merge pull request #482 from yoguo/master
Browse files Browse the repository at this point in the history
Register system explicitly in test_collect_insights_result case
  • Loading branch information
yoguo authored Nov 26, 2024
2 parents c7c6876 + 091f636 commit 4044b0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions os_tests/tests/test_general_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 4044b0e

Please sign in to comment.