Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion test_suite/generic/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def test_subscription_manager_auto(self, host, instance_data):
print(f'Waiting {interval}s for auto-registration to succeed...')
time.sleep(interval)

def test_subscription_manager_auto_config(self, host):
def test_subscription_manager_autoregv1_config(self, host):
"""
BugZilla: 1932802, 1905398
Verify that auto_registration is enabled in the image
Expand All @@ -619,6 +619,25 @@ def test_subscription_manager_auto_config(self, host):

assert host.service('rhsmcertd').is_enabled, \
'rhsmcertd service is expected to be enabled'

def test_subscription_manager_autoregv2_config(self, host):
"""

"""
expected_config = [
'auto_register = 1',
'manage_repos = 1'
]

file_to_check = '/etc/rhsm/rhsm.conf'

with host.sudo():
for item in expected_config:
assert host.file(file_to_check).contains(item), \
f'{file_to_check} has unexpected content'

assert host.service('rhsmcertd').is_enabled, \
'rhsmcertd service is expected to be enabled'


@pytest.mark.order(1)
Expand Down