Bug #4863

Missing "require 'webrick'" causes nondeterministic spec failures

Added by Paul Berry over 1 year ago. Updated over 1 year ago.

Status:Closed Start date:09/28/2010
Priority:Normal Due date:
Assignee:Paul Berry % Done:

100%

Category:testing
Target version:2.6.2
Affected Puppet version:2.6.1 Branch:http://github.com/stereotype441/puppet/tree/ticket/2.6.x/4863
Keywords:
Votes: 0

Description

The following spec tests fail when run singly, because they are missing “require ‘webrick’”.

spec/integration/indirector/bucket_file/rest_spec.rb
spec/integration/indirector/certificate/rest_spec.rb
spec/integration/indirector/certificate_request/rest_spec.rb
spec/integration/indirector/certificate_revocation_list/rest_spec.rb
spec/integration/indirector/report/rest_spec.rb

Depending on the order in which “rake spec” discovers spec files (which is nondeterministic) this can cause a complete run of “rake spec” to fail with the message:

uninitialized constant WEBrick (NameError)

History

Updated by Paul Berry over 1 year ago

  • Status changed from Accepted to In Topic Branch Pending Review
  • % Done changed from 0 to 100
  • Branch set to http://github.com/stereotype441/puppet/tree/ticket/2.6.x/4863

Fixed by adding a require

Updated by Markus Roberts over 1 year ago

  • Status changed from In Topic Branch Pending Review to Ready For Checkin

Updated by Markus Roberts over 1 year ago

  • Status changed from Ready For Checkin to Closed

Pushed to 2.6.x as commit:d12e477326a645f75cc58cc0ad7e4fd3ec7eee23

Also available in: Atom PDF