Added modules
This commit is contained in:
parent
c53c931217
commit
59ec520742
646 changed files with 35182 additions and 0 deletions
27
modules/apt/spec/classes/params_spec.rb
Normal file
27
modules/apt/spec/classes/params_spec.rb
Normal file
|
@ -0,0 +1,27 @@
|
|||
require 'spec_helper'
|
||||
describe 'apt::params', :type => :class do
|
||||
let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } }
|
||||
let (:title) { 'my_package' }
|
||||
|
||||
it { should contain_apt__params }
|
||||
|
||||
# There are 4 resources in this class currently
|
||||
# there should not be any more resources because it is a params class
|
||||
# The resources are class[apt::params], class[main], class[settings], stage[main]
|
||||
it "Should not contain any resources" do
|
||||
subject.resources.size.should == 4
|
||||
end
|
||||
|
||||
describe "With unknown lsbdistid" do
|
||||
|
||||
let(:facts) { { :lsbdistid => 'CentOS' } }
|
||||
let (:title) { 'my_package' }
|
||||
|
||||
it do
|
||||
expect {
|
||||
should compile
|
||||
}.to raise_error(Puppet::Error, /Unsupported lsbdistid/)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue