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'