Skip to content

Commit

Permalink
Donwload policy on_demand supported for file type repository
Browse files Browse the repository at this point in the history
  • Loading branch information
dosas committed Nov 26, 2024
1 parent 04976cc commit 1101502
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/foreman/api/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def test_negative_update_to_invalid_download_policy(self, repo, target_sat):
[
{'content_type': content_type, 'download_policy': 'on_demand'}
for content_type in constants.REPO_TYPE
if content_type not in ['yum', 'docker', 'deb']
if content_type not in ['yum', 'docker', 'deb', 'file']
],
indirect=True,
ids=lambda x: x['content_type'],
Expand Down
2 changes: 1 addition & 1 deletion tests/foreman/cli/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ def test_negative_update_to_invalid_download_policy(self, repo_options, repo, ta
[
{'content-type': content_type, 'download-policy': 'on_demand'}
for content_type in REPO_TYPE
if content_type not in ['yum', 'docker', 'deb']
if content_type not in ['yum', 'docker', 'deb', 'file']
]
),
indirect=True,
Expand Down

0 comments on commit 1101502

Please sign in to comment.