From 7d66d7a56aace0a45f658424d43f91c12b45f823 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:42:07 -0500 Subject: [PATCH] [6.16.z] Fix pulp tasks purge test case (#17198) --- tests/foreman/cli/test_repositories.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/foreman/cli/test_repositories.py b/tests/foreman/cli/test_repositories.py index 2db5d59984e..33e7524b1b5 100644 --- a/tests/foreman/cli/test_repositories.py +++ b/tests/foreman/cli/test_repositories.py @@ -194,15 +194,16 @@ def test_purge_pulp_tasks(module_target_sat, module_org, module_repository, sett :customerscenario: true """ - original_ptc = int(module_target_sat.execute('pulp task list | jq length').stdout) + cmd = 'pulp task list --limit 99999 | jq length' + original_ptc = int(module_target_sat.execute(cmd).stdout) module_target_sat.run_orphan_cleanup(smart_proxy_id=1) - new_ptc = int(module_target_sat.execute('pulp task list | jq length').stdout) + new_ptc = int(module_target_sat.execute(cmd).stdout) assert new_ptc > original_ptc, 'Pulp tasks were unexpectedly purged' setting_update.value = 0 setting_update.update({'value'}) - original_ptc = int(module_target_sat.execute('pulp task list | jq length').stdout) + original_ptc = int(module_target_sat.execute(cmd).stdout) module_target_sat.run_orphan_cleanup(smart_proxy_id=1) - new_ptc = int(module_target_sat.execute('pulp task list | jq length').stdout) + new_ptc = int(module_target_sat.execute(cmd).stdout) assert new_ptc < original_ptc, 'Pulp tasks were not purged'