From 37d89f237daf2d630d17ece99af72cf927f30cb9 Mon Sep 17 00:00:00 2001 From: dosas Date: Wed, 20 Nov 2024 09:55:58 +0100 Subject: [PATCH] Donwload policy on_demand supported for file type repository 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