diff --git a/app/models/katello/root_repository.rb b/app/models/katello/root_repository.rb index aaab69f8a5b..15906f3554b 100644 --- a/app/models/katello/root_repository.rb +++ b/app/models/katello/root_repository.rb @@ -39,7 +39,8 @@ class RootRepository < Katello::Model RHEL7 = 'rhel-7'.freeze RHEL8 = 'rhel-8'.freeze RHEL9 = 'rhel-9'.freeze - ALLOWED_OS_VERSIONS = [RHEL6, RHEL7, RHEL8, RHEL9].freeze + RHEL10 = 'rhel-10'.freeze + ALLOWED_OS_VERSIONS = [RHEL6, RHEL7, RHEL8, RHEL9, RHEL10].freeze MIRRORING_POLICY_ADDITIVE = 'additive'.freeze MIRRORING_POLICY_CONTENT = 'mirror_content_only'.freeze diff --git a/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/os-versions.service.js b/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/os-versions.service.js index 6a464610616..7f956ecd324 100644 --- a/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/os-versions.service.js +++ b/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/os-versions.service.js @@ -14,6 +14,7 @@ angular this.getOSVersionsOptions = function () { return [ { name: 'No restriction', id: '' }, + { name: 'Red Hat Enterprise Linux 10 ', id: 'rhel-10' }, { name: 'Red Hat Enterprise Linux 9 ', id: 'rhel-9' }, { name: 'Red Hat Enterprise Linux 8 ', id: 'rhel-8' }, { name: 'Red Hat Enterprise Linux 7 ', id: 'rhel-7' }, diff --git a/test/models/root_repository_test.rb b/test/models/root_repository_test.rb index d075b25ee29..c89fea349f4 100644 --- a/test/models/root_repository_test.rb +++ b/test/models/root_repository_test.rb @@ -51,7 +51,7 @@ def test_invalid_os_versions assert_not_valid @root assert_equal @root.errors.full_messages, [ "Os versions invalid: Repositories can only require one OS version.", - "Os versions must be one of: rhel-6, rhel-7, rhel-8, rhel-9", + "Os versions must be one of: rhel-6, rhel-7, rhel-8, rhel-9, rhel-10", ] end