Skip to content

Instantly share code, notes, and snippets.

@stevendanna
Created December 2, 2012 22:48
Show Gist options
  • Save stevendanna/4191403 to your computer and use it in GitHub Desktop.
Save stevendanna/4191403 to your computer and use it in GitHub Desktop.
Large, distracting error message produced by minitest-handler-cookbook
[ubuntu-10.04] [2012-11-27T21:16:49+00:00] INFO: Processing directory[/var/chef/minitest/test-kitchen] action create (minitest-handler::default line 50)
[ubuntu-10.04] [2012-11-27T21:16:49+00:00] INFO: directory[/var/chef/minitest/test-kitchen] created directory /var/chef/minitest/test-kitchen
[ubuntu-10.04] [2012-11-27T21:16:49+00:00] INFO: Processing cookbook_file[tests-test-kitchen-default] action create (minitest-handler::default line 53)
[ubuntu-10.04] [2012-11-27T21:16:49+00:00] ERROR: cookbook_file[tests-test-kitchen-default] (minitest-handler::default line 53) had an error: Cookbook 'test-kitchen' (1.0.0) does not contain a file at any of these locations:
[ubuntu-10.04] files/ubuntu-10.04/tests/minitest/default_test.rb
[ubuntu-10.04] files/ubuntu/tests/minitest/default_test.rb
[ubuntu-10.04] files/default/tests/minitest/default_test.rb; ignore_failure is set, continuing
[ubuntu-10.04]
[ubuntu-10.04] ================================================================================
[ubuntu-10.04] Error executing action `create` on resource 'cookbook_file[tests-test-kitchen-default]'
[ubuntu-10.04] ================================================================================
[ubuntu-10.04]
[ubuntu-10.04] Chef::Exceptions::FileNotFound
[ubuntu-10.04] ------------------------------
[ubuntu-10.04] Cookbook 'test-kitchen' (1.0.0) does not contain a file at any of these locations:
[ubuntu-10.04] files/ubuntu-10.04/tests/minitest/default_test.rb
[ubuntu-10.04] files/ubuntu/tests/minitest/default_test.rb
[ubuntu-10.04] files/default/tests/minitest/default_test.rb
[ubuntu-10.04]
[ubuntu-10.04] Resource Declaration:
[ubuntu-10.04] ---------------------
[ubuntu-10.04] # In /test-kitchen/cookbooks/minitest-handler/recipes/default.rb
[ubuntu-10.04]
[ubuntu-10.04] 53: cookbook_file "tests-#{cookbook_name}-#{recipe_name}" do
[ubuntu-10.04] 54: source "tests/minitest/#{recipe_name}_test.rb"
[ubuntu-10.04] 55: cookbook cookbook_name
[ubuntu-10.04] 56: path "#{node['minitest']['path']}/#{cookbook_name}/#{recipe_name}_test.rb"
[ubuntu-10.04] 57: ignore_failure true
[ubuntu-10.04] 58: end
[ubuntu-10.04] 59: # copy any helper files from the support directory
[ubuntu-10.04]
[ubuntu-10.04] Compiled Resource:
[ubuntu-10.04] ------------------
[ubuntu-10.04] # Declared in /test-kitchen/cookbooks/minitest-handler/recipes/default.rb:53:in `block in from_file'
[ubuntu-10.04]
[ubuntu-10.04] cookbook_file("tests-test-kitchen-default") do
[ubuntu-10.04] provider Chef::Provider::CookbookFile
[ubuntu-10.04] action "create"
[ubuntu-10.04] ignore_failure true
[ubuntu-10.04] retries 0
[ubuntu-10.04] retry_delay 2
[ubuntu-10.04] path "/var/chef/minitest/test-kitchen/default_test.rb"
[ubuntu-10.04] backup 5
[ubuntu-10.04] source "tests/minitest/default_test.rb"
[ubuntu-10.04] cookbook "test-kitchen"
[ubuntu-10.04] cookbook_name :"minitest-handler"
[ubuntu-10.04] recipe_name "default"
[ubuntu-10.04] end
[ubuntu-10.04]
[ubuntu-10.04] [2012-11-27T21:16:49+00:00] INFO: Processing remote_directory[tests-support-test-kitchen-default] action create (minitest-handler::default line 60)
[ubuntu-10.04] [2012-11-27T21:16:49+00:00] INFO: remote_directory[tests-support-test-kitchen-default] created directory /var/chef/minitest/test-kitchen/support
[ubuntu-10.04] [2012-11-27T21:16:49+00:00] ERROR: remote_directory[tests-support-test-kitchen-default] (minitest-handler::default line 60) had an error: cookbook test-kitchen has no directory files/default/tests/minitest/support; ignore_failure is set, continuing
[ubuntu-10.04]
[ubuntu-10.04] ================================================================================
[ubuntu-10.04] Error executing action `create` on resource 'remote_directory[tests-support-test-kitchen-default]'
[ubuntu-10.04] ================================================================================
[ubuntu-10.04]
[ubuntu-10.04] Chef::Exceptions::FileNotFound
[ubuntu-10.04] ------------------------------
[ubuntu-10.04] cookbook test-kitchen has no directory files/default/tests/minitest/support
[ubuntu-10.04]
[ubuntu-10.04] Resource Declaration:
[ubuntu-10.04] ---------------------
[ubuntu-10.04] # In /test-kitchen/cookbooks/minitest-handler/recipes/default.rb
[ubuntu-10.04]
[ubuntu-10.04] 60: remote_directory "tests-support-#{cookbook_name}-#{recipe_name}" do
[ubuntu-10.04] 61: source "tests/minitest/support"
[ubuntu-10.04] 62: cookbook cookbook_name
[ubuntu-10.04] 63: path "#{node['minitest']['path']}/#{cookbook_name}/support"
[ubuntu-10.04] 64: recursive true
[ubuntu-10.04] 65: ignore_failure true
[ubuntu-10.04] 66: end
[ubuntu-10.04] 67: end
[ubuntu-10.04]
[ubuntu-10.04] Compiled Resource:
[ubuntu-10.04] ------------------
[ubuntu-10.04] # Declared in /test-kitchen/cookbooks/minitest-handler/recipes/default.rb:60:in `block in from_file'
[ubuntu-10.04]
[ubuntu-10.04] remote_directory("tests-support-test-kitchen-default") do
[ubuntu-10.04] provider Chef::Provider::RemoteDirectory
[ubuntu-10.04] action :create
[ubuntu-10.04] ignore_failure true
[ubuntu-10.04] retries 0
[ubuntu-10.04] retry_delay 2
[ubuntu-10.04] path "/var/chef/minitest/test-kitchen/support"
[ubuntu-10.04] recursive true
[ubuntu-10.04] source "tests/minitest/support"
[ubuntu-10.04] files_backup 5
[ubuntu-10.04] files_mode 420
[ubuntu-10.04] overwrite true
[ubuntu-10.04] cookbook "test-kitchen"
[ubuntu-10.04] cookbook_name :"minitest-handler"
[ubuntu-10.04] recipe_name "default"
[ubuntu-10.04] end
[ubuntu-10.04]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment