Skip to content

Commit

Permalink
fix tests to use old backup fixture name
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored Sep 13, 2023
1 parent ffbb21a commit 564b895
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/lib/utils/backup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,25 +380,25 @@ def feature_with_local_method(label, return_value)
end

it 'detects backup with puppetserver installed' do
backup = subject.new(katello_standard)
backup = subject.new(katello_standard_pulpcore_database)
backup.stubs(:metadata).returns('rpms' => ['puppetserver-7.4.2-1.el8.noarch'])
assert backup.with_puppetserver?
end

it 'detects backup without puppetserver installed' do
backup = subject.new(katello_standard)
backup = subject.new(katello_standard_pulpcore_database)
backup.stubs(:metadata).returns('rpms' => ['ansible-core-2.14.2-4.el8_8.x86_64'])
refute backup.with_puppetserver?
end

it 'detects backup with qpidd installed' do
backup = subject.new(katello_standard)
backup = subject.new(katello_standard_pulpcore_database)
backup.stubs(:metadata).returns('rpms' => ['qpid-cpp-server-1.36.0-32.el7_9amq.x86_64'])
assert backup.with_qpidd?
end

it 'detects backup without qpidd installed' do
backup = subject.new(katello_standard)
backup = subject.new(katello_standard_pulpcore_database)
backup.stubs(:metadata).returns('rpms' => ['qpid-cpp-client-1.36.0-32.el7_9amq.x86_64'])
refute backup.with_qpidd?
end
Expand Down

0 comments on commit 564b895

Please sign in to comment.