source: src/puppetcode/environments/test/modules/apt/spec/classes/params_spec.rb@ 3f77ad0

0.5 app-cordova debian/bullseye debian/jessie
Last change on this file since 3f77ad0 was 1c22429, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago
  • gnuboat_epd adds the apt repository from gnuboat to install epd-fuse package
  • Property mode set to 100644
File size: 917 bytes
Line 
1require 'spec_helper'
2describe 'apt::params', :type => :class do
3 let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion => Puppet.version, } }
4 let (:title) { 'my_package' }
5
6 it { is_expected.to contain_apt__params }
7
8 # There are 4 resources in this class currently
9 # there should not be any more resources because it is a params class
10 # The resources are class[apt::params], class[main], class[settings], stage[main]
11 it "Should not contain any resources" do
12 expect(subject.call.resources.size).to eq(4)
13 end
14
15 describe "With lsb-release not installed" do
16 let(:facts) { { :osfamily => 'Debian', :puppetversion => Puppet.version, } }
17 let (:title) { 'my_package' }
18
19 it do
20 expect {
21 subject.call
22 }.to raise_error(Puppet::Error, /Unable to determine lsbdistid, please install lsb-release first/)
23 end
24 end
25end
Note: See TracBrowser for help on using the repository browser.