Skip to content

Instantly share code, notes, and snippets.

@tas50
Created October 13, 2015 00:04
Show Gist options
  • Save tas50/6dc827b0c23b8608e399 to your computer and use it in GitHub Desktop.
Save tas50/6dc827b0c23b8608e399 to your computer and use it in GitHub Desktop.
MBP_tsmith:~/dev/community_cookbooks/ruby_rbenv rspec
rbenv_global provider
with a fully configured resource
[2015-10-12T16:52:26-07:00] WARN: You declared a new resource #<Class:0x007fdc1c9d37d0> for resource rbenv_gem, but it comes alphabetically after LWRP resource rbenv_gem from cookbook rbenv and has the same filters ({}), so it will not be used. Use override: true if you want to use it for rbenv_gem.
[2015-10-12T16:52:26-07:00] WARN: RbenvGem already exists! Deprecation class overwrites LWRP resource rbenv_gem from cookbook rbenv
[2015-10-12T16:52:26-07:00] WARN: You declared a new resource #<Class:0x007fdc1c9abb68> for resource rbenv_ruby, but it comes alphabetically after LWRP resource rbenv_ruby from cookbook rbenv and has the same filters ({}), so it will not be used. Use override: true if you want to use it for rbenv_ruby.
[2015-10-12T16:52:26-07:00] WARN: RbenvRuby already exists! Deprecation class overwrites LWRP resource rbenv_ruby from cookbook rbenv
================================================================================
Error executing action `create` on resource 'rbenv_global[9.1.2] (claire)'
================================================================================
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for rbenv_global[9.1.2] (claire) on chefspec version 0.6.1
Resource Declaration:
---------------------
# In /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_global_full.rb
1: rbenv_global '9.1.2' do
2: user 'claire'
3: root_path '/mnt/roobies'
4: action :create
5: end
Compiled Resource:
------------------
# Declared in /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_global_full.rb:1:in `from_file'
rbenv_global("9.1.2") do
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :rbenv_global
cookbook_name :fixtures
recipe_name "rbenv_global_full"
user "claire"
root_path "/mnt/roobies"
end
runs an rbenv_script (FAILED - 1)
with a default configured resource
================================================================================
Error executing action `create` on resource 'rbenv_global[1.6.5] (system)'
================================================================================
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for rbenv_global[1.6.5] (system) on chefspec version 0.6.1
Resource Declaration:
---------------------
# In /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_global_defaults.rb
1: rbenv_global '1.6.5'
Compiled Resource:
------------------
# Declared in /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_global_defaults.rb:1:in `from_file'
rbenv_global("1.6.5") do
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :rbenv_global
cookbook_name :fixtures
recipe_name "rbenv_global_defaults"
end
runs an rbenv_script (FAILED - 2)
rbenv_plugin provider
with a fully configured resource
================================================================================
Error executing action `install` on resource 'rbenv_plugin[rbenv-coolness] (sam)'
================================================================================
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for rbenv_plugin[rbenv-coolness] (sam) on chefspec version 0.6.1
Resource Declaration:
---------------------
# In /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_plugin_full.rb
1: rbenv_plugin 'rbenv-coolness' do
2: git_url 'https://example.com/rbenv-coolness.git'
3: git_ref 'feature-branch'
4: root_path '/tmp/rootness'
5: user 'sam'
6: action :install
7: end
Compiled Resource:
------------------
# Declared in /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_plugin_full.rb:1:in `from_file'
rbenv_plugin("rbenv-coolness") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :rbenv_plugin
cookbook_name :fixtures
recipe_name "rbenv_plugin_full"
git_url "https://example.com/rbenv-coolness.git"
git_ref "feature-branch"
root_path "/tmp/rootness"
user "sam"
end
creates the parent directory for plugins (FAILED - 3)
================================================================================
Error executing action `install` on resource 'rbenv_plugin[rbenv-coolness] (sam)'
================================================================================
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for rbenv_plugin[rbenv-coolness] (sam) on chefspec version 0.6.1
Resource Declaration:
---------------------
# In /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_plugin_full.rb
1: rbenv_plugin 'rbenv-coolness' do
2: git_url 'https://example.com/rbenv-coolness.git'
3: git_ref 'feature-branch'
4: root_path '/tmp/rootness'
5: user 'sam'
6: action :install
7: end
Compiled Resource:
------------------
# Declared in /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_plugin_full.rb:1:in `from_file'
rbenv_plugin("rbenv-coolness") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :rbenv_plugin
cookbook_name :fixtures
recipe_name "rbenv_plugin_full"
git_url "https://example.com/rbenv-coolness.git"
git_ref "feature-branch"
root_path "/tmp/rootness"
user "sam"
end
downloads the plugin with git (FAILED - 4)
with a minimally configured resource
================================================================================
Error executing action `install` on resource 'rbenv_plugin[rbenv-root-default] (system)'
================================================================================
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for rbenv_plugin[rbenv-root-default] (system) on chefspec version 0.6.1
Resource Declaration:
---------------------
# In /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_plugin_defaults.rb
1: rbenv_plugin 'rbenv-root-default' do
2: git_url 'foo.git'
3: end
Compiled Resource:
------------------
# Declared in /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_plugin_defaults.rb:1:in `from_file'
rbenv_plugin("rbenv-root-default") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :rbenv_plugin
cookbook_name :fixtures
recipe_name "rbenv_plugin_defaults"
git_url "foo.git"
end
creates the parent directory for plugins (FAILED - 5)
================================================================================
Error executing action `install` on resource 'rbenv_plugin[rbenv-root-default] (system)'
================================================================================
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for rbenv_plugin[rbenv-root-default] (system) on chefspec version 0.6.1
Resource Declaration:
---------------------
# In /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_plugin_defaults.rb
1: rbenv_plugin 'rbenv-root-default' do
2: git_url 'foo.git'
3: end
Compiled Resource:
------------------
# Declared in /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_plugin_defaults.rb:1:in `from_file'
rbenv_plugin("rbenv-root-default") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :rbenv_plugin
cookbook_name :fixtures
recipe_name "rbenv_plugin_defaults"
git_url "foo.git"
end
downloads the plugin with git (FAILED - 6)
rbenv_rehash provider
with a fully configured resource
================================================================================
Error executing action `run` on resource 'rbenv_rehash[for-jdoe]'
================================================================================
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for rbenv_rehash[for-jdoe] on chefspec version 0.6.1
Resource Declaration:
---------------------
# In /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_rehash_full.rb
1: rbenv_rehash 'for-jdoe' do
2: user 'jdoe'
3: root_path '/rooty'
4: end
Compiled Resource:
------------------
# Declared in /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_rehash_full.rb:1:in `from_file'
rbenv_rehash("for-jdoe") do
action [:run]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :rbenv_rehash
cookbook_name :fixtures
recipe_name "rbenv_rehash_full"
user "jdoe"
root_path "/rooty"
end
runs an rbenv_script (FAILED - 7)
with a defaults configured resource
================================================================================
Error executing action `run` on resource 'rbenv_rehash[defaultness]'
================================================================================
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for rbenv_rehash[defaultness] on chefspec version 0.6.1
Resource Declaration:
---------------------
# In /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_rehash_defaults.rb
1: rbenv_rehash 'defaultness'
Compiled Resource:
------------------
# Declared in /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_rehash_defaults.rb:1:in `from_file'
rbenv_rehash("defaultness") do
action [:run]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :rbenv_rehash
cookbook_name :fixtures
recipe_name "rbenv_rehash_defaults"
end
runs an rbenv_script (FAILED - 8)
rbenv_script provider
with a fully configured resource
================================================================================
Error executing action `run` on resource 'rbenv_script[all-the-things]'
================================================================================
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for rbenv_script[all-the-things] on chefspec version 0.6.1
Resource Declaration:
---------------------
# In /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_script_full.rb
1: rbenv_script 'all-the-things' do
2: code 'rake doit:all'
3: rbenv_version 'thebest'
4: user 'lockwood'
5: group 'inventor'
6: creates '/opt/success'
7: cwd '/usr/dir'
8: path ['/opt/bin']
9: returns [0, 255]
10: timeout 600
11: umask 0221
12: environment('FRUIT' => 'strawberry')
13: end
Compiled Resource:
------------------
# Declared in /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_script_full.rb:1:in `from_file'
rbenv_script("all-the-things") do
action [:run]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :rbenv_script
cookbook_name :fixtures
recipe_name "rbenv_script_full"
code "rake doit:all"
rbenv_version "thebest"
user "lockwood"
group "inventor"
creates "/opt/success"
cwd "/usr/dir"
path ["/opt/bin"]
returns [0, 255]
timeout 600
umask 145
environment {"FRUIT"=>"strawberry"}
end
runs a script (FAILED - 9)
with a default configured resource
================================================================================
Error executing action `run` on resource 'rbenv_script[not-much]'
================================================================================
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for rbenv_script[not-much] on chefspec version 0.6.1
Resource Declaration:
---------------------
# In /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_script_defaults.rb
1: rbenv_script 'not-much' do
2: code 'rake nadda'
3: end
Compiled Resource:
------------------
# Declared in /var/folders/wd/dzkzgh7d4_74484kpjky6ctc0000gn/T/d20151012-59398-jhevt9/cookbooks/fixtures/recipes/rbenv_script_defaults.rb:1:in `from_file'
rbenv_script("not-much") do
action [:run]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :rbenv_script
cookbook_name :fixtures
recipe_name "rbenv_script_defaults"
code "rake nadda"
end
runs a script (FAILED - 10)
LWRP resource rbenv_gem from cookbook rbenv
sets the default attribute to package_name
attribute rbenv_version defaults to global
attribute rbenv_version takes a String value
attribute version defaults to nil
attribute version takes a String value
attribute response_file defaults to nil
attribute response_file takes a String value
attribute source defaults to nil
attribute source takes a String value
attribute options defaults to nil
attribute options takes a String value
attribute options takes a Hash value
attribute gem_binary defaults to nil
attribute gem_binary takes a String value
attribute user defaults to nil
attribute user takes a String value
attribute root_path defaults to nil
attribute root_path takes a String value
action defaults to :install
actions include :upgrade
actions include :remove
actions include :purge
sets the provider to RbenvRubygems
LWRP resource rbenv_global from cookbook rbenv
sets the default attribute to rbenv_version
attribute user defaults to nil
attribute user takes a String value
attribute root_path defaults to nil
attribute root_path takes a String value
action defaults to :create
#to_s includes user if provided
#to_s includes system label if user is not provided
LWRP resource rbenv_plugin from cookbook rbenv
sets the default attribute to name
attribute git_url defaults to nil
attribute git_url takes a String value
attribute git_ref defaults to nil
attribute git_ref takes a String value
attribute user defaults to nil
attribute user takes a String value
attribute root_path defaults to nil
attribute root_path takes a String value
action defaults to :install
#to_s includes user if provided
#to_s includes system label if user is not provided
LWRP resource rbenv_rehash from cookbook rbenv
sets the default attribute to name
attribute user defaults to nil
attribute user takes a String value
attribute root_path defaults to nil
attribute root_path takes a String value
action defaults to :run
LWRP resource rbenv_ruby from cookbook rbenv
sets the default attribute to definition
attribute definition_file defaults to nil
attribute definition_file takes a String value
attribute root_path defaults to nil
attribute root_path takes a String value
attribute user defaults to nil
attribute user takes a String value
action defaults to :install
actions include :reinstall
#to_s includes user if provided
#to_s includes system label if user is not provided
LWRP resource rbenv_script from cookbook rbenv
sets the default attribute to name
attribute rbenv_version defaults to nil
attribute rbenv_version takes a String value
attribute root_path defaults to nil
attribute root_path takes a String value
attribute code defaults to nil
attribute code takes a String value
attribute creates defaults to nil
attribute creates takes a String value
attribute cwd defaults to nil
attribute cwd takes a String value
attribute environment defaults to nil
attribute environment takes a Hash value
attribute group defaults to nil
attribute group takes a String value
attribute path defaults to nil
attribute path takes an Array value
attribute returns defaults to 0
attribute returns takes an Array value
attribute timeout defaults to nil
attribute timeout takes an Integer value
attribute user defaults to nil
attribute user takes a String value
attribute umask defaults to nil
attribute umask takes a String value
attribute umask takes an Integer value
action defaults to :run
Failures:
1) rbenv_global provider with a fully configured resource runs an rbenv_script
Failure/Error: let(:chef_run) { runner.converge('fixtures::rbenv_global_full') }
Chef::Exceptions::ProviderNotFound:
rbenv_global[9.1.2] (claire) (fixtures::rbenv_global_full line 1) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for rbenv_global[9.1.2] (claire) on chefspec version 0.6.1
# ./test/unit/providers/global_spec.rb:8:in `block (3 levels) in <top (required)>'
# ./test/unit/providers/global_spec.rb:11:in `block (3 levels) in <top (required)>'
2) rbenv_global provider with a default configured resource runs an rbenv_script
Failure/Error: let(:chef_run) { runner.converge('fixtures::rbenv_global_defaults') }
Chef::Exceptions::ProviderNotFound:
rbenv_global[1.6.5] (system) (fixtures::rbenv_global_defaults line 1) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for rbenv_global[1.6.5] (system) on chefspec version 0.6.1
# ./test/unit/providers/global_spec.rb:20:in `block (3 levels) in <top (required)>'
# ./test/unit/providers/global_spec.rb:23:in `block (3 levels) in <top (required)>'
3) rbenv_plugin provider with a fully configured resource creates the parent directory for plugins
Failure/Error: let(:chef_run) { runner.converge('fixtures::rbenv_plugin_full') }
Chef::Exceptions::ProviderNotFound:
rbenv_plugin[rbenv-coolness] (sam) (fixtures::rbenv_plugin_full line 1) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for rbenv_plugin[rbenv-coolness] (sam) on chefspec version 0.6.1
# ./test/unit/providers/plugin_spec.rb:8:in `block (3 levels) in <top (required)>'
# ./test/unit/providers/plugin_spec.rb:11:in `block (3 levels) in <top (required)>'
4) rbenv_plugin provider with a fully configured resource downloads the plugin with git
Failure/Error: let(:chef_run) { runner.converge('fixtures::rbenv_plugin_full') }
Chef::Exceptions::ProviderNotFound:
rbenv_plugin[rbenv-coolness] (sam) (fixtures::rbenv_plugin_full line 1) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for rbenv_plugin[rbenv-coolness] (sam) on chefspec version 0.6.1
# ./test/unit/providers/plugin_spec.rb:8:in `block (3 levels) in <top (required)>'
# ./test/unit/providers/plugin_spec.rb:18:in `block (3 levels) in <top (required)>'
5) rbenv_plugin provider with a minimally configured resource creates the parent directory for plugins
Failure/Error: let(:chef_run) { runner.converge('fixtures::rbenv_plugin_defaults') }
Chef::Exceptions::ProviderNotFound:
rbenv_plugin[rbenv-root-default] (system) (fixtures::rbenv_plugin_defaults line 1) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for rbenv_plugin[rbenv-root-default] (system) on chefspec version 0.6.1
# ./test/unit/providers/plugin_spec.rb:28:in `block (3 levels) in <top (required)>'
# ./test/unit/providers/plugin_spec.rb:33:in `block (3 levels) in <top (required)>'
6) rbenv_plugin provider with a minimally configured resource downloads the plugin with git
Failure/Error: let(:chef_run) { runner.converge('fixtures::rbenv_plugin_defaults') }
Chef::Exceptions::ProviderNotFound:
rbenv_plugin[rbenv-root-default] (system) (fixtures::rbenv_plugin_defaults line 1) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for rbenv_plugin[rbenv-root-default] (system) on chefspec version 0.6.1
# ./test/unit/providers/plugin_spec.rb:28:in `block (3 levels) in <top (required)>'
# ./test/unit/providers/plugin_spec.rb:40:in `block (3 levels) in <top (required)>'
7) rbenv_rehash provider with a fully configured resource runs an rbenv_script
Failure/Error: let(:chef_run) { runner.converge('fixtures::rbenv_rehash_full') }
Chef::Exceptions::ProviderNotFound:
rbenv_rehash[for-jdoe] (fixtures::rbenv_rehash_full line 1) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for rbenv_rehash[for-jdoe] on chefspec version 0.6.1
# ./test/unit/providers/rehash_spec.rb:8:in `block (3 levels) in <top (required)>'
# ./test/unit/providers/rehash_spec.rb:11:in `block (3 levels) in <top (required)>'
8) rbenv_rehash provider with a defaults configured resource runs an rbenv_script
Failure/Error: let(:chef_run) { runner.converge('fixtures::rbenv_rehash_defaults') }
Chef::Exceptions::ProviderNotFound:
rbenv_rehash[defaultness] (fixtures::rbenv_rehash_defaults line 1) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for rbenv_rehash[defaultness] on chefspec version 0.6.1
# ./test/unit/providers/rehash_spec.rb:20:in `block (3 levels) in <top (required)>'
# ./test/unit/providers/rehash_spec.rb:23:in `block (3 levels) in <top (required)>'
9) rbenv_script provider with a fully configured resource runs a script
Failure/Error: let(:chef_run) { runner.converge('fixtures::rbenv_script_full') }
Chef::Exceptions::ProviderNotFound:
rbenv_script[all-the-things] (fixtures::rbenv_script_full line 1) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for rbenv_script[all-the-things] on chefspec version 0.6.1
# ./test/unit/providers/script_spec.rb:8:in `block (3 levels) in <top (required)>'
# ./test/unit/providers/script_spec.rb:31:in `block (3 levels) in <top (required)>'
10) rbenv_script provider with a default configured resource runs a script
Failure/Error: let(:chef_run) { runner.converge('fixtures::rbenv_script_defaults') }
Chef::Exceptions::ProviderNotFound:
rbenv_script[not-much] (fixtures::rbenv_script_defaults line 1) had an error: Chef::Exceptions::ProviderNotFound: Cannot find a provider for rbenv_script[not-much] on chefspec version 0.6.1
# ./test/unit/providers/script_spec.rb:47:in `block (3 levels) in <top (required)>'
# ./test/unit/providers/script_spec.rb:62:in `block (3 levels) in <top (required)>'
Finished in 2.68 seconds (files took 12.58 seconds to load)
97 examples, 10 failures
Failed examples:
rspec ./test/unit/providers/global_spec.rb:10 # rbenv_global provider with a fully configured resource runs an rbenv_script
rspec ./test/unit/providers/global_spec.rb:22 # rbenv_global provider with a default configured resource runs an rbenv_script
rspec ./test/unit/providers/plugin_spec.rb:10 # rbenv_plugin provider with a fully configured resource creates the parent directory for plugins
rspec ./test/unit/providers/plugin_spec.rb:17 # rbenv_plugin provider with a fully configured resource downloads the plugin with git
rspec ./test/unit/providers/plugin_spec.rb:32 # rbenv_plugin provider with a minimally configured resource creates the parent directory for plugins
rspec ./test/unit/providers/plugin_spec.rb:39 # rbenv_plugin provider with a minimally configured resource downloads the plugin with git
rspec ./test/unit/providers/rehash_spec.rb:10 # rbenv_rehash provider with a fully configured resource runs an rbenv_script
rspec ./test/unit/providers/rehash_spec.rb:22 # rbenv_rehash provider with a defaults configured resource runs an rbenv_script
rspec ./test/unit/providers/script_spec.rb:15 # rbenv_script provider with a fully configured resource runs a script
rspec ./test/unit/providers/script_spec.rb:53 # rbenv_script provider with a default configured resource runs a script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment