Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

knife cookbook test fails... #81

Closed
wants to merge 1 commit into from

2 participants

@sethvargo

When I run:

bundle exec knife cookbook test COOKBOOK

I get:

/var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/knife-essentials-0.8.1/lib/chef/knife/raw_essentials.rb:7:in `<class:Raw>': uninitialized constant ChefFS (NameError)
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/knife-essentials-0.8.1/lib/chef/knife/raw_essentials.rb:6:in `<class:Knife>'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/knife-essentials-0.8.1/lib/chef/knife/raw_essentials.rb:4:in `<class:Chef>'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/knife-essentials-0.8.1/lib/chef/knife/raw_essentials.rb:3:in `<top (required)>'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/chef-10.16.4/lib/chef/knife/core/subcommand_loader.rb:37:in `load'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/chef-10.16.4/lib/chef/knife/core/subcommand_loader.rb:37:in `block in load_commands'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/chef-10.16.4/lib/chef/knife/core/subcommand_loader.rb:37:in `each'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/chef-10.16.4/lib/chef/knife/core/subcommand_loader.rb:37:in `load_commands'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/chef-10.16.4/lib/chef/knife.rb:114:in `load_commands'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/chef-10.16.4/lib/chef/knife.rb:162:in `run'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/chef-10.16.4/lib/chef/application/knife.rb:123:in `run'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/gems/chef-10.16.4/bin/knife:25:in `<top (required)>'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/bin/knife:23:in `load'
    from /var/lib/jenkins/workspace/chef-hosted/vendor/bundle/ruby/1.9.1/bin/knife:23:in `<main>'
  • Ruby 1.9.3
  • Chef 10.16.4
  • KE 0.8.1
@jkeiser
Owner

sigh yeah, that would be a straight up bug. I'll push out a fix in the next 20 minutes or so (just finishing up fixing another bug I found while testing).

@jkeiser
Owner

The issue, if you are so inclined, is that line 7 of that file is extraneous and should be removed.

@sethvargo

I can handle it. I'll PR in a few.

@sethvargo

There ya go :smile:

@jkeiser
Owner

Doh! Accidentally checked in a fix before I tested at b66f16b ... but it does the same thing :) I also went ahead and release 0.8.3 so you could gem install. Let me know how it goes :)

@jkeiser jkeiser closed this
@sethvargo sethvargo deleted the branch
@sethvargo

awesome, that fixed it! Thanks John!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 5, 2013
  1. @sethvargo

    remove extraneous line

    sethvargo authored
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 1 deletion.
  1. +0 −1  lib/chef/knife/raw_essentials.rb
View
1  lib/chef/knife/raw_essentials.rb
@@ -4,7 +4,6 @@ class Chef
class Knife
remove_const(:Raw) if const_defined?(:Raw) && Raw.name == 'Chef::Knife::Raw' # override Chef's version
class Raw < Chef::Knife
- ChefFS = ::ChefFS
banner "knife raw REQUEST_PATH"
option :method,
Something went wrong with that request. Please try again.