Skip to content

Commit

Permalink
test: Fixed test of rhc status
Browse files Browse the repository at this point in the history
* The returned value is non-zero, when some sub-task returns
  non-zero value. This change was introduced in this
  PR: RedHatInsights#126
* We should check for non-zero code, not zero code in
  this case
  • Loading branch information
jirihnidek authored and Archana-PandeyM committed Sep 13, 2024
1 parent 8478045 commit 436b9dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration-tests/test_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_status_disconnected(rhc):
# 'rhc disconnect' to ensure system is already disconnected
rhc.run("disconnect", check=False)
status_result = rhc.run("status", check=False)
assert status_result.returncode == 0
assert status_result.returncode != 0
assert "Not connected to Red Hat Subscription Management" in status_result.stdout
assert "Not connected to Red Hat Insights" in status_result.stdout
if pytest.service_name == "rhcd":
Expand Down

0 comments on commit 436b9dd

Please sign in to comment.