Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Donwload policy on_demand supported for file type repository #16960

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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