:lsbdistid => 'Debian',
:osfamily => 'Debian',
:lsbdistcodename => 'wheezy',
+ :puppetversion => '3.5.0',
}
end
it { is_expected.to contain_apt__source('backports').with({
:lsbdistid => 'Debian',
:osfamily => 'Debian',
:lsbdistcodename => 'squeeze',
+ :puppetversion => '3.5.0',
}
end
it { is_expected.to contain_apt__source('backports').with({
:lsbdistid => 'Ubuntu',
:osfamily => 'Debian',
:lsbdistcodename => 'trusty',
+ :puppetversion => '3.5.0',
}
end
it { is_expected.to contain_apt__source('backports').with({
:lsbdistid => 'Ubuntu',
:osfamily => 'Debian',
:lsbdistcodename => 'trusty',
+ :puppetversion => '3.5.0',
}
end
let(:params) do
:lsbdistid => 'Ubuntu',
:osfamily => 'Debian',
:lsbdistcodename => 'trusty',
+ :puppetversion => '3.5.0',
}
end
let(:params) do
:lsbdistid => 'linuxmint',
:osfamily => 'Debian',
:lsbdistcodename => 'qiana',
+ :puppetversion => '3.5.0',
}
end
context 'sets all the needed things' do
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /If not on Debian or Ubuntu, you must explicitly pass location, release, repos, and key/)
end
end
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /If not on Debian or Ubuntu, you must explicitly pass location, release, repos, and key/)
end
end
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /If not on Debian or Ubuntu, you must explicitly pass location, release, repos, and key/)
end
end
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /If not on Debian or Ubuntu, you must explicitly pass location, release, repos, and key/)
end
end
:lsbdistid => 'Ubuntu',
:osfamily => 'Debian',
:lsbdistcodename => 'trusty',
+ :puppetversion => '3.5.0',
}
end
context 'invalid location' do
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /is not a string/)
end
end
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /is not a string/)
end
end
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /is not a string/)
end
end
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /is not a string/)
end
end
end
it do
expect {
- is_expected.to compile
+ subject.call
}.to raise_error(Puppet::Error, /pin must be either a string, number or hash/)
end
end