someara / chef-docker-tutorial

chef-docker-tutorial
1 stars 1 forks source link

Can't get kitchen test to run (missing inspec & berkshelf) #2

Open arthurzenika opened 8 years ago

arthurzenika commented 8 years ago
arthur@:~/local/chef-docker-tutorial$ kitchen test
-----> Starting Kitchen (v1.5.0)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'inspec' verifier from the load path. Please ensure that your transport is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

commented out the inspec part in .kitchen.yml gives me a different error

arthur@:~/local/chef-docker-tutorial$ kitchen test
-----> Starting Kitchen (v1.5.0)
!!!!!! The `berkshelf' gem is missing and must be installed or cannot be properly activated. Run `gem install berkshelf` or add the following to your Gemfile if you are using Bundler: `gem 'berkshelf'`.
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::UserError
>>>>>> Message: Could not load or activate Berkshelf (cannot load such file -- berkshelf)
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

This is after installing chefdk and running

sorry, i'm a kitchen/chef/gem/ruby newbie

srjayep commented 8 years ago

Did you try , gem 'kitchen-inspec' for inspec error and use_vagrant_berkshelf_plugin: true in .kitchen.yml?