Skip to content

Commit

Permalink
Donwload policy on_demand supported for file type repository (#16960)
Browse files Browse the repository at this point in the history
  • Loading branch information
dosas authored Nov 27, 2024
1 parent 97e4c00 commit 61a498c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/foreman/api/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ 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'],
)
def test_negative_create_repos_with_download_policy(self, repo_options, target_sat):
"""Verify that non-YUM & non-docker repositories cannot be created with
"""Verify that non-YUM, non-docker, non-debian, and non-file repositories cannot be created with
download policy
:id: 8a59cb31-164d-49df-b3c6-9b90634919ce
Expand Down
4 changes: 2 additions & 2 deletions tests/foreman/cli/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,13 +659,13 @@ 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,
)
def test_negative_create_repos_with_download_policy(self, repo_options, module_target_sat):
"""Verify that non-YUM & non-docker repositories cannot be created with download
"""Verify that non-YUM, non-docker, non-debian, and non-file repositories cannot be created with download
policy
:id: 71388973-50ea-4a20-9406-0aca142014ca
Expand Down

0 comments on commit 61a498c

Please sign in to comment.