X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Funit%2Fpuppet%2Ftype%2Fapt_key_spec.rb;h=57aeb863f862c26fd90f8356012495a20c687edb;hb=553e3004ba3468a0a9fd316bd2141a8cc452e897;hp=e661ba1bdbb5ea8ee1a809a36ac70dbac48846e7;hpb=febda27623b2033a1401c8c55e575bfba8997c85;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/unit/puppet/type/apt_key_spec.rb b/spec/unit/puppet/type/apt_key_spec.rb index e661ba1..57aeb86 100644 --- a/spec/unit/puppet/type/apt_key_spec.rb +++ b/spec/unit/puppet/type/apt_key_spec.rb @@ -82,7 +82,7 @@ describe Puppet::Type::type(:apt_key) do resource[:source].should eq 'http://apt.puppetlabs.com/pubkey.gpg' end end - + context 'with content' do let(:resource) { Puppet::Type.type(:apt_key).new( :id => '4BD6EC30', @@ -93,7 +93,7 @@ describe Puppet::Type::type(:apt_key) do resource[:content].should eq 'http://apt.puppetlabs.com/pubkey.gpg' end end - + context 'with keyserver' do let(:resource) { Puppet::Type.type(:apt_key).new( :id => '4BD6EC30', @@ -143,6 +143,13 @@ describe Puppet::Type::type(:apt_key) do )}.to_not raise_error end + it 'allows the https URI with username and password' do + expect { Puppet::Type.type(:apt_key).new( + :id => '4BD6EC30', + :source => 'https://testme:Password2@pgp.mit.edu' + )}.to_not raise_error + end + it 'allows the ftp URI scheme in source' do expect { Puppet::Type.type(:apt_key).new( :id => '4BD6EC30',