Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Commit 1ab4e19

Browse files
authored
Merge pull request #377 from ipanova/remove-lazy-term
Update tests with on-demand terminology.
2 parents 789e531 + f1e5c00 commit 1ab4e19

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

pulp_docker/tests/functional/api/test_crud_remotes.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
from requests.exceptions import HTTPError
77

88
from pulp_smash import api, config, utils
9-
from pulp_smash.pulp3.constants import DOWNLOAD_POLICIES
9+
from pulp_smash.pulp3.constants import (
10+
IMMEDIATE_DOWNLOAD_POLICIES,
11+
ON_DEMAND_DOWNLOAD_POLICIES,
12+
)
1013

1114
from pulp_docker.tests.functional.constants import DOCKER_REMOTE_PATH
1215
from pulp_docker.tests.functional.utils import skip_if, gen_docker_remote
@@ -127,6 +130,8 @@ def _gen_verbose_remote():
127130
attrs.update({
128131
'password': utils.uuid4(),
129132
'username': utils.uuid4(),
130-
'policy': choice(DOWNLOAD_POLICIES),
133+
'policy': choice(
134+
IMMEDIATE_DOWNLOAD_POLICIES + ON_DEMAND_DOWNLOAD_POLICIES
135+
),
131136
})
132137
return attrs

pulp_docker/tests/functional/api/test_pull_content.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ def test_pull_nonexistent_image(self):
242242
registry.pull(local_url)
243243

244244

245-
class PullLazyContentTestCase(unittest.TestCase):
246-
"""Verify whether images lazily-served by Pulp can be pulled."""
245+
class PullOnDemandContentTestCase(unittest.TestCase):
246+
"""Verify whether on-demand served images by Pulp can be pulled."""
247247

248248
@classmethod
249249
def setUpClass(cls):
@@ -343,7 +343,7 @@ def test_api_returns_same_checksum(self):
343343
)
344344

345345
def test_pull_image_from_repository(self):
346-
"""Verify that a client can pull the image from Pulp (lazy).
346+
"""Verify that a client can pull the image from Pulp (on-demand).
347347
348348
1. Using the RegistryClient pull the image from Pulp.
349349
2. Pull the same image from remote registry.
@@ -379,7 +379,7 @@ def test_pull_image_from_repository(self):
379379
registry.rmi(DOCKER_UPSTREAM_NAME)
380380

381381
def test_pull_image_from_repository_version(self):
382-
"""Verify that a client can pull the image from Pulp (lazy).
382+
"""Verify that a client can pull the image from Pulp (on-demand).
383383
384384
1. Using the RegistryClient pull the image from Pulp.
385385
2. Pull the same image from remote registry.
@@ -410,7 +410,7 @@ def test_pull_image_from_repository_version(self):
410410
registry.rmi(DOCKER_UPSTREAM_NAME)
411411

412412
def test_pull_image_with_tag(self):
413-
"""Verify that a client can pull the image from Pulp with a tag (lazy).
413+
"""Verify that a client can pull the image from Pulp with a tag (on-demand).
414414
415415
1. Using the RegistryClient pull the image from Pulp specifying a tag.
416416
2. Pull the same image and same tag from remote registry.

0 commit comments

Comments
 (0)