Ignore:
Timestamp:
Jul 31, 2017, 6:42:27 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
fc9d514
Parents:
eb1ccd6
Message:

Updated apt and stdlib module to newer versions (stdlib version used by current ntp module)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/puppetcode/environments/gnuboat/modules/apt/spec/defines/pin_spec.rb

    reb1ccd6 rbe0859f  
    44    'class { "apt": }'
    55  end
    6   let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian', :lsbdistcodename => 'wheezy', :puppetversion   => Puppet.version, } }
     6  let(:facts) { {
     7    :os => { :family => 'Debian', :name => 'Debian', :release => { :major => '7', :full => '7.0' }},
     8    :lsbdistid       => 'Debian',
     9    :osfamily        => 'Debian',
     10    :lsbdistcodename => 'wheezy',
     11    :puppetversion   => Puppet.version,
     12  } }
    713  let(:title) { 'my_pin' }
    814
    915  context 'defaults' do
    1016    it { is_expected.to contain_apt__setting("pref-my_pin").with_content(/Explanation: : my_pin\nPackage: \*\nPin: release a=my_pin\nPin-Priority: 0\n/)}
    11     it { is_expected.to contain_apt__setting("pref-my_pin") }
    1217  end
    1318
    … …  
    1621      {
    1722        'packages' => 'vim',
    18         'version'  => '1',
     23        'version'  => "1",
    1924      }
    2025    end
    2126    it { is_expected.to contain_apt__setting("pref-my_pin").with_content(/Explanation: : my_pin\nPackage: vim\nPin: version 1\nPin-Priority: 0\n/)}
    22     it { is_expected.to contain_apt__setting("pref-my_pin") }
    2327  end
    2428
    … …  
    3135    end
    3236    it { is_expected.to contain_apt__setting("pref-my_pin").with_content(/Explanation: : my_pin\nPackage: vim\nPin: origin test\nPin-Priority: 0\n/)}
    33     it { is_expected.to contain_apt__setting("pref-my_pin") }
    3437  end
    3538
    … …  
    8285        expect {
    8386          subject.call
    84         }.to raise_error(Puppet::Error, /Only integers are allowed/)
     87        }.to raise_error(Puppet::Error, /expects an Integer value, got String/)
    8588      end
    8689    end
Note: See TracChangeset for help on using the changeset viewer.