aj@AJ-Christensens-MacBook (branch: 0.7.11-lwrp) ~/Development/chef/chef$ spec -cfs spec/unit/client_spec.rb
Chef::Client initialize
- should create a new Chef::Client object
Chef::Client run
- should start the run clock timer
- should build the node
- should register for an openid
- should authenticate with the server
- should synchronize definitions from the server
- should synchronize recipes from the server
- should synchronize and load library files from the server
- should synchronise and provider files from the server
- should synchronise and resource files from the server
- should synchronize and load attribute files from the server
- should save the nodes state on the server (twice!)
- should converge the node to the proper state
- should set the cookbook_path
Chef::Client run_solo
- should start/stop the run timer
- should build the node
- should converge the node to the proper state
- should use the configured cookbook_path
Chef::Client build_node
- should set the name equal to the FQDN
- should set the name equal to the hostname if FQDN is not available
- should add any json attributes to the node
- should allow you to set recipes from the json attributes
- should allow you to set a run_list from the json attributes
- should not add duplicate recipes from the json attributes
- should set the tags attribute to an empty array if it is not already defined
- should not set the tags attribute to an empty array if it is already defined
Chef::Client register
- should log an appropriate debug message regarding registering an openid
- should fetch the registration based on safe_name from the chef server
- should load the secret from disk
- should cause chef to die fatally if the filecache cannot find the registration
Chef::Client run_ohai
- refresh the plugins if ohai has already been run
Finished in 22.706846 seconds
31 examples, 0 failures