Skip to content

Commit

Permalink
Fix assertion error for test_positive_self_update_maintain_package (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jameerpathan111 authored Nov 25, 2024
1 parent 39769a5 commit 721cafe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/foreman/maintain/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,21 @@ def test_positive_self_update_maintain_package(sat_maintain):
options={'whitelist': 'repositories-validate, non-rh-packages'}
)
assert result.status == 0
assert 'Checking for new version of satellite-maintain...' in result.stdout
assert (
'Checking for new version of satellite-maintain, rubygem-foreman_maintain...'
in result.stdout
)
result = sat_maintain.cli.Update.check(
options={
'whitelist': 'repositories-validate, non-rh-packages',
'disable-self-update': True,
}
)
assert result.status == 0
assert 'Checking for new version of satellite-maintain...' not in result.stdout
assert (
'Checking for new version of satellite-maintain, rubygem-foreman_maintain...'
not in result.stdout
)


@pytest.mark.stubbed
Expand Down

0 comments on commit 721cafe

Please sign in to comment.