it 'content is not set' do
expect(resource[:content]).to eq nil
end
+
+ it 'refresh is not set' do
+ expect(resource[:refresh]).to eq nil
+ end
end
context 'with a lowercase 32bit key id' do
}.to raise_error(%r{content and source are mutually exclusive})
end
+ it 'raises an error if refresh => true and ensure => absent' do
+ expect {
+ Puppet::Type.type(:apt_key).new(id: 'EF8D349F',
+ source: 'http://apt.puppetlabs.com/pubkey.gpg',
+ ensure: :absent,
+ refresh: :true)
+ }.to raise_error(%r{ensure => absent and refresh => true are mutually exclusive})
+ end
+
it 'raises an error if a weird length key is used' do
expect {
Puppet::Type.type(:apt_key).new(id: 'FEF8D349F',