From edf8117f0adcc0d57e1e66466631cb0a230cede0 Mon Sep 17 00:00:00 2001 From: Jameer Pathan <21165044+jameerpathan111@users.noreply.github.com> Date: Mon, 29 Jan 2024 15:45:52 +0100 Subject: [PATCH] Fix RH Cloud connector test (cherry picked from commit 5c9cb775b1944984d39c20c0c60f8b653b2a5015) --- tests/foreman/ui/test_rhc.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/foreman/ui/test_rhc.py b/tests/foreman/ui/test_rhc.py index ab973ec079c..0fdefee5bf1 100644 --- a/tests/foreman/ui/test_rhc.py +++ b/tests/foreman/ui/test_rhc.py @@ -14,6 +14,7 @@ from datetime import datetime, timedelta from fauxfactory import gen_string +from manifester import Manifester import pytest from robottelo import constants @@ -65,11 +66,16 @@ def fixture_setup_rhc_satellite( request, module_target_sat, module_rhc_org, - module_extra_rhel_sca_manifest, ): """Create Organization and activation key after successful test execution""" if settings.rh_cloud.crc_env == 'prod': - module_target_sat.upload_manifest(module_rhc_org.id, module_extra_rhel_sca_manifest.content) + manifester = Manifester( + allocation_name=module_rhc_org.name, + manifest_category=settings.manifest.extra_rhel_entitlement, + simple_content_access="enabled", + ) + rhcloud_manifest = manifester.get_manifest() + module_target_sat.upload_manifest(module_rhc_org.id, rhcloud_manifest.content) yield if request.node.rep_call.passed: # Enable and sync required repos