chef 12.14.89-universal-mingw32 → 12.15.19-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +76 -51
- data/Gemfile +1 -1
- data/README.md +9 -7
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/acceptance/Gemfile +3 -0
- data/acceptance/Gemfile.lock +19 -18
- data/acceptance/fips/.kitchen.yml +1 -1
- data/lib/chef/application/exit_code.rb +9 -0
- data/lib/chef/cookbook/file_system_file_vendor.rb +7 -8
- data/lib/chef/cookbook/metadata.rb +8 -0
- data/lib/chef/exceptions.rb +5 -0
- data/lib/chef/knife.rb +14 -15
- data/lib/chef/knife/ssh.rb +1 -0
- data/lib/chef/node/attribute.rb +1 -3
- data/lib/chef/node/attribute_collections.rb +20 -0
- data/lib/chef/provider/apt_repository.rb +1 -1
- data/lib/chef/provider/apt_update.rb +1 -1
- data/lib/chef/provider/group/groupadd.rb +2 -1
- data/lib/chef/provider/package/cab.rb +150 -0
- data/lib/chef/provider/package/rubygems.rb +0 -1
- data/lib/chef/provider/registry_key.rb +26 -2
- data/lib/chef/provider/remote_file/content.rb +1 -1
- data/lib/chef/provider/user.rb +10 -0
- data/lib/chef/provider/user/dscl.rb +2 -2
- data/lib/chef/provider/user/linux.rb +4 -14
- data/lib/chef/provider/user/pw.rb +2 -2
- data/lib/chef/provider/user/solaris.rb +15 -0
- data/lib/chef/provider/user/useradd.rb +1 -5
- data/lib/chef/providers.rb +1 -0
- data/lib/chef/resource/cab_package.rb +44 -0
- data/lib/chef/resource/registry_key.rb +3 -3
- data/lib/chef/resource/yum_repository.rb +1 -1
- data/lib/chef/resources.rb +1 -0
- data/lib/chef/server_api.rb +1 -1
- data/lib/chef/util/dsc/local_configuration_manager.rb +1 -1
- data/lib/chef/version.rb +1 -1
- data/spec/data/templates/chef-seattle20160930-4388-1crv7ef.txt +1 -0
- data/spec/data/templates/chef-seattle20160930-4388-jjfoae.txt +1 -0
- data/spec/data/templates/chef-seattle20160930-4388-umeq2c.txt +1 -0
- data/spec/functional/knife/cookbook_delete_spec.rb +48 -59
- data/spec/functional/resource/ifconfig_spec.rb +6 -0
- data/spec/functional/resource/registry_spec.rb +110 -4
- data/spec/unit/application/exit_code_spec.rb +10 -0
- data/spec/unit/cookbook/file_vendor_spec.rb +15 -0
- data/spec/unit/cookbook/metadata_spec.rb +19 -0
- data/spec/unit/exceptions_spec.rb +2 -0
- data/spec/unit/node/attribute_spec.rb +23 -1
- data/spec/unit/node/vivid_mash_spec.rb +27 -0
- data/spec/unit/provider/group/groupadd_spec.rb +118 -99
- data/spec/unit/provider/package/cab_spec.rb +218 -0
- data/spec/unit/provider/package/rubygems_spec.rb +2 -4
- data/spec/unit/provider/registry_key_spec.rb +94 -0
- data/spec/unit/provider/remote_file/content_spec.rb +1 -0
- data/spec/unit/provider/user/solaris_spec.rb +52 -40
- data/spec/unit/resource/apt_update_spec.rb +25 -17
- data/spec/unit/resource/cab_package_spec.rb +38 -0
- data/spec/unit/resource/registry_key_spec.rb +26 -10
- data/spec/unit/server_api_spec.rb +50 -0
- data/spec/unit/util/dsc/local_configuration_manager_spec.rb +10 -4
- metadata +13 -5
@@ -59,10 +59,6 @@ EOH
|
|
59
59
|
allow(lcm).to receive(:run_configuration_cmdlet).and_return(lcm_status)
|
60
60
|
end
|
61
61
|
context "that returns successfully" do
|
62
|
-
before(:each) do
|
63
|
-
allow(lcm).to receive(:run_configuration_cmdlet).and_return(lcm_status)
|
64
|
-
end
|
65
|
-
|
66
62
|
let(:lcm_standard_output) { normal_lcm_output }
|
67
63
|
let(:lcm_standard_error) { nil }
|
68
64
|
let(:lcm_cmdlet_success) { true }
|
@@ -138,4 +134,14 @@ EOH
|
|
138
134
|
expect(lcm.send(:dsc_module_import_failure?, dsc_resource_import_failure_output.gsub("CimException", "ArgumentException"))).to be(false)
|
139
135
|
end
|
140
136
|
end
|
137
|
+
|
138
|
+
describe "#run_configuration_cmdlet" do
|
139
|
+
context "when invalid dsc script is given" do
|
140
|
+
it "raises exception" do
|
141
|
+
configuration_document = "invalid-config"
|
142
|
+
shellout_flags = { :cwd => nil, :environment => nil, :timeout => nil }
|
143
|
+
expect { lcm.send(:run_configuration_cmdlet, configuration_document, true, shellout_flags) }.to raise_error(Chef::Exceptions::PowershellCmdletException)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
141
147
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.15.19
|
5
5
|
platform: universal-mingw32
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-config
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 12.
|
19
|
+
version: 12.15.19
|
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: 12.
|
26
|
+
version: 12.15.19
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-cli
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1418,6 +1418,7 @@ files:
|
|
1418
1418
|
- lib/chef/provider/package.rb
|
1419
1419
|
- lib/chef/provider/package/aix.rb
|
1420
1420
|
- lib/chef/provider/package/apt.rb
|
1421
|
+
- lib/chef/provider/package/cab.rb
|
1421
1422
|
- lib/chef/provider/package/chocolatey.rb
|
1422
1423
|
- lib/chef/provider/package/dpkg.rb
|
1423
1424
|
- lib/chef/provider/package/easy_install.rb
|
@@ -1511,6 +1512,7 @@ files:
|
|
1511
1512
|
- lib/chef/resource/batch.rb
|
1512
1513
|
- lib/chef/resource/bff_package.rb
|
1513
1514
|
- lib/chef/resource/breakpoint.rb
|
1515
|
+
- lib/chef/resource/cab_package.rb
|
1514
1516
|
- lib/chef/resource/chef_gem.rb
|
1515
1517
|
- lib/chef/resource/chocolatey_package.rb
|
1516
1518
|
- lib/chef/resource/conditional.rb
|
@@ -1989,6 +1991,9 @@ files:
|
|
1989
1991
|
- spec/data/standalone_cookbook/chefignore
|
1990
1992
|
- spec/data/standalone_cookbook/recipes/default.rb
|
1991
1993
|
- spec/data/standalone_cookbook/vendor/bundle/ruby/2.0.0/gems/multi_json-1.9.0/lib/multi_json.rb
|
1994
|
+
- spec/data/templates/chef-seattle20160930-4388-1crv7ef.txt
|
1995
|
+
- spec/data/templates/chef-seattle20160930-4388-jjfoae.txt
|
1996
|
+
- spec/data/templates/chef-seattle20160930-4388-umeq2c.txt
|
1992
1997
|
- spec/data/templates/seattle.txt
|
1993
1998
|
- spec/data/trusted_certs/example.crt
|
1994
1999
|
- spec/data/trusted_certs/intermediate.pem
|
@@ -2505,6 +2510,7 @@ files:
|
|
2505
2510
|
- spec/unit/provider/osx_profile_spec.rb
|
2506
2511
|
- spec/unit/provider/package/aix_spec.rb
|
2507
2512
|
- spec/unit/provider/package/apt_spec.rb
|
2513
|
+
- spec/unit/provider/package/cab_spec.rb
|
2508
2514
|
- spec/unit/provider/package/chocolatey_spec.rb
|
2509
2515
|
- spec/unit/provider/package/dpkg_spec.rb
|
2510
2516
|
- spec/unit/provider/package/easy_install_spec.rb
|
@@ -2584,6 +2590,7 @@ files:
|
|
2584
2590
|
- spec/unit/resource/bash_spec.rb
|
2585
2591
|
- spec/unit/resource/batch_spec.rb
|
2586
2592
|
- spec/unit/resource/breakpoint_spec.rb
|
2593
|
+
- spec/unit/resource/cab_package_spec.rb
|
2587
2594
|
- spec/unit/resource/chef_gem_spec.rb
|
2588
2595
|
- spec/unit/resource/chocolatey_package_spec.rb
|
2589
2596
|
- spec/unit/resource/conditional_action_not_nothing_spec.rb
|
@@ -2673,6 +2680,7 @@ files:
|
|
2673
2680
|
- spec/unit/runner_spec.rb
|
2674
2681
|
- spec/unit/scan_access_control_spec.rb
|
2675
2682
|
- spec/unit/search/query_spec.rb
|
2683
|
+
- spec/unit/server_api_spec.rb
|
2676
2684
|
- spec/unit/shell/model_wrapper_spec.rb
|
2677
2685
|
- spec/unit/shell/shell_ext_spec.rb
|
2678
2686
|
- spec/unit/shell/shell_session_spec.rb
|
@@ -2733,7 +2741,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2733
2741
|
version: '0'
|
2734
2742
|
requirements: []
|
2735
2743
|
rubyforge_project:
|
2736
|
-
rubygems_version: 2.6.
|
2744
|
+
rubygems_version: 2.6.7
|
2737
2745
|
signing_key:
|
2738
2746
|
specification_version: 4
|
2739
2747
|
summary: A systems integration framework, built to bring the benefits of configuration
|