Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Renaming repo from sensu to uchiwa #71

Merged
merged 1 commit into from
Apr 11, 2016
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
2 changes: 1 addition & 1 deletion manifests/repo/apt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$url = 'http://repositories.sensuapp.org/apt'
}

apt::source { 'sensu':
apt::source { 'uchiwa':
ensure => $ensure,
before => Package['uchiwa'],
include => {
Expand Down
6 changes: 3 additions & 3 deletions manifests/repo/yum.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
}
}

yumrepo { 'sensu':
yumrepo { 'uchiwa':
enabled => 1,
baseurl => $url,
gpgcheck => 0,
name => 'sensu',
name => 'uchiwa',
descr => 'sensuapp.org uchiwa repo',
before => Package['uchiwa'],
}
}

}
}
22 changes: 11 additions & 11 deletions spec/classes/uchiwa_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
let(:pre_condition) { [ 'define apt::source ($ensure, $location, $release, $repos, $include, $key) {}' ] }

context 'default' do
it { should contain_apt__source('sensu').with(
it { should contain_apt__source('uchiwa').with(
:ensure => 'present',
:location => 'http://repositories.sensuapp.org/apt',
:release => 'sensu',
Expand All @@ -64,14 +64,14 @@

context 'unstable repo' do
let(:params) { { :repo => 'unstable' } }
it { should contain_apt__source('sensu').with_repos('unstable') }
it { should contain_apt__source('uchiwa').with_repos('unstable') }
end

context 'override repo url' do
let(:params) { { :repo_source => 'http://repo.mydomain.com/apt' } }
it { should contain_apt__source('sensu').with( :location => 'http://repo.mydomain.com/apt') }
it { should contain_apt__source('uchiwa').with( :location => 'http://repo.mydomain.com/apt') }

it { should_not contain_apt__key('sensu').with(
it { should_not contain_apt__key('uchiwa').with(
:key => '7580C77F',
:key_source => 'http://repo.mydomain.com/apt/pubkey.gpg'
) }
Expand All @@ -80,7 +80,7 @@
context 'override key ID and key source' do
let(:params) { { :repo_key_id => 'FFFFFFFF', :repo_key_source => 'http://repo.mydomina.com/apt/pubkey.gpg' } }

it { should_not contain_apt__key('sensu').with(
it { should_not contain_apt__key('uchiwa').with(
:key => 'FFFFFFFF',
:key_source => 'http://repo.mydomain.com/apt/pubkey.gpg'
) }
Expand All @@ -89,9 +89,9 @@
context 'install_repo => false' do
let(:params) { { :install_repo => false, :repo => 'main' } }

it { should_not contain_apt__source('sensu') }
it { should_not contain_apt__source('uchiwa') }

it { should_not contain_apt__key('sensu').with(
it { should_not contain_apt__key('uchiwa').with(
:key => '7580C77F',
:key_source => 'http://repositories.sensuapp.org/apt/pubkey.gpg'
) }
Expand All @@ -111,7 +111,7 @@
let(:facts) { { :osfamily => 'RedHat', :operatingsystemmajrelease => '6',:concat_basedir => '/dne', } }

context 'default' do
it { should contain_yumrepo('sensu').with(
it { should contain_yumrepo('uchiwa').with(
:enabled => 1,
:baseurl => 'http://repos.sensuapp.org/yum/el/6/$basearch/',
:gpgcheck => 0,
Expand All @@ -121,18 +121,18 @@

context 'unstable repo' do
let(:params) { { :repo => 'unstable' } }
it { should contain_yumrepo('sensu').with(:baseurl => 'http://repos.sensuapp.org/yum-unstable/el/6/$basearch/' )}
it { should contain_yumrepo('uchiwa').with(:baseurl => 'http://repos.sensuapp.org/yum-unstable/el/6/$basearch/' )}
end

context 'override repo url' do
let(:params) { { :repo_source => 'http://repo.mydomain.com/yum' } }
it { should contain_yumrepo('sensu').with( :baseurl => 'http://repo.mydomain.com/yum') }
it { should contain_yumrepo('uchiwa').with( :baseurl => 'http://repo.mydomain.com/yum') }
end

context 'install_repo => false' do
let(:params) { { :install_repo => false } }

it { should_not contain_yumrepo('sensu') }
it { should_not contain_yumrepo('uchiwa') }

it { should contain_package('uchiwa').with(
:require => nil
Expand Down