Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-1052

Puppet 4: Terminus & Environment related rspec testing failures

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PDB 2.2.2
    • Fix Version/s: PDB 2.3.0, PDB 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      There is a bug in our rspec tests on our stable & master branches testing against puppet 'master' (ie. puppet 4):

      Failures:
       
        1) Puppet::Resource::Catalog::Puppetdb#save should POST the catalog command as a JSON string
           Failure/Error: subject.save(Puppet::Resource::Catalog.indirection.request(:save, catalog.name, catalog, options))
           Puppet::Environments::EnvironmentNotFound:
             Could not find a directory environment named 'my_environment' anywhere in the path: /tmp/environments20141205-2855-qx6e51. Does the directory exist?
           # ./spec/unit/indirector/catalog/puppetdb_spec.rb:36:in `save'
           # ./spec/unit/indirector/catalog/puppetdb_spec.rb:51:in `block (3 levels) in <top (required)>'
       
        2) Puppet::Resource::Catalog::Puppetdb#save should log a deprecation warning if one is returned from PuppetDB
           Failure/Error: subject.save(Puppet::Resource::Catalog.indirection.request(:save, catalog.name, catalog, options))
           Puppet::Environments::EnvironmentNotFound:
             Could not find a directory environment named 'my_environment' anywhere in the path: /tmp/environments20141205-2855-qx6e51. Does the directory exist?
           # ./spec/unit/indirector/catalog/puppetdb_spec.rb:36:in `save'
           # ./spec/unit/indirector/catalog/puppetdb_spec.rb:63:in `block (3 levels) in <top (required)>'
       
        3) Puppet::Node::Facts::Puppetdb#save should POST the facts as a JSON string
           Failure/Error: subject.save(Puppet::Node::Facts.indirection.request(:save, facts.name, facts, options))
           Puppet::Environments::EnvironmentNotFound:
             Could not find a directory environment named 'my_environment' anywhere in the path: /tmp/environments20141205-2855-qx6e51. Does the directory exist?
           # ./spec/unit/indirector/facts/puppetdb_spec.rb:36:in `save'
           # ./spec/unit/indirector/facts/puppetdb_spec.rb:58:in `block (3 levels) in <top (required)>'
       
        4) Puppet::Node::Facts::Puppetdb#save should POST the trusted data we tell it to
           Failure/Error: subject.save(Puppet::Node::Facts.indirection.request(:save, facts.name, facts, options))
           Puppet::Environments::EnvironmentNotFound:
             Could not find a directory environment named 'my_environment' anywhere in the path: /tmp/environments20141205-2855-qx6e51. Does the directory exist?
           # ./spec/unit/indirector/facts/puppetdb_spec.rb:36:in `save'
           # ./spec/unit/indirector/facts/puppetdb_spec.rb:87:in `block (3 levels) in <top (required)>'
       
        5) Puppet::Node::Facts::Puppetdb#save should retain integer type when submitting
           Failure/Error: subject.save(Puppet::Node::Facts.indirection.request(:save, facts.name, facts, options))
           Puppet::Environments::EnvironmentNotFound:
             Could not find a directory environment named 'my_environment' anywhere in the path: /tmp/environments20141205-2855-qx6e51. Does the directory exist?
           # ./spec/unit/indirector/facts/puppetdb_spec.rb:36:in `save'
           # ./spec/unit/indirector/facts/puppetdb_spec.rb:99:in `block (3 levels) in <top (required)>'
      

      Sample failure is here: https://jenkins.puppetlabs.com/job/PuppetDB-Specs-master/4/label=unit,puppet_branch=master,ruby=ruby-1.9.3-p484/console


      QA Risk Assessment

      N/A for testing tickets.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                ken Ken Barber
                QA Contact:
                Kurt Wall
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: