diff --git a/tests/foreman/ui/test_errata.py b/tests/foreman/ui/test_errata.py index 266646b1df9..66cd1864b56 100644 --- a/tests/foreman/ui/test_errata.py +++ b/tests/foreman/ui/test_errata.py @@ -392,6 +392,8 @@ def test_end_to_end( registered_contenthost.execute(f'yum remove -y {FAKE_1_CUSTOM_PACKAGE_NAME}') result = registered_contenthost.execute(f'yum install -y {FAKE_1_CUSTOM_PACKAGE}') assert result.status == 0, f'Failed to install package {FAKE_1_CUSTOM_PACKAGE}.' + # recalculate and assert applicable errata after installing outdated pkg + assert registered_contenthost.execute('subscription-manager repos').status == 0 applicable_errata = registered_contenthost.applicable_errata_count assert ( applicable_errata == 1