Skip to content

Commit

Permalink
use Katello::SimplePackage
Browse files Browse the repository at this point in the history
Katello::Pulp::SimplePackage is gone since

    commit c6df8726cad96bc3d67de1e65c78eb0f236d8524
    Author: ianballou <[email protected]>
    Date:   Thu Jan 5 21:54:38 2023 +0000

        Refs #35006 - Remove Pulp service classes

This bumps the minumum required Katello version to 4.8
  • Loading branch information
evgeni committed Feb 12, 2024
1 parent 5330005 commit 8e6dcb7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def delete_yum_pkgs(packages)

def create_new_yum_kernel_packages(packages, version, release)
new_kernels = packages.map do |p|
::Katello::Pulp::SimplePackage.new({
::Katello::SimplePackage.new({
arch: p.arch,
epoch: p.epoch,
version: version,
Expand Down
2 changes: 1 addition & 1 deletion foreman_kernel_care.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 2.5.0'

s.add_dependency 'foreman_remote_execution', '>= 1.5.6'
s.add_dependency 'katello', '>= 3.8.0'
s.add_dependency 'katello', '>= 4.8.0'

s.add_development_dependency 'rdoc', '~> 6', '>= 6.3.1'
s.add_development_dependency 'rubocop', '>= 0.87.0'
Expand Down
2 changes: 1 addition & 1 deletion test/factories/foreman_kernel_care_factories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
:epoch => '1',
:nvra => 'kernelcare-2.54-1.el7.x86_64'
}
host.import_package_profile([::Katello::Pulp::SimplePackage.new(package_json)])
host.import_package_profile([::Katello::SimplePackage.new(package_json)])
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/unit/host_managed_extensions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_update_kernel_version
package_json = { :name => 'kernel', :version => '1',
:release => '1.el7', :arch => 'x86_64', :epoch => '1',
:nvra => 'kernel-1-1.el7.x86_64' }
host.import_package_profile([::Katello::Pulp::SimplePackage.new(package_json)])
host.import_package_profile([::Katello::SimplePackage.new(package_json)])
nvra = 'kernel-1-1.el7.x86_64'
host.reload
version = '2'
Expand Down

0 comments on commit 8e6dcb7

Please sign in to comment.