Skip to content

Commit

Permalink
Updates tests for pulp-smash constant rename
Browse files Browse the repository at this point in the history
The "lazy" variables are renamed to be "on-demand" to match recent
changes in pulp-smash.

Required PR: pulp/pulp-smash#1210
Required PR: pulp/pulp_file#255

[noissue]
  • Loading branch information
Brian Bouterse committed Jul 2, 2019
1 parent a6def83 commit f732f0e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from urllib.parse import urljoin

from pulp_smash import api, config, utils
from pulp_smash.pulp3.constants import LAZY_DOWNLOAD_POLICIES, REPO_PATH
from pulp_smash.pulp3.constants import ON_DEMAND_DOWNLOAD_POLICIES, REPO_PATH
from pulp_smash.pulp3.utils import (
delete_orphans,
download_content_unit,
Expand Down Expand Up @@ -59,7 +59,7 @@ def test_content_remote_delete(self):
repo = client.post(REPO_PATH, gen_repo())
self.addCleanup(client.delete, repo['_href'])

body = gen_file_remote(policy=choice(LAZY_DOWNLOAD_POLICIES))
body = gen_file_remote(policy=choice(ON_DEMAND_DOWNLOAD_POLICIES))
remote = client.post(FILE_REMOTE_PATH, body)

# Sync the repository using a lazy download policy.
Expand Down Expand Up @@ -93,7 +93,7 @@ def test_content_remote_delete(self):

# Recreating a remote and re-triggering a sync will cause these broken
# units to recover again.
body = gen_file_remote(policy=choice(LAZY_DOWNLOAD_POLICIES))
body = gen_file_remote(policy=choice(ON_DEMAND_DOWNLOAD_POLICIES))
remote = client.post(FILE_REMOTE_PATH, body)
self.addCleanup(client.delete, remote['_href'])

Expand Down

0 comments on commit f732f0e

Please sign in to comment.