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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +76 -51
  3. data/Gemfile +1 -1
  4. data/README.md +9 -7
  5. data/Rakefile +1 -1
  6. data/VERSION +1 -1
  7. data/acceptance/Gemfile +3 -0
  8. data/acceptance/Gemfile.lock +19 -18
  9. data/acceptance/fips/.kitchen.yml +1 -1
  10. data/lib/chef/application/exit_code.rb +9 -0
  11. data/lib/chef/cookbook/file_system_file_vendor.rb +7 -8
  12. data/lib/chef/cookbook/metadata.rb +8 -0
  13. data/lib/chef/exceptions.rb +5 -0
  14. data/lib/chef/knife.rb +14 -15
  15. data/lib/chef/knife/ssh.rb +1 -0
  16. data/lib/chef/node/attribute.rb +1 -3
  17. data/lib/chef/node/attribute_collections.rb +20 -0
  18. data/lib/chef/provider/apt_repository.rb +1 -1
  19. data/lib/chef/provider/apt_update.rb +1 -1
  20. data/lib/chef/provider/group/groupadd.rb +2 -1
  21. data/lib/chef/provider/package/cab.rb +150 -0
  22. data/lib/chef/provider/package/rubygems.rb +0 -1
  23. data/lib/chef/provider/registry_key.rb +26 -2
  24. data/lib/chef/provider/remote_file/content.rb +1 -1
  25. data/lib/chef/provider/user.rb +10 -0
  26. data/lib/chef/provider/user/dscl.rb +2 -2
  27. data/lib/chef/provider/user/linux.rb +4 -14
  28. data/lib/chef/provider/user/pw.rb +2 -2
  29. data/lib/chef/provider/user/solaris.rb +15 -0
  30. data/lib/chef/provider/user/useradd.rb +1 -5
  31. data/lib/chef/providers.rb +1 -0
  32. data/lib/chef/resource/cab_package.rb +44 -0
  33. data/lib/chef/resource/registry_key.rb +3 -3
  34. data/lib/chef/resource/yum_repository.rb +1 -1
  35. data/lib/chef/resources.rb +1 -0
  36. data/lib/chef/server_api.rb +1 -1
  37. data/lib/chef/util/dsc/local_configuration_manager.rb +1 -1
  38. data/lib/chef/version.rb +1 -1
  39. data/spec/data/templates/chef-seattle20160930-4388-1crv7ef.txt +1 -0
  40. data/spec/data/templates/chef-seattle20160930-4388-jjfoae.txt +1 -0
  41. data/spec/data/templates/chef-seattle20160930-4388-umeq2c.txt +1 -0
  42. data/spec/functional/knife/cookbook_delete_spec.rb +48 -59
  43. data/spec/functional/resource/ifconfig_spec.rb +6 -0
  44. data/spec/functional/resource/registry_spec.rb +110 -4
  45. data/spec/unit/application/exit_code_spec.rb +10 -0
  46. data/spec/unit/cookbook/file_vendor_spec.rb +15 -0
  47. data/spec/unit/cookbook/metadata_spec.rb +19 -0
  48. data/spec/unit/exceptions_spec.rb +2 -0
  49. data/spec/unit/node/attribute_spec.rb +23 -1
  50. data/spec/unit/node/vivid_mash_spec.rb +27 -0
  51. data/spec/unit/provider/group/groupadd_spec.rb +118 -99
  52. data/spec/unit/provider/package/cab_spec.rb +218 -0
  53. data/spec/unit/provider/package/rubygems_spec.rb +2 -4
  54. data/spec/unit/provider/registry_key_spec.rb +94 -0
  55. data/spec/unit/provider/remote_file/content_spec.rb +1 -0
  56. data/spec/unit/provider/user/solaris_spec.rb +52 -40
  57. data/spec/unit/resource/apt_update_spec.rb +25 -17
  58. data/spec/unit/resource/cab_package_spec.rb +38 -0
  59. data/spec/unit/resource/registry_key_spec.rb +26 -10
  60. data/spec/unit/server_api_spec.rb +50 -0
  61. data/spec/unit/util/dsc/local_configuration_manager_spec.rb +10 -4
  62. 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.14.89
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-09-22 00:00:00.000000000 Z
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.14.89
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.14.89
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.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