X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Funit%2Fpuppet%2Ftype%2Fapt_key_spec.rb;h=9c2dd91a4f5faf72fc84f31e108ff0c73dbf8542;hb=a005a1067a3068ee28e555a76b07174a61c86fc5;hp=7cd80c689f5e7b63b9ede57bca22f890f7393f80;hpb=3760d350a8341b8726e9be5c8273a529d245285a;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 7cd80c6..9c2dd91 100644 --- a/spec/unit/puppet/type/apt_key_spec.rb +++ b/spec/unit/puppet/type/apt_key_spec.rb @@ -136,6 +136,13 @@ describe Puppet::Type::type(:apt_key) do )}.to_not raise_error end + it 'allows the http URI with username and password' do + expect { Puppet::Type.type(:apt_key).new( + :id => '4BD6EC30', + :source => 'http://testme:Password2@pgp.mit.edu' + )}.to_not raise_error + end + it 'allows the https URI scheme in source' do expect { Puppet::Type.type(:apt_key).new( :id => 'EF8D349F',