Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4427

Rake Spec tests fail due to missing dependencies


    • Template:
    • Story Points:


      When running rake/rspec tests, they fail due to an inability to find the plist gem. This only happens on 4.0.0. A good test case is the puppetlabs-tomcat module. I was able to take a baseline puppet VM (same one specified in my environment); get all of the gems installed; when i ran:

      rake spec

      I got this error:

      Could not autoload puppet/type/user: Could not autoload puppet/provider/user/directoryservice: cannot load such file – plist on node localhost.localdomain.

      If you change the version of puppet to be max of 3.7.4; it succeeds (plist is coming from facter/utils).

      If you leave the version of puppet to 4.0.0 and install plist manually, the test passes, but with some warnings (other errors appear but i'm not seeing them on my module):

      /usr/share/ruby/vendor_ruby/facter/util/plist/parser.rb:67: warning: already initialized constant Plist::StreamParser::TEXT
      /usr/local/share/gems/gems/plist-3.1.0/lib/plist/parser.rb:75: warning: previous definition of TEXT was here
      /usr/share/ruby/vendor_ruby/facter/util/plist/parser.rb:68: warning: already initialized constant Plist::StreamParser::XMLDECL_PATTERN
      /usr/local/share/gems/gems/plist-3.1.0/lib/plist/parser.rb:76: warning: previous definition of XMLDECL_PATTERN was here
      /usr/share/ruby/vendor_ruby/facter/util/plist/parser.rb:69: warning: already initialized constant Plist::StreamParser::DOCTYPE_PATTERN
      /usr/local/share/gems/gems/plist-3.1.0/lib/plist/parser.rb:77: warning: previous definition of DOCTYPE_PATTERN was here
      /usr/share/ruby/vendor_ruby/facter/util/plist/parser.rb:70: warning: already initialized constant Plist::StreamParser::COMMENT_START
      /usr/local/share/gems/gems/plist-3.1.0/lib/plist/parser.rb:78: warning: previous definition of COMMENT_START was here
      /usr/share/ruby/vendor_ruby/facter/util/plist/parser.rb:71: warning: already initialized constant Plist::StreamParser::COMMENT_END
      /usr/local/share/gems/gems/plist-3.1.0/lib/plist/parser.rb:79: warning: previous definition of COMMENT_END was here
      /usr/share/ruby/vendor_ruby/facter/util/plist.rb:21: warning: already initialized constant Plist::VERSION
      /usr/local/share/gems/gems/plist-3.1.0/lib/plist.rb:20: warning: previous definition of VERSION was here

      i don't know what all is affected by this, i just know this currently causes my tests to fail when testing against 4.0;

      Commit which changed the configs: https://github.com/puppetlabs/puppet/commit/d5b3c48fe0a297aa392020622b6089a7508851a5




            • Assignee:
              bstopp Bryan Stopp
              QA Contact:
              Eric Thompson
            • Votes:
              0 Vote for this issue
              7 Start watching this issue


              • Created:

                Zendesk Support