From 94196d2528208800b1839d087626a4719b89df56 Mon Sep 17 00:00:00 2001 From: Peter Ondrejka Date: Wed, 16 Oct 2024 14:52:05 +0200 Subject: [PATCH] testing foreman_ygg_worker, etc. --- tests/foreman/cli/test_remoteexecution.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/foreman/cli/test_remoteexecution.py b/tests/foreman/cli/test_remoteexecution.py index b0b6bef7aa7..fba81fa11c8 100644 --- a/tests/foreman/cli/test_remoteexecution.py +++ b/tests/foreman/cli/test_remoteexecution.py @@ -1097,6 +1097,7 @@ def test_positive_run_job_in_chosen_directory( :parametrized: yes """ + client_repo = ohsnap.dogfood_repository( settings.ohsnap, product='client', @@ -1112,6 +1113,7 @@ def test_positive_run_job_in_chosen_directory( 'location-ids': smart_proxy_location.id, } ) + # register host with pull provider rex result = rhel_contenthost.register( module_org, @@ -1220,6 +1222,13 @@ def test_positive_run_job_on_host_registered_to_pull_provider( 'location-ids': smart_proxy_location.id, } ) + os_version = rhel_contenthost.os_version.major + repos = { + 9: f'repo=https://download.copr.fedorainfracloud.org/results/@theforeman/client-nightly-staging-scratch-1c8dce7f-847d-58f5-9d4c-591b1aa6b9f0/rhel-9-x86_64,repo=https://download.copr.fedorainfracloud.org/results/@theforeman/client-nightly-staging-scratch-ac8befae-0841-56f5-963f-97afba0edc97/rhel-9-x86_64,repo={client_repo.baseurl},repo={settings.repos.rhel9_os.appstream},repo={settings.repos.rhel9_os.baseos}', + 8: f'repo=https://download.copr.fedorainfracloud.org/results/@theforeman/client-nightly-staging-scratch-1c8dce7f-847d-58f5-9d4c-591b1aa6b9f0/rhel-8-x86_64/,repo=https://download.copr.fedorainfracloud.org/results/@theforeman/client-nightly-staging-scratch-ac8befae-0841-56f5-963f-97afba0edc97/rhel-8-x86_64,repo={client_repo.baseurl},repo={settings.repos.rhel8_os.appstream},repo={settings.repos.rhel8_os.baseos}', + 7: f'repo=https://download.copr.fedorainfracloud.org/results/@theforeman/client-nightly-staging-scratch-1c8dce7f-847d-58f5-9d4c-591b1aa6b9f0/rhel-7-x86_64/,repo=https://download.copr.fedorainfracloud.org/results/@theforeman/client-nightly-staging-scratch-ac8befae-0841-56f5-963f-97afba0edc97/rhel-7-x86_64/,repo={client_repo.baseurl},repo={settings.repos.rhel7_os}', + } + # register host with pull provider rex (SAT-1677) result = rhel_contenthost.register( module_org, @@ -1227,7 +1236,7 @@ def test_positive_run_job_on_host_registered_to_pull_provider( module_ak_with_cv.name, module_capsule_configured_mqtt, setup_remote_execution_pull=True, - repo_data=f'repo={client_repo.baseurl}', + repo_data=repos[os_version], ignore_subman_errors=True, force=True, )