Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-403

Fix clojure unit tests in preparation for ruby/puppet update

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Puppet Server
    • Labels:

      Description

      This ticket is preparation for the puppet-server 2.0 release. At that point we'll lock our submodule to the puppet 4.0 tag.

      We know ahead of time that lein -U test :all is failing with the current HEAD of the master branch of puppet. We need to resolve those test failures prior to, or during, the submodule update.

      Here's what the failure looks like:

      $ lein -U test :all
       
      lein test puppetlabs.puppetserver.bootstrap-int-test
      2015-02-27 15:02:20,646 ERROR [puppet-server] Puppet Cannot create /Users/jeff/.puppet/code; parent directory /Users/jeff/.puppet does not exist
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/type/file/ensure.rb:84:in `set_directory'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/property.rb:427:in `set'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/property.rb:501:in `sync'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/type/file/ensure.rb:183:in `sync'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/transaction/resource_harness.rb:209:in `sync'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/transaction/resource_harness.rb:81:in `perform_changes'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/transaction/resource_harness.rb:20:in `evaluate'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/transaction.rb:204:in `apply'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/transaction.rb:219:in `eval_resource'
      org/jruby/RubyMethod.java:128:in `call'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/transaction.rb:147:in `evaluate'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/util.rb:284:in `thinmark'
      /Users/jeff/.m2/repository/org/jruby/jruby-stdlib/1.7.18/jruby-stdlib-1.7.18.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in `realtime'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/util.rb:283:in `thinmark'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/transaction.rb:147:in `evaluate'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/transaction.rb:138:in `evaluate'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/resource/catalog.rb:178:in `apply'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/util/log.rb:157:in `with_destination'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/transaction/report.rb:107:in `as_logging_destination'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/resource/catalog.rb:177:in `apply'
      /workspace/serious/src/puppet-server/ruby/puppet/lib/puppet/settings.rb:938:in `use'
      /workspace/serious/src/puppet-server/src/ruby/puppet-server-lib/puppet/server/puppet_config.rb:38:in `initialize_puppet'
      /workspace/serious/src/puppet-server/src/ruby/puppet-server-lib/puppet/server/master.rb:27:in `initialize'
      jruby_puppet_core.clj:207:in `invoke'
      jruby_puppet_core.clj:172:in `invoke'
      jruby_puppet_agents.clj:54:in `invoke'
      jruby_puppet_agents.clj:39:in `invoke'
      jruby_puppet_agents.clj:117:in `invoke'
      internal.clj:247:in `invoke'
      internal.clj:231:in `invoke'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jeff Jeff McCune
                QA Contact:
                Erik Dasher
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support