cheffish 1.1.2 → 1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cheffish/chef_run.rb +13 -0
- data/lib/cheffish/rspec.rb +8 -0
- data/lib/cheffish/rspec/chef_run_support.rb +19 -52
- data/lib/cheffish/rspec/matchers.rb +4 -81
- data/lib/cheffish/rspec/matchers/be_idempotent.rb +16 -0
- data/lib/cheffish/rspec/matchers/emit_no_warnings_or_errors.rb +15 -0
- data/lib/cheffish/rspec/matchers/have_updated.rb +37 -0
- data/lib/cheffish/rspec/matchers/partially_match.rb +63 -0
- data/lib/cheffish/rspec/recipe_run_wrapper.rb +2 -2
- data/lib/cheffish/rspec/repository_support.rb +1 -1
- data/lib/cheffish/version.rb +1 -1
- data/spec/integration/chef_acl_spec.rb +384 -420
- data/spec/integration/chef_client_spec.rb +18 -24
- data/spec/integration/chef_container_spec.rb +4 -6
- data/spec/integration/chef_group_spec.rb +30 -46
- data/spec/integration/chef_mirror_spec.rb +60 -89
- data/spec/integration/chef_node_spec.rb +96 -124
- data/spec/integration/chef_organization_spec.rb +38 -57
- data/spec/integration/chef_user_spec.rb +16 -22
- data/spec/integration/private_key_spec.rb +120 -168
- data/spec/integration/recipe_dsl_spec.rb +4 -6
- data/spec/support/spec_support.rb +1 -2
- metadata +13 -8
- data/lib/cheffish/rspec/chef_run_wrapper.rb +0 -5
@@ -10,9 +10,6 @@ describe 'Cheffish Recipe DSL' do
|
|
10
10
|
context 'when we include with_chef_local_server' do
|
11
11
|
before :each do
|
12
12
|
@tmp_repo = tmp_repo = Dir.mktmpdir('chef_repo')
|
13
|
-
load_recipe do
|
14
|
-
with_chef_local_server :chef_repo_path => tmp_repo
|
15
|
-
end
|
16
13
|
end
|
17
14
|
|
18
15
|
after :each do
|
@@ -20,10 +17,11 @@ describe 'Cheffish Recipe DSL' do
|
|
20
17
|
end
|
21
18
|
|
22
19
|
it 'chef_nodes get put into said server' do
|
23
|
-
|
20
|
+
tmp_repo = @tmp_repo
|
21
|
+
expect_recipe {
|
22
|
+
with_chef_local_server :chef_repo_path => tmp_repo
|
24
23
|
chef_node 'blah'
|
25
|
-
|
26
|
-
expect(chef_run).to have_updated 'chef_node[blah]', :create
|
24
|
+
}.to have_updated 'chef_node[blah]', :create
|
27
25
|
expect(File).to exist("#{@tmp_repo}/nodes/blah.json")
|
28
26
|
end
|
29
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cheffish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Keiser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-zero
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4.
|
26
|
+
version: '4.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: chef
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
69
|
description: A library to manipulate Chef in Chef.
|
70
|
-
email: jkeiser@
|
70
|
+
email: jkeiser@chef.io
|
71
71
|
executables: []
|
72
72
|
extensions: []
|
73
73
|
extra_rdoc_files:
|
@@ -117,9 +117,13 @@ files:
|
|
117
117
|
- lib/cheffish/key_formatter.rb
|
118
118
|
- lib/cheffish/merged_config.rb
|
119
119
|
- lib/cheffish/recipe_dsl.rb
|
120
|
+
- lib/cheffish/rspec.rb
|
120
121
|
- lib/cheffish/rspec/chef_run_support.rb
|
121
|
-
- lib/cheffish/rspec/chef_run_wrapper.rb
|
122
122
|
- lib/cheffish/rspec/matchers.rb
|
123
|
+
- lib/cheffish/rspec/matchers/be_idempotent.rb
|
124
|
+
- lib/cheffish/rspec/matchers/emit_no_warnings_or_errors.rb
|
125
|
+
- lib/cheffish/rspec/matchers/have_updated.rb
|
126
|
+
- lib/cheffish/rspec/matchers/partially_match.rb
|
123
127
|
- lib/cheffish/rspec/recipe_run_wrapper.rb
|
124
128
|
- lib/cheffish/rspec/repository_support.rb
|
125
129
|
- lib/cheffish/server_api.rb
|
@@ -140,7 +144,7 @@ files:
|
|
140
144
|
- spec/support/key_support.rb
|
141
145
|
- spec/support/spec_support.rb
|
142
146
|
- spec/unit/get_private_key_spec.rb
|
143
|
-
homepage: http://
|
147
|
+
homepage: http://github.com/chef/cheffish
|
144
148
|
licenses: []
|
145
149
|
metadata: {}
|
146
150
|
post_install_message:
|
@@ -159,8 +163,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
163
|
version: '0'
|
160
164
|
requirements: []
|
161
165
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.4.
|
166
|
+
rubygems_version: 2.4.4
|
163
167
|
signing_key:
|
164
168
|
specification_version: 4
|
165
169
|
summary: A library to manipulate Chef in Chef.
|
166
170
|
test_files: []
|
171
|
+
has_rdoc:
|