Merge pull request #651 from nhinds/MODULES-4265-ubuntu-security-updates
[puppet-modules/puppetlabs-apt.git] / spec / unit / puppet / type / apt_key_spec.rb
index 7cd80c689f5e7b63b9ede57bca22f890f7393f80..9c2dd91a4f5faf72fc84f31e108ff0c73dbf8542 100644 (file)
@@ -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',