[PDB-1052] Puppet 4: Terminus & Environment related rspec testing failures Created: 2014/12/05  Updated: 2015/05/05  Resolved: 2015/01/07

Status: Closed
Project: PuppetDB
Component/s: None
Affects Version/s: PDB 2.2.2
Fix Version/s: PDB 2.3.0, PDB 3.0.0

Type: Bug Priority: Normal
Reporter: Ken Barber Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Epic Link: PDB Puppet 4 Breaking changes
Story Points: 3
Sprint: PuppetDB 2014-12-31, PuppetDB 2015-01-14
QA Contact: Kurt Wall

 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.



 Comments   
Comment by Ken Barber [ 2015/01/06 ]

Reviewing

Generated at Sun Jun 16 15:33:51 PDT 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.