From 5c0f3010f1c61c2153fc8e37a0b66cb2795de9bb Mon Sep 17 00:00:00 2001 From: Brian Bouterse Date: Tue, 2 Jul 2019 09:52:56 -0400 Subject: [PATCH] Changing download_policies With https://github.com/pulp/pulpcore/commit/59f3450286d0a3a88e4b9fd1edb3568ee65bf54f the download policy by default only includes 'immediate'. Required PR: https://github.com/pulp/pulpcore/pull/199 Required PR: https://github.com/pulp/pulp_file/pull/255 [noissue] --- pulp_smash/pulp3/constants.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pulp_smash/pulp3/constants.py b/pulp_smash/pulp3/constants.py index 90b33a9a4..8d56dbd50 100644 --- a/pulp_smash/pulp3/constants.py +++ b/pulp_smash/pulp3/constants.py @@ -2,9 +2,7 @@ """Constants for Pulp 3 tests.""" from urllib.parse import urljoin -from pulp_smash.api import ( # noqa: F401 - _P3_TASK_END_STATES as P3_TASK_END_STATES, -) +from pulp_smash.api import _P3_TASK_END_STATES as P3_TASK_END_STATES # noqa: F401 BASE_PATH = "/pulp/api/v3/" @@ -22,13 +20,9 @@ DISTRIBUTION_PATH = urljoin(BASE_PATH, "distributions/") -DOWNLOAD_POLICIES = ("immediate", "on_demand", "streamed") +IMMEDIATE_DOWNLOAD_POLICIES = ("immediate",) -JWT_PATH = urljoin(BASE_PATH, "jwt/") - -LAZY_DOWNLOAD_POLICIES = tuple( - [item for item in DOWNLOAD_POLICIES if item != "immediate"] -) +ON_DEMAND_DOWNLOAD_POLICIES = ("on_demand", "streamed") MEDIA_PATH = "/var/lib/pulp"