From 61a498c3d23cac784c8b817ff8471bd89dc69f2c Mon Sep 17 00:00:00 2001 From: dosas Date: Wed, 27 Nov 2024 17:20:21 +0100 Subject: [PATCH] Donwload policy on_demand supported for file type repository (#16960) see https://github.com/Katello/katello/pull/11184 --- tests/foreman/api/test_repository.py | 4 ++-- tests/foreman/cli/test_repository.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/foreman/api/test_repository.py b/tests/foreman/api/test_repository.py index a32469e6709..d2856c949c7 100644 --- a/tests/foreman/api/test_repository.py +++ b/tests/foreman/api/test_repository.py @@ -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 diff --git a/tests/foreman/cli/test_repository.py b/tests/foreman/cli/test_repository.py index 1bbfefae259..f3f75057ab3 100644 --- a/tests/foreman/cli/test_repository.py +++ b/tests/foreman/cli/test_repository.py @@ -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