From 390080b6604591a9940ec9ab710795d71fe8708c Mon Sep 17 00:00:00 2001 From: David Moore Date: Wed, 11 Oct 2023 07:30:50 -0400 Subject: [PATCH] subscription-manager repos call, local pass --- robottelo/host_helpers/contenthost_mixins.py | 1 + tests/foreman/api/test_errata.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/robottelo/host_helpers/contenthost_mixins.py b/robottelo/host_helpers/contenthost_mixins.py index f009503666a..74566b0ffb0 100644 --- a/robottelo/host_helpers/contenthost_mixins.py +++ b/robottelo/host_helpers/contenthost_mixins.py @@ -154,6 +154,7 @@ class HostInfo: @property def applicable_errata_count(self): """return the applicable errata count for a host""" + self.run('subscription-manager repos') return self.nailgun_host.read().content_facet_attributes['errata_counts']['total'] diff --git a/tests/foreman/api/test_errata.py b/tests/foreman/api/test_errata.py index e180af0710c..8c6383a4c7a 100644 --- a/tests/foreman/api/test_errata.py +++ b/tests/foreman/api/test_errata.py @@ -225,8 +225,7 @@ def test_positive_install_multiple_in_host(target_sat, rhel_contenthost, module_ search_rate=20, max_tries=15, ) - rhel_contenthost.run('subscription-manager repos') - sleep(10) + sleep(20) assert rhel_contenthost.applicable_errata_count == pre_errata_count - 1