From 3ed4f9d2c6e73a61405d538d5c54c802656a9389 Mon Sep 17 00:00:00 2001 From: shwsingh Date: Tue, 16 Apr 2024 13:17:24 +0530 Subject: [PATCH] Remove the sub-man status --- tests/foreman/api/test_convert2rhel.py | 4 ---- tests/foreman/cli/test_registration.py | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/foreman/api/test_convert2rhel.py b/tests/foreman/api/test_convert2rhel.py index d7033ab427c..c78d06f0acc 100644 --- a/tests/foreman/api/test_convert2rhel.py +++ b/tests/foreman/api/test_convert2rhel.py @@ -291,8 +291,6 @@ def test_convert2rhel_oracle(module_target_sat, oracle, activation_key_rhel, ver or host_content['operatingsystem_name'].startswith(f'RedHat {version}') or host_content['operatingsystem_name'].startswith(f'RHEL {version}') ) - assert host_content['subscription_status_label'] == 'Simple Content Access' - assert host_content['subscription_status'] == 5 @pytest.mark.e2e @@ -349,5 +347,3 @@ def test_convert2rhel_centos(module_target_sat, centos, activation_key_rhel, ver or host_content['operatingsystem_name'].startswith(f'RedHat {version}') or host_content['operatingsystem_name'].startswith(f'RHEL {version}') ) - assert host_content['subscription_status_label'] == 'Simple Content Access' - assert host_content['subscription_status'] == 5 diff --git a/tests/foreman/cli/test_registration.py b/tests/foreman/cli/test_registration.py index e3bc35fa58b..34f3fb7f7b6 100644 --- a/tests/foreman/cli/test_registration.py +++ b/tests/foreman/cli/test_registration.py @@ -203,9 +203,9 @@ def test_positive_force_register_twice(module_ak_with_cv, module_org, rhel_conte assert f'The system has been registered with ID: {reg_id_new}' in str(result.stdout) assert reg_id_new != reg_id_old assert ( - target_sat.cli.Host.info({'name': rhel_contenthost.hostname})['subscription-information'][ - 'uuid' - ] + target_sat.cli.Host.info({'name': rhel_contenthost.hostname}, output_format='json')[ + 'subscription-information' + ]['uuid'] == reg_id_new )