microwave 1.0.4 → 11.400.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CONTRIBUTING.md +155 -0
- data/README.md +89 -0
- data/Rakefile +2 -2
- data/bin/chef-apply +25 -0
- data/bin/chef-shell +34 -0
- data/bin/chef-solo +0 -2
- data/bin/shef +6 -5
- data/lib/chef.rb +2 -4
- data/spec/data/big_json.json +2 -1
- data/spec/data/big_json_plus_one.json +2 -1
- data/spec/data/cookbooks/chefignore +2 -0
- data/spec/data/cookbooks/openldap/attributes/default.rb +10 -9
- data/spec/data/cookbooks/openldap/attributes/smokey.rb +1 -1
- data/spec/data/git_bundles/sinatra-test-app-with-callback-files.gitbundle +0 -0
- data/spec/data/git_bundles/sinatra-test-app-with-symlinks.gitbundle +0 -0
- data/spec/data/git_bundles/sinatra-test-app.gitbundle +0 -0
- data/spec/data/lwrp/providers/inline_compiler.rb +26 -0
- data/spec/data/nodes/default.rb +3 -3
- data/spec/data/nodes/test.example.com.rb +3 -3
- data/spec/data/nodes/test.rb +3 -3
- data/spec/data/partial_one.erb +1 -0
- data/spec/data/run_context/cookbooks/circular-dep1/attributes/default.rb +4 -0
- data/spec/data/run_context/cookbooks/circular-dep1/definitions/circular_dep1_res.rb +1 -0
- data/spec/data/run_context/cookbooks/circular-dep1/libraries/lib.rb +2 -0
- data/spec/data/run_context/cookbooks/circular-dep1/metadata.rb +2 -0
- data/spec/data/run_context/cookbooks/circular-dep1/providers/provider.rb +1 -0
- data/spec/data/run_context/cookbooks/circular-dep1/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/circular-dep1/resources/resource.rb +1 -0
- data/spec/data/run_context/cookbooks/circular-dep2/attributes/default.rb +3 -0
- data/spec/data/run_context/cookbooks/circular-dep2/definitions/circular_dep2_res.rb +1 -0
- data/spec/data/run_context/cookbooks/circular-dep2/libraries/lib.rb +2 -0
- data/spec/data/run_context/cookbooks/circular-dep2/metadata.rb +2 -0
- data/spec/data/run_context/cookbooks/circular-dep2/providers/provider.rb +1 -0
- data/spec/data/run_context/cookbooks/circular-dep2/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/circular-dep2/resources/resource.rb +1 -0
- data/spec/data/run_context/cookbooks/dependency1/attributes/aa_first.rb +2 -0
- data/spec/data/run_context/cookbooks/dependency1/attributes/default.rb +2 -0
- data/spec/data/run_context/cookbooks/dependency1/attributes/zz_last.rb +3 -0
- data/spec/data/run_context/cookbooks/dependency1/definitions/dependency1_res.rb +1 -0
- data/spec/data/run_context/cookbooks/dependency1/libraries/lib.rb +2 -0
- data/spec/data/run_context/cookbooks/dependency1/providers/provider.rb +1 -0
- data/spec/data/run_context/cookbooks/dependency1/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/dependency1/resources/resource.rb +1 -0
- data/spec/data/run_context/cookbooks/dependency2/attributes/default.rb +3 -0
- data/spec/data/run_context/cookbooks/dependency2/definitions/dependency2_res.rb +1 -0
- data/spec/data/run_context/cookbooks/dependency2/libraries/lib.rb +2 -0
- data/spec/data/run_context/cookbooks/dependency2/providers/provider.rb +1 -0
- data/spec/data/run_context/cookbooks/dependency2/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/dependency2/resources/resource.rb +1 -0
- data/spec/data/run_context/cookbooks/no-default-attr/attributes/server.rb +3 -0
- data/spec/data/run_context/cookbooks/no-default-attr/definitions/no_default-attr_res.rb +1 -0
- data/spec/data/run_context/cookbooks/no-default-attr/providers/provider.rb +1 -0
- data/spec/data/run_context/cookbooks/no-default-attr/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/no-default-attr/resources/resource.rb +1 -0
- data/spec/data/run_context/cookbooks/test-with-circular-deps/attributes/default.rb +3 -0
- data/spec/data/run_context/cookbooks/test-with-circular-deps/definitions/test_with-circular-deps_res.rb +1 -0
- data/spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb +2 -0
- data/spec/data/run_context/cookbooks/test-with-circular-deps/metadata.rb +2 -0
- data/spec/data/run_context/cookbooks/test-with-circular-deps/providers/provider.rb +1 -0
- data/spec/data/run_context/cookbooks/test-with-circular-deps/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/test-with-circular-deps/resources/resource.rb +1 -0
- data/spec/data/run_context/cookbooks/test-with-deps/attributes/default.rb +3 -0
- data/spec/data/run_context/cookbooks/test-with-deps/definitions/test_with-deps_res.rb +1 -0
- data/spec/data/run_context/cookbooks/test-with-deps/libraries/lib.rb +1 -0
- data/spec/data/run_context/cookbooks/test-with-deps/metadata.rb +3 -0
- data/spec/data/run_context/cookbooks/test-with-deps/providers/provider.rb +1 -0
- data/spec/data/run_context/cookbooks/test-with-deps/recipes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/test-with-deps/recipes/server.rb +0 -0
- data/spec/data/run_context/cookbooks/test-with-deps/resources/resource.rb +1 -0
- data/spec/data/run_context/cookbooks/test/attributes/default.rb +0 -0
- data/spec/data/run_context/cookbooks/test/attributes/george.rb +1 -1
- data/spec/data/run_context/cookbooks/test/definitions/test_res.rb +1 -0
- data/spec/data/run_context/cookbooks/test/providers/provider.rb +1 -0
- data/spec/data/run_context/cookbooks/test/resources/resource.rb +1 -0
- data/spec/data/shef-config.rb +10 -0
- data/spec/functional/dsl/registry_helper_spec.rb +63 -0
- data/spec/functional/knife/cookbook_delete_spec.rb +0 -2
- data/spec/functional/knife/exec_spec.rb +4 -6
- data/spec/functional/knife/smoke_test.rb +34 -0
- data/spec/functional/knife/ssh_spec.rb +64 -3
- data/spec/functional/resource/cookbook_file_spec.rb +33 -2
- data/spec/functional/resource/deploy_revision_spec.rb +515 -0
- data/spec/functional/resource/directory_spec.rb +4 -0
- data/spec/functional/resource/file_spec.rb +56 -22
- data/spec/functional/resource/link_spec.rb +12 -10
- data/spec/functional/resource/registry_spec.rb +572 -0
- data/spec/functional/resource/remote_directory_spec.rb +142 -36
- data/spec/functional/resource/remote_file_spec.rb +28 -3
- data/spec/functional/resource/template_spec.rb +23 -2
- data/spec/functional/run_lock_spec.rb +238 -0
- data/spec/functional/shell_spec.rb +101 -0
- data/spec/functional/tiny_server_spec.rb +5 -4
- data/spec/functional/win32/registry_helper_spec.rb +632 -0
- data/spec/functional/win32/security_spec.rb +37 -0
- data/spec/spec_helper.rb +15 -3
- data/spec/stress/win32/security_spec.rb +5 -5
- data/spec/support/chef_helpers.rb +14 -3
- data/spec/support/lib/chef/resource/cat.rb +3 -5
- data/spec/support/lib/chef/resource/one_two_three_four.rb +8 -10
- data/spec/support/lib/chef/resource/zen_master.rb +8 -10
- data/spec/support/matchers/leak.rb +1 -1
- data/spec/support/platform_helpers.rb +18 -0
- data/spec/support/shared/functional/directory_resource.rb +85 -23
- data/spec/support/shared/functional/file_resource.rb +198 -53
- data/spec/support/shared/functional/securable_resource.rb +140 -105
- data/spec/support/shared/functional/securable_resource_with_reporting.rb +375 -0
- data/spec/support/shared/unit/file_system_support.rb +110 -0
- data/spec/support/shared/unit/platform_introspector.rb +162 -0
- data/spec/tiny_server.rb +29 -10
- data/spec/unit/api_client/registration_spec.rb +172 -0
- data/spec/unit/api_client_spec.rb +156 -103
- data/spec/unit/application/apply.rb +84 -0
- data/spec/unit/application/knife_spec.rb +5 -0
- data/spec/unit/application_spec.rb +57 -2
- data/spec/unit/chef_fs/diff_spec.rb +329 -0
- data/spec/unit/chef_fs/file_pattern_spec.rb +526 -0
- data/spec/unit/chef_fs/file_system/chef_server_root_dir_spec.rb +237 -0
- data/spec/unit/chef_fs/file_system/cookbooks_dir_spec.rb +568 -0
- data/spec/unit/chef_fs/file_system/data_bags_dir_spec.rb +220 -0
- data/spec/unit/chef_fs/file_system_spec.rb +136 -0
- data/spec/unit/client_spec.rb +188 -16
- data/spec/unit/config_spec.rb +54 -4
- data/spec/unit/cookbook/chefignore_spec.rb +2 -1
- data/spec/unit/cookbook/syntax_check_spec.rb +48 -109
- data/spec/unit/cookbook_loader_spec.rb +153 -91
- data/spec/unit/cookbook_manifest_spec.rb +81 -81
- data/spec/unit/cookbook_spec.rb +3 -20
- data/spec/unit/cookbook_version_spec.rb +23 -122
- data/spec/unit/digester_spec.rb +50 -0
- data/spec/unit/dsl/data_query_spec.rb +66 -0
- data/spec/unit/dsl/platform_introspection_spec.rb +130 -0
- data/spec/unit/dsl/regsitry_helper_spec.rb +55 -0
- data/spec/unit/encrypted_data_bag_item_spec.rb +126 -10
- data/spec/unit/environment_spec.rb +0 -130
- data/spec/unit/exceptions_spec.rb +2 -3
- data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +23 -3
- data/spec/unit/json_compat_spec.rb +69 -0
- data/spec/unit/knife/bootstrap_spec.rb +81 -28
- data/spec/unit/knife/client_reregister_spec.rb +23 -22
- data/spec/unit/knife/configure_spec.rb +29 -26
- data/spec/unit/knife/cookbook_metadata_spec.rb +11 -4
- data/spec/unit/knife/cookbook_site_install_spec.rb +12 -2
- data/spec/unit/knife/cookbook_test_spec.rb +1 -0
- data/spec/unit/knife/cookbook_upload_spec.rb +41 -2
- data/spec/unit/knife/core/bootstrap_context_spec.rb +8 -1
- data/spec/unit/knife/core/ui_spec.rb +156 -7
- data/spec/unit/knife/data_bag_create_spec.rb +14 -0
- data/spec/unit/knife/data_bag_edit_spec.rb +14 -4
- data/spec/unit/knife/data_bag_from_file_spec.rb +17 -5
- data/spec/unit/knife/data_bag_show_spec.rb +11 -4
- data/spec/unit/knife/index_rebuild_spec.rb +96 -33
- data/spec/unit/knife/knife_help.rb +7 -7
- data/spec/unit/knife/node_run_list_remove_spec.rb +2 -1
- data/spec/unit/knife/ssh_spec.rb +121 -15
- data/spec/unit/knife/status_spec.rb +2 -2
- data/spec/unit/knife/user_create_spec.rb +86 -0
- data/spec/unit/knife/user_delete_spec.rb +39 -0
- data/spec/unit/knife/user_edit_spec.rb +42 -0
- data/spec/unit/knife/user_list_spec.rb +32 -0
- data/spec/unit/knife/user_reregister_spec.rb +53 -0
- data/spec/unit/knife/user_show_spec.rb +41 -0
- data/spec/unit/knife_spec.rb +53 -0
- data/spec/unit/lwrp_spec.rb +59 -17
- data/spec/unit/mixin/checksum_spec.rb +2 -2
- data/spec/unit/mixin/deep_merge_spec.rb +56 -491
- data/spec/unit/mixin/deprecation_spec.rb +23 -0
- data/spec/unit/mixin/enforce_ownership_and_permissions_spec.rb +6 -1
- data/spec/unit/mixin/params_validate_spec.rb +4 -2
- data/spec/unit/mixin/securable_spec.rb +5 -3
- data/spec/unit/mixin/template_spec.rb +119 -0
- data/spec/unit/node/attribute_spec.rb +272 -137
- data/spec/unit/node/immutable_collections_spec.rb +139 -0
- data/spec/unit/node_spec.rb +411 -339
- data/spec/unit/platform_spec.rb +8 -8
- data/spec/unit/provider/breakpoint_spec.rb +8 -8
- data/spec/unit/provider/cookbook_file_spec.rb +4 -8
- data/spec/unit/provider/deploy/revision_spec.rb +2 -8
- data/spec/unit/provider/deploy_spec.rb +6 -40
- data/spec/unit/provider/directory_spec.rb +103 -68
- data/spec/unit/provider/erl_call_spec.rb +0 -2
- data/spec/unit/provider/file_spec.rb +69 -59
- data/spec/unit/provider/git_spec.rb +0 -10
- data/spec/unit/provider/group/groupadd_spec.rb +1 -1
- data/spec/unit/provider/group/usermod_spec.rb +2 -2
- data/spec/unit/provider/http_request_spec.rb +28 -69
- data/spec/unit/provider/ifconfig_spec.rb +2 -2
- data/spec/unit/provider/link_spec.rb +1 -1
- data/spec/unit/provider/ohai_spec.rb +4 -4
- data/spec/unit/provider/package/apt_spec.rb +0 -1
- data/spec/unit/provider/package/ips_spec.rb +0 -1
- data/spec/unit/provider/package/rubygems_spec.rb +0 -18
- data/spec/unit/provider/package/yum_spec.rb +79 -15
- data/spec/unit/provider/package_spec.rb +7 -5
- data/spec/unit/provider/registry_key_spec.rb +269 -0
- data/spec/unit/provider/remote_directory_spec.rb +24 -7
- data/spec/unit/provider/remote_file_spec.rb +36 -0
- data/spec/unit/provider/route_spec.rb +3 -6
- data/spec/unit/provider/ruby_block_spec.rb +8 -0
- data/spec/unit/provider/service/arch_service_spec.rb +4 -4
- data/spec/unit/provider/service/debian_service_spec.rb +1 -1
- data/spec/unit/provider/service/freebsd_service_spec.rb +4 -4
- data/spec/unit/provider/service/init_service_spec.rb +26 -3
- data/spec/unit/provider/service/insserv_service_spec.rb +1 -1
- data/spec/unit/provider/service/invokercd_service_spec.rb +3 -3
- data/spec/unit/provider/service/redhat_spec.rb +1 -1
- data/spec/unit/provider/service/simple_service_spec.rb +3 -3
- data/spec/unit/provider/service/upstart_service_spec.rb +7 -7
- data/spec/unit/provider/service_spec.rb +2 -2
- data/spec/unit/provider/subversion_spec.rb +1 -1
- data/spec/unit/provider/template_spec.rb +35 -11
- data/spec/unit/provider/user/dscl_spec.rb +57 -31
- data/spec/unit/provider/user_spec.rb +7 -16
- data/spec/unit/provider_spec.rb +4 -3
- data/spec/unit/recipe_spec.rb +10 -8
- data/spec/unit/registry_helper_spec.rb +376 -0
- data/spec/unit/resource/log_spec.rb +9 -0
- data/spec/unit/resource/registry_key_spec.rb +171 -0
- data/spec/unit/resource/remote_file_spec.rb +21 -23
- data/spec/unit/resource/ruby_block_spec.rb +7 -3
- data/spec/unit/resource/service_spec.rb +11 -0
- data/spec/unit/resource_spec.rb +27 -4
- data/spec/unit/rest/auth_credentials_spec.rb +2 -14
- data/spec/unit/rest_spec.rb +122 -187
- data/spec/unit/run_context/cookbook_compiler_spec.rb +181 -0
- data/spec/unit/run_context_spec.rb +18 -4
- data/spec/unit/run_list_spec.rb +0 -209
- data/spec/unit/run_lock_spec.rb +37 -0
- data/spec/unit/runner_spec.rb +101 -2
- data/spec/unit/scan_access_control_spec.rb +4 -4
- data/spec/unit/{shef → shell}/model_wrapper_spec.rb +5 -5
- data/spec/unit/{shef/shef_ext_spec.rb → shell/shell_ext_spec.rb} +21 -21
- data/spec/unit/{shef/shef_session_spec.rb → shell/shell_session_spec.rb} +12 -12
- data/spec/unit/shell_out_spec.rb +18 -0
- data/spec/unit/{shef_spec.rb → shell_spec.rb} +20 -20
- data/spec/unit/user_spec.rb +255 -0
- metadata +162 -157
- data/README.rdoc +0 -177
- data/spec/unit/certificate_spec.rb +0 -76
- data/spec/unit/checksum_cache_spec.rb +0 -209
- data/spec/unit/checksum_spec.rb +0 -94
- data/spec/unit/couchdb_spec.rb +0 -274
- data/spec/unit/index_queue_spec.rb +0 -391
- data/spec/unit/json_compat_spect.rb +0 -53
- data/spec/unit/mixin/language_spec.rb +0 -305
- data/spec/unit/openid_registration_spec.rb +0 -153
- data/spec/unit/solr_query/query_transform_spec.rb +0 -454
- data/spec/unit/solr_query/solr_http_request_spec.rb +0 -244
- data/spec/unit/solr_query_spec.rb +0 -203
- data/spec/unit/webui_user_spec.rb +0 -238
@@ -0,0 +1,255 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Steven Danna (steve@opscode.com)
|
3
|
+
# Copyright:: Copyright (c) 2012 Opscode, Inc.
|
4
|
+
# License:: Apache License, Version 2.0
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'spec_helper'
|
20
|
+
|
21
|
+
require 'chef/user'
|
22
|
+
require 'tempfile'
|
23
|
+
|
24
|
+
describe Chef::User do
|
25
|
+
before(:each) do
|
26
|
+
@user = Chef::User.new
|
27
|
+
end
|
28
|
+
|
29
|
+
describe "initialize" do
|
30
|
+
it "should be a Chef::User" do
|
31
|
+
@user.should be_a_kind_of(Chef::User)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
describe "name" do
|
36
|
+
it "should let you set the name to a string" do
|
37
|
+
@user.name("ops_master").should == "ops_master"
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should return the current name" do
|
41
|
+
@user.name "ops_master"
|
42
|
+
@user.name.should == "ops_master"
|
43
|
+
end
|
44
|
+
|
45
|
+
# It is not feasible to check all invalid characters. Here are a few
|
46
|
+
# that we probably care about.
|
47
|
+
it "should not accept invalid characters" do
|
48
|
+
# capital letters
|
49
|
+
lambda { @user.name "Bar" }.should raise_error(ArgumentError)
|
50
|
+
# slashes
|
51
|
+
lambda { @user.name "foo/bar" }.should raise_error(ArgumentError)
|
52
|
+
# ?
|
53
|
+
lambda { @user.name "foo?" }.should raise_error(ArgumentError)
|
54
|
+
# &
|
55
|
+
lambda { @user.name "foo&" }.should raise_error(ArgumentError)
|
56
|
+
end
|
57
|
+
|
58
|
+
|
59
|
+
it "should not accept spaces" do
|
60
|
+
lambda { @user.name "ops master" }.should raise_error(ArgumentError)
|
61
|
+
end
|
62
|
+
|
63
|
+
it "should throw an ArgumentError if you feed it anything but a string" do
|
64
|
+
lambda { @user.name Hash.new }.should raise_error(ArgumentError)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe "admin" do
|
69
|
+
it "should let you set the admin bit" do
|
70
|
+
@user.admin(true).should == true
|
71
|
+
end
|
72
|
+
|
73
|
+
it "should return the current admin value" do
|
74
|
+
@user.admin true
|
75
|
+
@user.admin.should == true
|
76
|
+
end
|
77
|
+
|
78
|
+
it "should default to false" do
|
79
|
+
@user.admin.should == false
|
80
|
+
end
|
81
|
+
|
82
|
+
it "should throw an ArgumentError if you feed it anything but true or false" do
|
83
|
+
lambda { @user.name Hash.new }.should raise_error(ArgumentError)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
describe "public_key" do
|
88
|
+
it "should let you set the public key" do
|
89
|
+
@user.public_key("super public").should == "super public"
|
90
|
+
end
|
91
|
+
|
92
|
+
it "should return the current public key" do
|
93
|
+
@user.public_key("super public")
|
94
|
+
@user.public_key.should == "super public"
|
95
|
+
end
|
96
|
+
|
97
|
+
it "should throw an ArgumentError if you feed it something lame" do
|
98
|
+
lambda { @user.public_key Hash.new }.should raise_error(ArgumentError)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
describe "private_key" do
|
103
|
+
it "should let you set the private key" do
|
104
|
+
@user.private_key("super private").should == "super private"
|
105
|
+
end
|
106
|
+
|
107
|
+
it "should return the private key" do
|
108
|
+
@user.private_key("super private")
|
109
|
+
@user.private_key.should == "super private"
|
110
|
+
end
|
111
|
+
|
112
|
+
it "should throw an ArgumentError if you feed it something lame" do
|
113
|
+
lambda { @user.private_key Hash.new }.should raise_error(ArgumentError)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
describe "when serializing to JSON" do
|
118
|
+
before(:each) do
|
119
|
+
@user.name("black")
|
120
|
+
@user.public_key("crowes")
|
121
|
+
@json = @user.to_json
|
122
|
+
end
|
123
|
+
|
124
|
+
it "serializes as a JSON object" do
|
125
|
+
@json.should match(/^\{.+\}$/)
|
126
|
+
end
|
127
|
+
|
128
|
+
it "includes the name value" do
|
129
|
+
@json.should include(%q{"name":"black"})
|
130
|
+
end
|
131
|
+
|
132
|
+
it "includes the public key value" do
|
133
|
+
@json.should include(%{"public_key":"crowes"})
|
134
|
+
end
|
135
|
+
|
136
|
+
it "includes the 'admin' flag" do
|
137
|
+
@json.should include(%q{"admin":false})
|
138
|
+
end
|
139
|
+
|
140
|
+
it "includes the private key when present" do
|
141
|
+
@user.private_key("monkeypants")
|
142
|
+
@user.to_json.should include(%q{"private_key":"monkeypants"})
|
143
|
+
end
|
144
|
+
|
145
|
+
it "does not include the private key if not present" do
|
146
|
+
@json.should_not include("private_key")
|
147
|
+
end
|
148
|
+
|
149
|
+
it "includes the password if present" do
|
150
|
+
@user.password "password"
|
151
|
+
@user.to_json.should include(%q{"password":"password"})
|
152
|
+
end
|
153
|
+
|
154
|
+
it "does not include the password if not present" do
|
155
|
+
@json.should_not include("password")
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
describe "when deserializing from JSON" do
|
160
|
+
before(:each) do
|
161
|
+
user = { "name" => "mr_spinks",
|
162
|
+
"public_key" => "turtles",
|
163
|
+
"private_key" => "pandas",
|
164
|
+
"password" => "password",
|
165
|
+
"admin" => true }
|
166
|
+
@user = Chef::User.from_json(user.to_json)
|
167
|
+
end
|
168
|
+
|
169
|
+
it "should deserialize to a Chef::User object" do
|
170
|
+
@user.should be_a_kind_of(Chef::User)
|
171
|
+
end
|
172
|
+
|
173
|
+
it "preserves the name" do
|
174
|
+
@user.name.should == "mr_spinks"
|
175
|
+
end
|
176
|
+
|
177
|
+
it "preserves the public key" do
|
178
|
+
@user.public_key.should == "turtles"
|
179
|
+
end
|
180
|
+
|
181
|
+
it "preserves the admin status" do
|
182
|
+
@user.admin.should be_true
|
183
|
+
end
|
184
|
+
|
185
|
+
it "includes the private key if present" do
|
186
|
+
@user.private_key.should == "pandas"
|
187
|
+
end
|
188
|
+
|
189
|
+
it "includes the password if present" do
|
190
|
+
@user.password.should == "password"
|
191
|
+
end
|
192
|
+
|
193
|
+
end
|
194
|
+
|
195
|
+
describe "API Interactions" do
|
196
|
+
before (:each) do
|
197
|
+
@user = Chef::User.new
|
198
|
+
@user.name "foobar"
|
199
|
+
@http_client = mock("Chef::REST mock")
|
200
|
+
Chef::REST.stub!(:new).and_return(@http_client)
|
201
|
+
end
|
202
|
+
|
203
|
+
describe "list" do
|
204
|
+
before(:each) do
|
205
|
+
Chef::Config[:chef_server_url] = "http://www.example.com"
|
206
|
+
@osc_response = { "admin" => "http://www.example.com/users/admin"}
|
207
|
+
@ohc_response = [ { "user" => { "username" => "admin" }} ]
|
208
|
+
end
|
209
|
+
|
210
|
+
it "lists all clients on an OSC server" do
|
211
|
+
@http_client.stub!(:get_rest).with("users").and_return(@osc_response)
|
212
|
+
Chef::User.list.should == @osc_response
|
213
|
+
end
|
214
|
+
|
215
|
+
it "lists all clients on an OHC/OPC server" do
|
216
|
+
@http_client.stub!(:get_rest).with("users").and_return(@ohc_response)
|
217
|
+
# We expect that Chef::User.list will give a consistent response
|
218
|
+
# so OHC API responses should be transformed to OSC-style output.
|
219
|
+
Chef::User.list.should == @osc_response
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
describe "create" do
|
224
|
+
it "creates a new user via the API" do
|
225
|
+
@user.password "password"
|
226
|
+
@http_client.should_receive(:post_rest).with("users", {:name => "foobar", :admin => false, :password => "password"}).and_return({})
|
227
|
+
@user.create
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
describe "read" do
|
232
|
+
it "loads a named user from the API" do
|
233
|
+
@http_client.should_receive(:get_rest).with("users/foobar").and_return({"name" => "foobar", "admin" => true, "public_key" => "pubkey"})
|
234
|
+
user = Chef::User.load("foobar")
|
235
|
+
user.name.should == "foobar"
|
236
|
+
user.admin.should == true
|
237
|
+
user.public_key.should == "pubkey"
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
describe "update" do
|
242
|
+
it "updates an existing user on via the API" do
|
243
|
+
@http_client.should_receive(:put_rest).with("users/foobar", {:name => "foobar", :admin => false}).and_return({})
|
244
|
+
@user.update
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
describe "destroy" do
|
249
|
+
it "deletes the specified user via the API" do
|
250
|
+
@http_client.should_receive(:delete_rest).with("users/foobar")
|
251
|
+
@user.destroy
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
255
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microwave
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1539
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version:
|
7
|
+
- 11
|
8
|
+
- 400
|
9
|
+
- 2
|
10
|
+
version: 11.400.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Adam Jacob
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-02-20 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -40,14 +40,14 @@ dependencies:
|
|
40
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
45
|
+
hash: 27
|
46
46
|
segments:
|
47
47
|
- 1
|
48
|
-
-
|
48
|
+
- 3
|
49
49
|
- 0
|
50
|
-
version: 1.
|
50
|
+
version: 1.3.0
|
51
51
|
type: :runtime
|
52
52
|
version_requirements: *id002
|
53
53
|
- !ruby/object:Gem::Dependency
|
@@ -136,34 +136,10 @@ dependencies:
|
|
136
136
|
version: 1.7.0
|
137
137
|
type: :runtime
|
138
138
|
version_requirements: *id007
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: bunny
|
141
|
-
prerelease: false
|
142
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
143
|
-
none: false
|
144
|
-
requirements:
|
145
|
-
- - ">="
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
hash: 7
|
148
|
-
segments:
|
149
|
-
- 0
|
150
|
-
- 6
|
151
|
-
- 0
|
152
|
-
version: 0.6.0
|
153
|
-
- - <
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
hash: 63
|
156
|
-
segments:
|
157
|
-
- 0
|
158
|
-
- 8
|
159
|
-
- 0
|
160
|
-
version: 0.8.0
|
161
|
-
type: :runtime
|
162
|
-
version_requirements: *id008
|
163
139
|
- !ruby/object:Gem::Dependency
|
164
140
|
name: json
|
165
141
|
prerelease: false
|
166
|
-
requirement: &
|
142
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
167
143
|
none: false
|
168
144
|
requirements:
|
169
145
|
- - ">="
|
@@ -176,18 +152,18 @@ dependencies:
|
|
176
152
|
version: 1.4.4
|
177
153
|
- - <=
|
178
154
|
- !ruby/object:Gem::Version
|
179
|
-
hash:
|
155
|
+
hash: 5
|
180
156
|
segments:
|
181
157
|
- 1
|
182
|
-
-
|
183
|
-
-
|
184
|
-
version: 1.
|
158
|
+
- 7
|
159
|
+
- 7
|
160
|
+
version: 1.7.7
|
185
161
|
type: :runtime
|
186
|
-
version_requirements: *
|
162
|
+
version_requirements: *id008
|
187
163
|
- !ruby/object:Gem::Dependency
|
188
164
|
name: yajl-ruby
|
189
165
|
prerelease: false
|
190
|
-
requirement: &
|
166
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
191
167
|
none: false
|
192
168
|
requirements:
|
193
169
|
- - ~>
|
@@ -198,43 +174,26 @@ dependencies:
|
|
198
174
|
- 1
|
199
175
|
version: "1.1"
|
200
176
|
type: :runtime
|
201
|
-
version_requirements: *
|
202
|
-
- !ruby/object:Gem::Dependency
|
203
|
-
name: treetop
|
204
|
-
prerelease: false
|
205
|
-
requirement: &id011 !ruby/object:Gem::Requirement
|
206
|
-
none: false
|
207
|
-
requirements:
|
208
|
-
- - ~>
|
209
|
-
- !ruby/object:Gem::Version
|
210
|
-
hash: 21
|
211
|
-
segments:
|
212
|
-
- 1
|
213
|
-
- 4
|
214
|
-
- 9
|
215
|
-
version: 1.4.9
|
216
|
-
type: :runtime
|
217
|
-
version_requirements: *id011
|
177
|
+
version_requirements: *id009
|
218
178
|
- !ruby/object:Gem::Dependency
|
219
179
|
name: net-ssh
|
220
180
|
prerelease: false
|
221
|
-
requirement: &
|
181
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
222
182
|
none: false
|
223
183
|
requirements:
|
224
184
|
- - ~>
|
225
185
|
- !ruby/object:Gem::Version
|
226
|
-
hash:
|
186
|
+
hash: 15
|
227
187
|
segments:
|
228
188
|
- 2
|
229
|
-
-
|
230
|
-
|
231
|
-
version: 2.2.2
|
189
|
+
- 6
|
190
|
+
version: "2.6"
|
232
191
|
type: :runtime
|
233
|
-
version_requirements: *
|
192
|
+
version_requirements: *id010
|
234
193
|
- !ruby/object:Gem::Dependency
|
235
194
|
name: net-ssh-multi
|
236
195
|
prerelease: false
|
237
|
-
requirement: &
|
196
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
238
197
|
none: false
|
239
198
|
requirements:
|
240
199
|
- - ~>
|
@@ -246,11 +205,11 @@ dependencies:
|
|
246
205
|
- 0
|
247
206
|
version: 1.1.0
|
248
207
|
type: :runtime
|
249
|
-
version_requirements: *
|
208
|
+
version_requirements: *id011
|
250
209
|
- !ruby/object:Gem::Dependency
|
251
210
|
name: highline
|
252
211
|
prerelease: false
|
253
|
-
requirement: &
|
212
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
254
213
|
none: false
|
255
214
|
requirements:
|
256
215
|
- - ">="
|
@@ -262,41 +221,11 @@ dependencies:
|
|
262
221
|
- 9
|
263
222
|
version: 1.6.9
|
264
223
|
type: :runtime
|
265
|
-
version_requirements: *
|
266
|
-
- !ruby/object:Gem::Dependency
|
267
|
-
name: moneta
|
268
|
-
prerelease: false
|
269
|
-
requirement: &id015 !ruby/object:Gem::Requirement
|
270
|
-
none: false
|
271
|
-
requirements:
|
272
|
-
- - ~>
|
273
|
-
- !ruby/object:Gem::Version
|
274
|
-
hash: 7
|
275
|
-
segments:
|
276
|
-
- 0
|
277
|
-
- 6
|
278
|
-
- 0
|
279
|
-
version: 0.6.0
|
280
|
-
type: :runtime
|
281
|
-
version_requirements: *id015
|
224
|
+
version_requirements: *id012
|
282
225
|
- !ruby/object:Gem::Dependency
|
283
226
|
name: erubis
|
284
227
|
prerelease: false
|
285
|
-
requirement: &
|
286
|
-
none: false
|
287
|
-
requirements:
|
288
|
-
- - ">="
|
289
|
-
- !ruby/object:Gem::Version
|
290
|
-
hash: 3
|
291
|
-
segments:
|
292
|
-
- 0
|
293
|
-
version: "0"
|
294
|
-
type: :runtime
|
295
|
-
version_requirements: *id016
|
296
|
-
- !ruby/object:Gem::Dependency
|
297
|
-
name: uuidtools
|
298
|
-
prerelease: false
|
299
|
-
requirement: &id017 !ruby/object:Gem::Requirement
|
228
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
300
229
|
none: false
|
301
230
|
requirements:
|
302
231
|
- - ">="
|
@@ -306,11 +235,11 @@ dependencies:
|
|
306
235
|
- 0
|
307
236
|
version: "0"
|
308
237
|
type: :runtime
|
309
|
-
version_requirements: *
|
238
|
+
version_requirements: *id013
|
310
239
|
- !ruby/object:Gem::Dependency
|
311
240
|
name: rdoc
|
312
241
|
prerelease: false
|
313
|
-
requirement: &
|
242
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
314
243
|
none: false
|
315
244
|
requirements:
|
316
245
|
- - ">="
|
@@ -320,25 +249,11 @@ dependencies:
|
|
320
249
|
- 0
|
321
250
|
version: "0"
|
322
251
|
type: :development
|
323
|
-
version_requirements: *
|
252
|
+
version_requirements: *id014
|
324
253
|
- !ruby/object:Gem::Dependency
|
325
254
|
name: sdoc
|
326
255
|
prerelease: false
|
327
|
-
requirement: &
|
328
|
-
none: false
|
329
|
-
requirements:
|
330
|
-
- - ">="
|
331
|
-
- !ruby/object:Gem::Version
|
332
|
-
hash: 3
|
333
|
-
segments:
|
334
|
-
- 0
|
335
|
-
version: "0"
|
336
|
-
type: :development
|
337
|
-
version_requirements: *id019
|
338
|
-
- !ruby/object:Gem::Dependency
|
339
|
-
name: ronn
|
340
|
-
prerelease: false
|
341
|
-
requirement: &id020 !ruby/object:Gem::Requirement
|
256
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
342
257
|
none: false
|
343
258
|
requirements:
|
344
259
|
- - ">="
|
@@ -348,11 +263,11 @@ dependencies:
|
|
348
263
|
- 0
|
349
264
|
version: "0"
|
350
265
|
type: :development
|
351
|
-
version_requirements: *
|
266
|
+
version_requirements: *id015
|
352
267
|
- !ruby/object:Gem::Dependency
|
353
268
|
name: rake
|
354
269
|
prerelease: false
|
355
|
-
requirement: &
|
270
|
+
requirement: &id016 !ruby/object:Gem::Requirement
|
356
271
|
none: false
|
357
272
|
requirements:
|
358
273
|
- - ">="
|
@@ -362,11 +277,11 @@ dependencies:
|
|
362
277
|
- 0
|
363
278
|
version: "0"
|
364
279
|
type: :development
|
365
|
-
version_requirements: *
|
280
|
+
version_requirements: *id016
|
366
281
|
- !ruby/object:Gem::Dependency
|
367
282
|
name: rack
|
368
283
|
prerelease: false
|
369
|
-
requirement: &
|
284
|
+
requirement: &id017 !ruby/object:Gem::Requirement
|
370
285
|
none: false
|
371
286
|
requirements:
|
372
287
|
- - ">="
|
@@ -376,11 +291,11 @@ dependencies:
|
|
376
291
|
- 0
|
377
292
|
version: "0"
|
378
293
|
type: :development
|
379
|
-
version_requirements: *
|
294
|
+
version_requirements: *id017
|
380
295
|
- !ruby/object:Gem::Dependency
|
381
296
|
name: rspec_junit_formatter
|
382
297
|
prerelease: false
|
383
|
-
requirement: &
|
298
|
+
requirement: &id018 !ruby/object:Gem::Requirement
|
384
299
|
none: false
|
385
300
|
requirements:
|
386
301
|
- - ">="
|
@@ -390,71 +305,75 @@ dependencies:
|
|
390
305
|
- 0
|
391
306
|
version: "0"
|
392
307
|
type: :development
|
393
|
-
version_requirements: *
|
308
|
+
version_requirements: *id018
|
394
309
|
- !ruby/object:Gem::Dependency
|
395
310
|
name: rspec-core
|
396
311
|
prerelease: false
|
397
|
-
requirement: &
|
312
|
+
requirement: &id019 !ruby/object:Gem::Requirement
|
398
313
|
none: false
|
399
314
|
requirements:
|
400
315
|
- - ~>
|
401
316
|
- !ruby/object:Gem::Version
|
402
|
-
hash:
|
317
|
+
hash: 63
|
403
318
|
segments:
|
404
319
|
- 2
|
405
|
-
-
|
320
|
+
- 12
|
406
321
|
- 0
|
407
|
-
version: 2.
|
322
|
+
version: 2.12.0
|
408
323
|
type: :development
|
409
|
-
version_requirements: *
|
324
|
+
version_requirements: *id019
|
410
325
|
- !ruby/object:Gem::Dependency
|
411
326
|
name: rspec-expectations
|
412
327
|
prerelease: false
|
413
|
-
requirement: &
|
328
|
+
requirement: &id020 !ruby/object:Gem::Requirement
|
414
329
|
none: false
|
415
330
|
requirements:
|
416
331
|
- - ~>
|
417
332
|
- !ruby/object:Gem::Version
|
418
|
-
hash:
|
333
|
+
hash: 63
|
419
334
|
segments:
|
420
335
|
- 2
|
421
|
-
-
|
336
|
+
- 12
|
422
337
|
- 0
|
423
|
-
version: 2.
|
338
|
+
version: 2.12.0
|
424
339
|
type: :development
|
425
|
-
version_requirements: *
|
340
|
+
version_requirements: *id020
|
426
341
|
- !ruby/object:Gem::Dependency
|
427
342
|
name: rspec-mocks
|
428
343
|
prerelease: false
|
429
|
-
requirement: &
|
344
|
+
requirement: &id021 !ruby/object:Gem::Requirement
|
430
345
|
none: false
|
431
346
|
requirements:
|
432
347
|
- - ~>
|
433
348
|
- !ruby/object:Gem::Version
|
434
|
-
hash:
|
349
|
+
hash: 63
|
435
350
|
segments:
|
436
351
|
- 2
|
437
|
-
-
|
352
|
+
- 12
|
438
353
|
- 0
|
439
|
-
version: 2.
|
354
|
+
version: 2.12.0
|
440
355
|
type: :development
|
441
|
-
version_requirements: *
|
356
|
+
version_requirements: *id021
|
442
357
|
description: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
|
443
358
|
email: adam@opscode.com
|
444
359
|
executables:
|
445
360
|
- chef-client
|
446
361
|
- chef-solo
|
447
362
|
- knife
|
363
|
+
- chef-shell
|
448
364
|
- shef
|
365
|
+
- chef-apply
|
449
366
|
extensions: []
|
450
367
|
|
451
368
|
extra_rdoc_files:
|
452
|
-
- README.
|
369
|
+
- README.md
|
370
|
+
- CONTRIBUTING.md
|
453
371
|
- LICENSE
|
454
372
|
files:
|
455
373
|
- Rakefile
|
456
374
|
- LICENSE
|
457
|
-
- README.
|
375
|
+
- README.md
|
376
|
+
- CONTRIBUTING.md
|
458
377
|
- lib/chef.rb
|
459
378
|
- tasks/rspec.rb
|
460
379
|
- spec/data/bad-config.rb
|
@@ -517,6 +436,9 @@ files:
|
|
517
436
|
- spec/data/fileedit/blank
|
518
437
|
- spec/data/fileedit/hosts
|
519
438
|
- spec/data/gems/chef-integration-test-0.1.0.gem
|
439
|
+
- spec/data/git_bundles/sinatra-test-app-with-callback-files.gitbundle
|
440
|
+
- spec/data/git_bundles/sinatra-test-app-with-symlinks.gitbundle
|
441
|
+
- spec/data/git_bundles/sinatra-test-app.gitbundle
|
520
442
|
- spec/data/kitchen/chefignore
|
521
443
|
- spec/data/kitchen/openldap/attributes/default.rb
|
522
444
|
- spec/data/kitchen/openldap/attributes/robinson.rb
|
@@ -532,6 +454,7 @@ files:
|
|
532
454
|
- spec/data/lwrp/providers/buck_passer.rb
|
533
455
|
- spec/data/lwrp/providers/buck_passer_2.rb
|
534
456
|
- spec/data/lwrp/providers/embedded_resource_accesses_providers_scope.rb
|
457
|
+
- spec/data/lwrp/providers/inline_compiler.rb
|
535
458
|
- spec/data/lwrp/providers/monkey_name_printer.rb
|
536
459
|
- spec/data/lwrp/providers/paint_drying_watcher.rb
|
537
460
|
- spec/data/lwrp/providers/thumb_twiddler.rb
|
@@ -555,18 +478,72 @@ files:
|
|
555
478
|
- spec/data/object_loader/roles/test_json_class.json
|
556
479
|
- spec/data/old_home_dir/my-dot-emacs
|
557
480
|
- spec/data/old_home_dir/my-dot-vim
|
481
|
+
- spec/data/partial_one.erb
|
558
482
|
- spec/data/recipes/test.rb
|
559
483
|
- spec/data/remote_directory_data/remote_dir_file.txt
|
560
484
|
- spec/data/remote_directory_data/remote_subdirectory/remote_subdir_file.txt
|
561
485
|
- spec/data/remote_file/nyan_cat.png
|
486
|
+
- spec/data/run_context/cookbooks/circular-dep1/attributes/default.rb
|
487
|
+
- spec/data/run_context/cookbooks/circular-dep1/definitions/circular_dep1_res.rb
|
488
|
+
- spec/data/run_context/cookbooks/circular-dep1/libraries/lib.rb
|
489
|
+
- spec/data/run_context/cookbooks/circular-dep1/metadata.rb
|
490
|
+
- spec/data/run_context/cookbooks/circular-dep1/providers/provider.rb
|
491
|
+
- spec/data/run_context/cookbooks/circular-dep1/recipes/default.rb
|
492
|
+
- spec/data/run_context/cookbooks/circular-dep1/resources/resource.rb
|
493
|
+
- spec/data/run_context/cookbooks/circular-dep2/attributes/default.rb
|
494
|
+
- spec/data/run_context/cookbooks/circular-dep2/definitions/circular_dep2_res.rb
|
495
|
+
- spec/data/run_context/cookbooks/circular-dep2/libraries/lib.rb
|
496
|
+
- spec/data/run_context/cookbooks/circular-dep2/metadata.rb
|
497
|
+
- spec/data/run_context/cookbooks/circular-dep2/providers/provider.rb
|
498
|
+
- spec/data/run_context/cookbooks/circular-dep2/recipes/default.rb
|
499
|
+
- spec/data/run_context/cookbooks/circular-dep2/resources/resource.rb
|
500
|
+
- spec/data/run_context/cookbooks/dependency1/attributes/aa_first.rb
|
501
|
+
- spec/data/run_context/cookbooks/dependency1/attributes/default.rb
|
502
|
+
- spec/data/run_context/cookbooks/dependency1/attributes/zz_last.rb
|
503
|
+
- spec/data/run_context/cookbooks/dependency1/definitions/dependency1_res.rb
|
504
|
+
- spec/data/run_context/cookbooks/dependency1/libraries/lib.rb
|
505
|
+
- spec/data/run_context/cookbooks/dependency1/providers/provider.rb
|
506
|
+
- spec/data/run_context/cookbooks/dependency1/recipes/default.rb
|
507
|
+
- spec/data/run_context/cookbooks/dependency1/resources/resource.rb
|
508
|
+
- spec/data/run_context/cookbooks/dependency2/attributes/default.rb
|
509
|
+
- spec/data/run_context/cookbooks/dependency2/definitions/dependency2_res.rb
|
510
|
+
- spec/data/run_context/cookbooks/dependency2/libraries/lib.rb
|
511
|
+
- spec/data/run_context/cookbooks/dependency2/providers/provider.rb
|
512
|
+
- spec/data/run_context/cookbooks/dependency2/recipes/default.rb
|
513
|
+
- spec/data/run_context/cookbooks/dependency2/resources/resource.rb
|
514
|
+
- spec/data/run_context/cookbooks/no-default-attr/attributes/server.rb
|
515
|
+
- spec/data/run_context/cookbooks/no-default-attr/definitions/no_default-attr_res.rb
|
516
|
+
- spec/data/run_context/cookbooks/no-default-attr/providers/provider.rb
|
517
|
+
- spec/data/run_context/cookbooks/no-default-attr/recipes/default.rb
|
518
|
+
- spec/data/run_context/cookbooks/no-default-attr/resources/resource.rb
|
519
|
+
- spec/data/run_context/cookbooks/test/attributes/default.rb
|
562
520
|
- spec/data/run_context/cookbooks/test/attributes/george.rb
|
563
521
|
- spec/data/run_context/cookbooks/test/definitions/new_animals.rb
|
564
522
|
- spec/data/run_context/cookbooks/test/definitions/new_cat.rb
|
523
|
+
- spec/data/run_context/cookbooks/test/definitions/test_res.rb
|
524
|
+
- spec/data/run_context/cookbooks/test/providers/provider.rb
|
565
525
|
- spec/data/run_context/cookbooks/test/recipes/default.rb
|
566
526
|
- spec/data/run_context/cookbooks/test/recipes/one.rb
|
567
527
|
- spec/data/run_context/cookbooks/test/recipes/two.rb
|
528
|
+
- spec/data/run_context/cookbooks/test/resources/resource.rb
|
529
|
+
- spec/data/run_context/cookbooks/test-with-circular-deps/attributes/default.rb
|
530
|
+
- spec/data/run_context/cookbooks/test-with-circular-deps/definitions/test_with-circular-deps_res.rb
|
531
|
+
- spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb
|
532
|
+
- spec/data/run_context/cookbooks/test-with-circular-deps/metadata.rb
|
533
|
+
- spec/data/run_context/cookbooks/test-with-circular-deps/providers/provider.rb
|
534
|
+
- spec/data/run_context/cookbooks/test-with-circular-deps/recipes/default.rb
|
535
|
+
- spec/data/run_context/cookbooks/test-with-circular-deps/resources/resource.rb
|
536
|
+
- spec/data/run_context/cookbooks/test-with-deps/attributes/default.rb
|
537
|
+
- spec/data/run_context/cookbooks/test-with-deps/definitions/test_with-deps_res.rb
|
538
|
+
- spec/data/run_context/cookbooks/test-with-deps/libraries/lib.rb
|
539
|
+
- spec/data/run_context/cookbooks/test-with-deps/metadata.rb
|
540
|
+
- spec/data/run_context/cookbooks/test-with-deps/providers/provider.rb
|
541
|
+
- spec/data/run_context/cookbooks/test-with-deps/recipes/default.rb
|
542
|
+
- spec/data/run_context/cookbooks/test-with-deps/recipes/server.rb
|
543
|
+
- spec/data/run_context/cookbooks/test-with-deps/resources/resource.rb
|
568
544
|
- spec/data/run_context/nodes/run_context.rb
|
569
545
|
- spec/data/search_queries_to_transform.txt
|
546
|
+
- spec/data/shef-config.rb
|
570
547
|
- spec/data/ssl/5e707473.0
|
571
548
|
- spec/data/ssl/chef-rspec.cert
|
572
549
|
- spec/data/ssl/chef-rspec.key
|
@@ -574,17 +551,25 @@ files:
|
|
574
551
|
- spec/data/ssl/private_key.pem
|
575
552
|
- spec/data/ssl/private_key_with_whitespace.pem
|
576
553
|
- spec/data/templates/seattle.txt
|
554
|
+
- spec/functional/dsl/registry_helper_spec.rb
|
577
555
|
- spec/functional/knife/cookbook_delete_spec.rb
|
578
556
|
- spec/functional/knife/exec_spec.rb
|
557
|
+
- spec/functional/knife/smoke_test.rb
|
579
558
|
- spec/functional/knife/ssh_spec.rb
|
580
559
|
- spec/functional/resource/cookbook_file_spec.rb
|
560
|
+
- spec/functional/resource/deploy_revision_spec.rb
|
581
561
|
- spec/functional/resource/directory_spec.rb
|
582
562
|
- spec/functional/resource/file_spec.rb
|
583
563
|
- spec/functional/resource/link_spec.rb
|
564
|
+
- spec/functional/resource/registry_spec.rb
|
584
565
|
- spec/functional/resource/remote_directory_spec.rb
|
585
566
|
- spec/functional/resource/remote_file_spec.rb
|
586
567
|
- spec/functional/resource/template_spec.rb
|
568
|
+
- spec/functional/run_lock_spec.rb
|
569
|
+
- spec/functional/shell_spec.rb
|
587
570
|
- spec/functional/tiny_server_spec.rb
|
571
|
+
- spec/functional/win32/registry_helper_spec.rb
|
572
|
+
- spec/functional/win32/security_spec.rb
|
588
573
|
- spec/rcov.opts
|
589
574
|
- spec/spec_helper.rb
|
590
575
|
- spec/stress/win32/file_spec.rb
|
@@ -606,19 +591,27 @@ files:
|
|
606
591
|
- spec/support/shared/functional/file_resource.rb
|
607
592
|
- spec/support/shared/functional/knife.rb
|
608
593
|
- spec/support/shared/functional/securable_resource.rb
|
594
|
+
- spec/support/shared/functional/securable_resource_with_reporting.rb
|
609
595
|
- spec/support/shared/unit/api_error_inspector.rb
|
596
|
+
- spec/support/shared/unit/file_system_support.rb
|
597
|
+
- spec/support/shared/unit/platform_introspector.rb
|
610
598
|
- spec/tiny_server.rb
|
599
|
+
- spec/unit/api_client/registration_spec.rb
|
611
600
|
- spec/unit/api_client_spec.rb
|
612
601
|
- spec/unit/application/agent_spec.rb
|
602
|
+
- spec/unit/application/apply.rb
|
613
603
|
- spec/unit/application/client_spec.rb
|
614
604
|
- spec/unit/application/knife_spec.rb
|
615
605
|
- spec/unit/application/server_spec.rb
|
616
606
|
- spec/unit/application/solo_spec.rb
|
617
607
|
- spec/unit/application_spec.rb
|
618
|
-
- spec/unit/certificate_spec.rb
|
619
608
|
- spec/unit/checksum/storage/filesystem_spec.rb
|
620
|
-
- spec/unit/
|
621
|
-
- spec/unit/
|
609
|
+
- spec/unit/chef_fs/diff_spec.rb
|
610
|
+
- spec/unit/chef_fs/file_pattern_spec.rb
|
611
|
+
- spec/unit/chef_fs/file_system/chef_server_root_dir_spec.rb
|
612
|
+
- spec/unit/chef_fs/file_system/cookbooks_dir_spec.rb
|
613
|
+
- spec/unit/chef_fs/file_system/data_bags_dir_spec.rb
|
614
|
+
- spec/unit/chef_fs/file_system_spec.rb
|
622
615
|
- spec/unit/chef_spec.rb
|
623
616
|
- spec/unit/client_spec.rb
|
624
617
|
- spec/unit/config_spec.rb
|
@@ -630,10 +623,13 @@ files:
|
|
630
623
|
- spec/unit/cookbook_manifest_spec.rb
|
631
624
|
- spec/unit/cookbook_spec.rb
|
632
625
|
- spec/unit/cookbook_version_spec.rb
|
633
|
-
- spec/unit/couchdb_spec.rb
|
634
626
|
- spec/unit/daemon_spec.rb
|
635
627
|
- spec/unit/data_bag_item_spec.rb
|
636
628
|
- spec/unit/data_bag_spec.rb
|
629
|
+
- spec/unit/digester_spec.rb
|
630
|
+
- spec/unit/dsl/data_query_spec.rb
|
631
|
+
- spec/unit/dsl/platform_introspection_spec.rb
|
632
|
+
- spec/unit/dsl/regsitry_helper_spec.rb
|
637
633
|
- spec/unit/encrypted_data_bag_item_spec.rb
|
638
634
|
- spec/unit/environment_spec.rb
|
639
635
|
- spec/unit/exceptions_spec.rb
|
@@ -648,8 +644,7 @@ files:
|
|
648
644
|
- spec/unit/formatters/error_inspectors/run_list_expansion_error_inspector_spec.rb
|
649
645
|
- spec/unit/handler/json_file_spec.rb
|
650
646
|
- spec/unit/handler_spec.rb
|
651
|
-
- spec/unit/
|
652
|
-
- spec/unit/json_compat_spect.rb
|
647
|
+
- spec/unit/json_compat_spec.rb
|
653
648
|
- spec/unit/knife/bootstrap_spec.rb
|
654
649
|
- spec/unit/knife/client_bulk_delete_spec.rb
|
655
650
|
- spec/unit/knife/client_create_spec.rb
|
@@ -711,6 +706,12 @@ files:
|
|
711
706
|
- spec/unit/knife/tag_create_spec.rb
|
712
707
|
- spec/unit/knife/tag_delete_spec.rb
|
713
708
|
- spec/unit/knife/tag_list_spec.rb
|
709
|
+
- spec/unit/knife/user_create_spec.rb
|
710
|
+
- spec/unit/knife/user_delete_spec.rb
|
711
|
+
- spec/unit/knife/user_edit_spec.rb
|
712
|
+
- spec/unit/knife/user_list_spec.rb
|
713
|
+
- spec/unit/knife/user_reregister_spec.rb
|
714
|
+
- spec/unit/knife/user_show_spec.rb
|
714
715
|
- spec/unit/knife_spec.rb
|
715
716
|
- spec/unit/log_spec.rb
|
716
717
|
- spec/unit/lwrp_spec.rb
|
@@ -721,7 +722,6 @@ files:
|
|
721
722
|
- spec/unit/mixin/deep_merge_spec.rb
|
722
723
|
- spec/unit/mixin/deprecation_spec.rb
|
723
724
|
- spec/unit/mixin/enforce_ownership_and_permissions_spec.rb
|
724
|
-
- spec/unit/mixin/language_spec.rb
|
725
725
|
- spec/unit/mixin/params_validate_spec.rb
|
726
726
|
- spec/unit/mixin/path_sanity_spec.rb
|
727
727
|
- spec/unit/mixin/securable_spec.rb
|
@@ -730,8 +730,8 @@ files:
|
|
730
730
|
- spec/unit/mixin/xml_escape_spec.rb
|
731
731
|
- spec/unit/monkey_patches/string_spec.rb
|
732
732
|
- spec/unit/node/attribute_spec.rb
|
733
|
+
- spec/unit/node/immutable_collections_spec.rb
|
733
734
|
- spec/unit/node_spec.rb
|
734
|
-
- spec/unit/openid_registration_spec.rb
|
735
735
|
- spec/unit/platform_spec.rb
|
736
736
|
- spec/unit/provider/breakpoint_spec.rb
|
737
737
|
- spec/unit/provider/cookbook_file_spec.rb
|
@@ -778,6 +778,7 @@ files:
|
|
778
778
|
- spec/unit/provider/package/yum_spec.rb
|
779
779
|
- spec/unit/provider/package/zypper_spec.rb
|
780
780
|
- spec/unit/provider/package_spec.rb
|
781
|
+
- spec/unit/provider/registry_key_spec.rb
|
781
782
|
- spec/unit/provider/remote_directory_spec.rb
|
782
783
|
- spec/unit/provider/remote_file_spec.rb
|
783
784
|
- spec/unit/provider/route_spec.rb
|
@@ -807,6 +808,7 @@ files:
|
|
807
808
|
- spec/unit/provider/user_spec.rb
|
808
809
|
- spec/unit/provider_spec.rb
|
809
810
|
- spec/unit/recipe_spec.rb
|
811
|
+
- spec/unit/registry_helper_spec.rb
|
810
812
|
- spec/unit/resource/apt_package_spec.rb
|
811
813
|
- spec/unit/resource/bash_spec.rb
|
812
814
|
- spec/unit/resource/breakpoint_spec.rb
|
@@ -842,6 +844,7 @@ files:
|
|
842
844
|
- spec/unit/resource/perl_spec.rb
|
843
845
|
- spec/unit/resource/portage_package_spec.rb
|
844
846
|
- spec/unit/resource/python_spec.rb
|
847
|
+
- spec/unit/resource/registry_key_spec.rb
|
845
848
|
- spec/unit/resource/remote_directory_spec.rb
|
846
849
|
- spec/unit/resource/remote_file_spec.rb
|
847
850
|
- spec/unit/resource/route_spec.rb
|
@@ -866,30 +869,32 @@ files:
|
|
866
869
|
- spec/unit/rest/auth_credentials_spec.rb
|
867
870
|
- spec/unit/rest_spec.rb
|
868
871
|
- spec/unit/role_spec.rb
|
872
|
+
- spec/unit/run_context/cookbook_compiler_spec.rb
|
869
873
|
- spec/unit/run_context_spec.rb
|
870
874
|
- spec/unit/run_list/run_list_expansion_spec.rb
|
871
875
|
- spec/unit/run_list/run_list_item_spec.rb
|
872
876
|
- spec/unit/run_list/versioned_recipe_list_spec.rb
|
873
877
|
- spec/unit/run_list_spec.rb
|
878
|
+
- spec/unit/run_lock_spec.rb
|
874
879
|
- spec/unit/run_status_spec.rb
|
875
880
|
- spec/unit/runner_spec.rb
|
876
881
|
- spec/unit/scan_access_control_spec.rb
|
877
882
|
- spec/unit/search/query_spec.rb
|
878
|
-
- spec/unit/
|
879
|
-
- spec/unit/
|
880
|
-
- spec/unit/
|
881
|
-
- spec/unit/
|
882
|
-
- spec/unit/
|
883
|
-
- spec/unit/
|
884
|
-
- spec/unit/solr_query_spec.rb
|
883
|
+
- spec/unit/shell/model_wrapper_spec.rb
|
884
|
+
- spec/unit/shell/shell_ext_spec.rb
|
885
|
+
- spec/unit/shell/shell_session_spec.rb
|
886
|
+
- spec/unit/shell_out_spec.rb
|
887
|
+
- spec/unit/shell_spec.rb
|
888
|
+
- spec/unit/user_spec.rb
|
885
889
|
- spec/unit/util/file_edit_spec.rb
|
886
890
|
- spec/unit/version_class_spec.rb
|
887
891
|
- spec/unit/version_constraint_spec.rb
|
888
|
-
- spec/unit/webui_user_spec.rb
|
889
892
|
- bin/chef-client
|
890
893
|
- bin/chef-solo
|
891
894
|
- bin/knife
|
895
|
+
- bin/chef-shell
|
892
896
|
- bin/shef
|
897
|
+
- bin/chef-apply
|
893
898
|
has_rdoc: true
|
894
899
|
homepage: http://wiki.opscode.com/display/chef
|
895
900
|
licenses: []
|