-describe 'apt class' do
-
- context 'reset' do
- it 'fixes the sources.list' do
- shell('cp /etc/apt/sources.list /tmp')
- end
- end
-
- context 'all the things' do
- it 'should work with no errors' do
- pp = <<-EOS
- if $::lsbdistcodename == 'lucid' {
- $sources = undef
- } else {
- $sources = {
- 'puppetlabs' => {
- 'ensure' => present,
- 'location' => 'http://apt.puppetlabs.com',
- 'repos' => 'main',
- 'key' => {
- 'id' => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
- 'server' => 'hkps.pool.sks-keyservers.net',
- },
+everything_everything_pp = <<-MANIFEST
+ $sources = {
+ 'puppetlabs' => {
+ 'ensure' => present,
+ 'location' => 'http://apt.puppetlabs.com',
+ 'repos' => 'main',
+ 'key' => {
+ 'id' => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
+ 'server' => 'pool.sks-keyservers.net',