Skip to content

Commit 557748d

Browse files
author
Patrick Robinson
committed
Fix test
1 parent 6d3cbc2 commit 557748d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/classes/puppet_repo_puppetlabs_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@
1010
:lsbdistid => 'Ubuntu',
1111
}
1212
end
13+
let(:key_hash) { {
14+
'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
15+
'server' => 'pgp.mit.edu',
16+
} }
1317
it 'should contain puppetlabs apt repos' do
1418
should contain_apt__source('puppetlabs').with(
1519
:repos => 'main',
1620
:location => 'http://apt.puppetlabs.com',
17-
:key => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30'
21+
:key => key_hash,
1822
)
1923
should contain_apt__source('puppetlabs-deps').with(
2024
:repos => 'dependencies',
2125
:location => 'http://apt.puppetlabs.com',
22-
:key => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30'
26+
:key => key_hash,
2327
)
2428
end
2529
end

0 commit comments

Comments
 (0)