summaryrefslogtreecommitdiff
path: root/files/puppet/modules/pixelated/spec/classes/apt_spec.rb
blob: df5c33fce017b3fac4ed3454fbc079eec1d74b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'spec_helper'

describe 'pixelated::apt' do
  let(:facts) do
      {
        :operatingsystem => 'Debian',
        :lsbdistid       => 'Debian',
        :lsbdistcodename => 'jessie',
      }
  end

  let(:pre_condition) { [
    "class apt {}",
    "define apt::sources_list($content='deb url') {}",
  ] }

  it { should contain_apt__sources_list('pixelated.list') }
  it { should contain_file('/srv/leap/0x287A1542472DC0E3_packages@pixelated-project.org.asc') }
  it { should contain_exec('add_pixelated_key') }

end