chef 16.12.3-universal-mingw32 → 16.16.7-universal-mingw32

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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -2
  3. data/Rakefile +11 -0
  4. data/distro/ruby_bin_folder/AMD64/Chef.PowerShell.Wrapper.dll +0 -0
  5. data/distro/ruby_bin_folder/AMD64/Chef.PowerShell.dll +0 -0
  6. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Chef.PowerShell.Wrapper.Core.dll +0 -0
  7. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.dll +0 -0
  8. data/distro/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.pdb +0 -0
  9. data/distro/ruby_bin_folder/x86/Chef.PowerShell.dll +0 -0
  10. data/distro/ruby_bin_folder/x86/Chef.Powershell.Wrapper.dll +0 -0
  11. data/distro/ruby_bin_folder/x86/shared/Microsoft.NETCore.App/5.0.0/Chef.PowerShell.Wrapper.Core.dll +0 -0
  12. data/distro/ruby_bin_folder/x86/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.dll +0 -0
  13. data/distro/ruby_bin_folder/x86/shared/Microsoft.NETCore.App/5.0.0/Chef.Powershell.Core.pdb +0 -0
  14. data/lib/chef/cookbook/gem_installer.rb +5 -1
  15. data/lib/chef/cookbook_version.rb +26 -4
  16. data/lib/chef/data_collector/run_end_message.rb +1 -1
  17. data/lib/chef/deprecated.rb +14 -4
  18. data/lib/chef/exceptions.rb +3 -0
  19. data/lib/chef/formatters/error_mapper.rb +2 -2
  20. data/lib/chef/http.rb +5 -5
  21. data/lib/chef/knife/core/windows_bootstrap_context.rb +2 -3
  22. data/lib/chef/node.rb +20 -19
  23. data/lib/chef/policy_builder/policyfile.rb +5 -0
  24. data/lib/chef/provider/group/dscl.rb +1 -1
  25. data/lib/chef/provider/package/powershell.rb +5 -0
  26. data/lib/chef/provider/package/rubygems.rb +2 -2
  27. data/lib/chef/provider/template/content.rb +1 -1
  28. data/lib/chef/resource/homebrew_cask.rb +13 -7
  29. data/lib/chef/resource/mount.rb +1 -1
  30. data/lib/chef/resource/rhsm_subscription.rb +5 -5
  31. data/lib/chef/resource/support/client.erb +6 -0
  32. data/lib/chef/resource/systemd_unit.rb +1 -1
  33. data/lib/chef/resource/user_ulimit.rb +1 -0
  34. data/lib/chef/resource/windows_security_policy.rb +55 -39
  35. data/lib/chef/resource/windows_uac.rb +3 -1
  36. data/lib/chef/resource/windows_user_privilege.rb +1 -1
  37. data/lib/chef/version.rb +1 -1
  38. data/lib/chef/win32/api.rb +9 -2
  39. data/lib/chef/win32/version.rb +1 -0
  40. data/spec/functional/resource/group_spec.rb +5 -1
  41. data/spec/functional/resource/link_spec.rb +8 -0
  42. data/spec/unit/cookbook_version_spec.rb +52 -0
  43. data/spec/unit/data_collector_spec.rb +47 -1
  44. data/spec/unit/knife/core/windows_bootstrap_context_spec.rb +3 -3
  45. data/spec/unit/policy_builder/policyfile_spec.rb +11 -1
  46. data/spec/unit/provider/package/powershell_spec.rb +74 -12
  47. data/spec/unit/provider/package/rubygems_spec.rb +3 -3
  48. data/spec/unit/resource/homebrew_cask_spec.rb +29 -11
  49. data/spec/unit/resource/mount_spec.rb +10 -0
  50. data/spec/unit/resource/rhsm_subscription_spec.rb +50 -3
  51. data/spec/unit/resource/systemd_unit_spec.rb +1 -1
  52. data/spec/unit/resource/user_ulimit_spec.rb +14 -1
  53. data/tasks/rspec.rb +1 -1
  54. metadata +7 -7
@@ -17,7 +17,6 @@
17
17
  #
18
18
 
19
19
  require "spec_helper"
20
-
21
20
  describe Chef::Resource::UserUlimit do
22
21
  let(:node) { Chef::Node.new }
23
22
  let(:events) { Chef::EventDispatch::Dispatcher.new }
@@ -50,4 +49,18 @@ describe Chef::Resource::UserUlimit do
50
49
  expect { resource.action :create }.not_to raise_error
51
50
  expect { resource.action :delete }.not_to raise_error
52
51
  end
52
+
53
+ describe "sensitive attribute" do
54
+ context "should be insensitive by default" do
55
+ it { expect(resource.sensitive).to(be_falsey) }
56
+ end
57
+
58
+ context "when set" do
59
+ before { resource.sensitive(true) }
60
+
61
+ it "should be set on the resource" do
62
+ expect(resource.sensitive).to(be_truthy)
63
+ end
64
+ end
65
+ end
53
66
  end
data/tasks/rspec.rb CHANGED
@@ -28,7 +28,7 @@ begin
28
28
  %w{chef-utils chef-config}.each do |gem|
29
29
  Dir.chdir(gem) do
30
30
  Bundler.with_unbundled_env do
31
- sh("bundle install --jobs=3 --retry=3")
31
+ sh("bundle install --jobs=3 --retry=3 --path=../vendor/bundle")
32
32
  sh("bundle exec rake spec")
33
33
  end
34
34
  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: 16.12.3
4
+ version: 16.16.7
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: 2021-04-03 00:00:00.000000000 Z
11
+ date: 2021-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-config
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 16.12.3
19
+ version: 16.16.7
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: 16.12.3
26
+ version: 16.16.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chef-utils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 16.12.3
33
+ version: 16.16.7
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 16.12.3
40
+ version: 16.16.7
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: train-core
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -3557,7 +3557,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3557
3557
  - !ruby/object:Gem::Version
3558
3558
  version: '0'
3559
3559
  requirements: []
3560
- rubygems_version: 3.1.4
3560
+ rubygems_version: 3.1.6
3561
3561
  signing_key:
3562
3562
  specification_version: 4
3563
3563
  summary: A systems integration framework, built to bring the benefits of configuration