Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #29075 - add pulp_rpm plugin #89

Merged
merged 1 commit into from
Jun 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions manifests/plugin/rpm.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# @summary Pulp RPM plugin
class pulpcore::plugin::rpm {
pulpcore::plugin { 'rpm':
}
}
1 change: 1 addition & 0 deletions spec/acceptance/plugins_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class { 'redis::globals':
include pulpcore::plugin::file
include pulpcore::plugin::container
include pulpcore::plugin::migration
include pulpcore::plugin::rpm
PUPPET
}

Expand Down
23 changes: 23 additions & 0 deletions spec/classes/plugin_rpm_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require 'spec_helper'

describe 'pulpcore::plugin::rpm' do
on_supported_os.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_pulpcore__plugin('rpm') }

context 'with pulpcore' do
let(:pre_condition) { 'include pulpcore' }

it do
is_expected.to compile.with_all_deps
is_expected.to contain_pulpcore__plugin('rpm')
.that_subscribes_to('Class[Pulpcore::Install]')
.that_notifies(['Class[Pulpcore::Database]', 'Class[Pulpcore::Service]'])
end
end
end
end
end
4 changes: 4 additions & 0 deletions spec/setup_acceptance_node.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
ensure => installed,
}

package { 'epel-release':
ehelms marked this conversation as resolved.
Show resolved Hide resolved
ensure => installed,
}

package { 'rh-redis5-redis':
ensure => installed,
require => Package['centos-release-scl-rh'],
Expand Down