Skip to content

Commit

Permalink
Replace COPR in acceptance tests
Browse files Browse the repository at this point in the history
`copart/restic` has no builds for Fedora 40 (and no builds in last 2
years). Tests are switched to more active nucleo/wget COPR instead.
  • Loading branch information
jay7x committed Dec 12, 2024
1 parent 07c39a7 commit 265a7b2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spec/acceptance/copr_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
require 'spec_helper_acceptance'

describe 'yum::copr' do
context 'when @caddy/caddy and copart/restic are enabled' do
context 'when @caddy/caddy and nucleo/wget are enabled' do
# Using puppet_apply as a helper
it 'must work idempotently with no errors' do
pp = <<-PUPPET
yum::copr { ['@caddy/caddy', 'copart/restic']: }
yum::copr { ['@caddy/caddy', 'nucleo/wget']: }
PUPPET

# Run it twice and test for idempotency
Expand All @@ -16,16 +16,16 @@
end

describe command('dnf copr list') do
its(:stdout) { is_expected.to match(%r{^copr.fedorainfracloud.org/copart/restic$}) }
its(:stdout) { is_expected.to match(%r{^copr.fedorainfracloud.org/nucleo/wget$}) }
its(:stdout) { is_expected.to match(%r{^copr.fedorainfracloud.org/group_caddy/caddy$}) }
end
end

context 'when copart/restic is disabled' do
context 'when nucleo/wget is disabled' do
# Using puppet_apply as a helper
it 'must work idempotently with no errors' do
pp = <<-PUPPET
yum::copr { ['@caddy/caddy', 'copart/restic']:
yum::copr { ['@caddy/caddy', 'nucleo/wget']:
ensure => 'disabled',
}
PUPPET
Expand All @@ -36,16 +36,16 @@
end

describe command('dnf copr list') do
its(:stdout) { is_expected.to match(%r{^copr.fedorainfracloud.org/copart/restic \(disabled\)$}) }
its(:stdout) { is_expected.to match(%r{^copr.fedorainfracloud.org/nucleo/wget \(disabled\)$}) }
its(:stdout) { is_expected.to match(%r{^copr.fedorainfracloud.org/group_caddy/caddy \(disabled\)$}) }
end
end

context 'when copart/restic is removed' do
context 'when nucleo/wget is removed' do
# Using puppet_apply as a helper
it 'must work idempotently with no errors' do
pp = <<-PUPPET
yum::copr { ['@caddy/caddy', 'copart/restic']:
yum::copr { ['@caddy/caddy', 'nucleo/wget']:
ensure => 'removed',
}
PUPPET
Expand All @@ -56,7 +56,7 @@
end

describe command('dnf copr list') do
its(:stdout) { is_expected.not_to match(%r{^copr.fedorainfracloud.org/copart/restic$}) }
its(:stdout) { is_expected.not_to match(%r{^copr.fedorainfracloud.org/nucleo/wget$}) }
its(:stdout) { is_expected.not_to match(%r{^copr.fedorainfracloud.org/group_caddy/caddy$}) }
end
end
Expand Down

0 comments on commit 265a7b2

Please sign in to comment.