chef 17.0.242-universal-mingw32 → 17.1.35-universal-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -12
  3. data/Rakefile +2 -2
  4. data/chef.gemspec +9 -20
  5. data/lib/chef/chef_fs/file_pattern.rb +2 -2
  6. data/lib/chef/compliance/default_attributes.rb +1 -1
  7. data/lib/chef/compliance/reporter/automate.rb +1 -1
  8. data/lib/chef/compliance/runner.rb +2 -2
  9. data/lib/chef/cookbook/cookbook_version_loader.rb +3 -3
  10. data/lib/chef/cookbook/gem_installer.rb +5 -1
  11. data/lib/chef/dsl/declare_resource.rb +5 -10
  12. data/lib/chef/formatters/doc.rb +2 -1
  13. data/lib/chef/node.rb +1 -1
  14. data/lib/chef/provider/directory.rb +6 -6
  15. data/lib/chef/provider/link.rb +1 -1
  16. data/lib/chef/provider/package/dnf/dnf_helper.py +11 -10
  17. data/lib/chef/provider/package/dnf/python_helper.rb +9 -8
  18. data/lib/chef/provider/package/yum.rb +1 -4
  19. data/lib/chef/provider/package/yum/python_helper.rb +15 -10
  20. data/lib/chef/provider/package/yum/yum_helper.py +46 -62
  21. data/lib/chef/provider/registry_key.rb +1 -1
  22. data/lib/chef/provider/service/systemd.rb +1 -1
  23. data/lib/chef/provider/systemd_unit.rb +1 -1
  24. data/lib/chef/provider/template/content.rb +1 -1
  25. data/lib/chef/provider/windows_script.rb +1 -1
  26. data/lib/chef/resource.rb +6 -7
  27. data/lib/chef/resource/execute.rb +2 -2
  28. data/lib/chef/resource/inspec_waiver_file_entry.rb +155 -0
  29. data/lib/chef/resource/lwrp_base.rb +17 -2
  30. data/lib/chef/resource/remote_file.rb +2 -2
  31. data/lib/chef/resource/windows_env.rb +1 -1
  32. data/lib/chef/resource/windows_font.rb +1 -1
  33. data/lib/chef/resource/windows_pagefile.rb +2 -2
  34. data/lib/chef/resource/windows_path.rb +2 -2
  35. data/lib/chef/resource/windows_security_policy.rb +5 -2
  36. data/lib/chef/resource/windows_task.rb +1 -1
  37. data/lib/chef/resource_builder.rb +8 -2
  38. data/lib/chef/resources.rb +1 -0
  39. data/lib/chef/run_lock.rb +1 -1
  40. data/lib/chef/runner.rb +1 -1
  41. data/lib/chef/shell/ext.rb +3 -3
  42. data/lib/chef/version.rb +1 -1
  43. data/lib/chef/win32/api.rb +9 -2
  44. data/spec/data/knife-home/.chef/plugins/knife/example_home_subcommand.rb +0 -0
  45. data/spec/data/knife-site-subcommands/plugins/knife/example_subcommand.rb +0 -0
  46. data/spec/data/knife_subcommand/test_explicit_category.rb +7 -0
  47. data/spec/data/knife_subcommand/test_name_mapping.rb +4 -0
  48. data/spec/data/knife_subcommand/test_yourself.rb +21 -0
  49. data/spec/functional/resource/dnf_package_spec.rb +857 -537
  50. data/spec/functional/resource/group_spec.rb +1 -1
  51. data/spec/functional/resource/link_spec.rb +1 -1
  52. data/spec/functional/resource/remote_file_spec.rb +1 -1
  53. data/spec/functional/resource/windows_env_spec.rb +2 -2
  54. data/spec/functional/resource/yum_package_spec.rb +495 -428
  55. data/spec/integration/client/client_spec.rb +0 -20
  56. data/spec/integration/recipes/unified_mode_spec.rb +70 -0
  57. data/spec/spec_helper.rb +3 -0
  58. data/spec/support/chef_helpers.rb +1 -1
  59. data/spec/support/shared/functional/execute_resource.rb +1 -1
  60. data/spec/support/shared/functional/knife.rb +37 -0
  61. data/spec/support/shared/integration/knife_support.rb +192 -0
  62. data/spec/support/shared/unit/knife_shared.rb +39 -0
  63. data/spec/support/shared/unit/provider/file.rb +1 -1
  64. data/spec/unit/chef_fs/file_system/repository/directory_spec.rb +1 -1
  65. data/spec/unit/compliance/runner_spec.rb +1 -1
  66. data/spec/unit/provider/link_spec.rb +1 -1
  67. data/spec/unit/provider/package/dnf/python_helper_spec.rb +1 -0
  68. data/spec/unit/provider/package/yum/python_helper_spec.rb +1 -0
  69. data/spec/unit/provider/service/systemd_service_spec.rb +2 -2
  70. data/spec/unit/provider/systemd_unit_spec.rb +2 -2
  71. data/spec/unit/resource/inspec_waiver_file_entry_spec.rb +80 -0
  72. data/tasks/rspec.rb +4 -9
  73. metadata +16 -160
  74. data/lib/chef/provider/package/yum/simplejson/LICENSE.txt +0 -79
  75. data/lib/chef/provider/package/yum/simplejson/__init__.py +0 -318
  76. data/lib/chef/provider/package/yum/simplejson/__init__.pyc +0 -0
  77. data/lib/chef/provider/package/yum/simplejson/decoder.py +0 -354
  78. data/lib/chef/provider/package/yum/simplejson/decoder.pyc +0 -0
  79. data/lib/chef/provider/package/yum/simplejson/encoder.py +0 -440
  80. data/lib/chef/provider/package/yum/simplejson/encoder.pyc +0 -0
  81. data/lib/chef/provider/package/yum/simplejson/scanner.py +0 -65
  82. data/lib/chef/provider/package/yum/simplejson/scanner.pyc +0 -0
  83. data/lib/chef/provider/package/yum/simplejson/tool.py +0 -37
@@ -21,6 +21,7 @@ require "spec_helper"
21
21
 
22
22
  describe Chef::Provider::Package::Yum::PythonHelper do
23
23
  let(:helper) { Chef::Provider::Package::Yum::PythonHelper.instance }
24
+ before(:each) { Singleton.__init__(Chef::Provider::Package::Yum::PythonHelper) }
24
25
 
25
26
  it "propagates stacktraces on stderr from the forked subprocess", :rhel do
26
27
  allow(helper).to receive(:yum_command).and_return("ruby -e 'raise \"your hands in the air\"'")
@@ -313,7 +313,7 @@ describe Chef::Provider::Service::Systemd do
313
313
 
314
314
  def with_systemctl_show(systemctl_path, stdout)
315
315
  systemctl_show = [systemctl_path, "--system", "show", "-p", "UnitFileState", "-p", "ActiveState", service_name]
316
- expect(provider).to receive(:shell_out!).with(*systemctl_show, {}).and_return(double(stdout: stdout, exitstatus: 0, error?: false))
316
+ expect(provider).to receive(:shell_out!).with(*systemctl_show).and_return(double(stdout: stdout, exitstatus: 0, error?: false))
317
317
  end
318
318
 
319
319
  describe "systemd_service_status" do
@@ -341,7 +341,7 @@ describe Chef::Provider::Service::Systemd do
341
341
 
342
342
  it "should error if '#{systemctl_path} --system show -p UnitFileState -p ActiveState service_name' returns non 0" do
343
343
  systemctl_show = [systemctl_path, "--system", "show", "-p", "UnitFileState", "-p", "ActiveState", service_name]
344
- allow(provider).to receive(:shell_out!).with(*systemctl_show, {}).and_return(shell_out_failure)
344
+ allow(provider).to receive(:shell_out!).with(*systemctl_show).and_return(shell_out_failure)
345
345
  expect { provider.systemd_service_status }.to raise_error(Chef::Exceptions::Service)
346
346
  end
347
347
  end
@@ -814,7 +814,7 @@ describe Chef::Provider::SystemdUnit, :linux_only do
814
814
 
815
815
  def with_systemctl_show(systemctl_path, instance, opts, stdout)
816
816
  systemctl_show = [systemctl_path, instance, "show", "-p", "UnitFileState", "-p", "ActiveState", unit_name]
817
- expect(provider).to receive(:shell_out).with(*systemctl_show, opts).and_return(double(stdout: stdout, exitstatus: 0, error?: false))
817
+ expect(provider).to receive(:shell_out).with(*systemctl_show, **opts).and_return(double(stdout: stdout, exitstatus: 0, error?: false))
818
818
  end
819
819
 
820
820
  describe "systemd_unit_status" do
@@ -841,7 +841,7 @@ describe Chef::Provider::SystemdUnit, :linux_only do
841
841
  current_resource.unit_name("foo@.service")
842
842
  template_error = "Failed to get properties: Unit name foo@.service is neither a valid invocation ID nor unit name."
843
843
  systemctl_show = [systemctl_path, "--system", "show", "-p", "UnitFileState", "-p", "ActiveState", "foo@.service"]
844
- expect(provider).to receive(:shell_out).with(*systemctl_show, {}).and_return(double(stdout: "", stderr: template_error, exitstatus: 1, error?: true))
844
+ expect(provider).to receive(:shell_out).with(*systemctl_show).and_return(double(stdout: "", stderr: template_error, exitstatus: 1, error?: true))
845
845
  expect(provider.systemd_unit_status).to eql({})
846
846
  end
847
847
  end
@@ -0,0 +1,80 @@
1
+ #
2
+ # Author:: Davin Taddeo (<davin@chef.io>)
3
+ # Copyright:: Copyright (c) Chef Software 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
+ describe Chef::Resource::InspecWaiverFileEntry do
22
+ let(:log_str) { "this is my string to log" }
23
+ let(:resource) { Chef::Resource::InspecWaiverFileEntry.new("fakey_fakerton") }
24
+
25
+ it "has a name of inspec_waiver_file_entry" do
26
+ expect(resource.resource_name).to eq(:inspec_waiver_file_entry)
27
+ end
28
+
29
+ it "setting the control property to a string does not raise error" do
30
+ expect { resource.control "my_test_control" }.not_to raise_error
31
+ end
32
+
33
+ it "sets the default action as :add" do
34
+ expect(resource.action).to eql([:add])
35
+ end
36
+
37
+ it "supports :add action" do
38
+ expect { resource.action :add }.not_to raise_error
39
+ end
40
+
41
+ it "supports :remove action" do
42
+ expect { resource.action :remove }.not_to raise_error
43
+ end
44
+
45
+ it "expects expiration property to fail with date format YYYY/MM/DD" do
46
+ expect { resource.expiration "2022/09/23" }.to raise_error(Chef::Exceptions::ValidationFailed)
47
+ end
48
+
49
+ it "expects expiration property to fail with invalid date 2022-02-31" do
50
+ expect { resource.expiration "2022-02-31" }.to raise_error(Chef::Exceptions::ValidationFailed)
51
+ end
52
+
53
+ it "expects expiration property to match YYYY-MM-DD" do
54
+ expect { resource.expiration "2022-09-23" }.not_to raise_error
55
+ end
56
+
57
+ it "expects the run_test property to fail validation when not a true/false value" do
58
+ expect { resource.run_test "yes" }.to raise_error(Chef::Exceptions::ValidationFailed)
59
+ end
60
+
61
+ it "expects the run_test property to only accept true or false values" do
62
+ expect { resource.run_test true }.not_to raise_error
63
+ end
64
+
65
+ it "expects the justification property to accept a string value" do
66
+ expect { resource.justification "Because I don't want to run this compliance test" }.not_to raise_error
67
+ end
68
+
69
+ it "expects the justification property to fail if given a non-string value" do
70
+ expect { resource.justification true }.to raise_error(Chef::Exceptions::ValidationFailed)
71
+ end
72
+
73
+ it "expects the backup property to fail validation when set to true" do
74
+ expect { resource.backup true }.to raise_error(Chef::Exceptions::ValidationFailed)
75
+ end
76
+
77
+ it "expects the backup property to fail validation when passed a string" do
78
+ expect { resource.backup "please" }.to raise_error(Chef::Exceptions::ValidationFailed)
79
+ end
80
+ end
data/tasks/rspec.rb CHANGED
@@ -29,6 +29,7 @@ begin
29
29
  Dir.chdir(gem) do
30
30
  puts "--- Running #{gem} specs"
31
31
  Bundler.with_unbundled_env do
32
+ puts "Executing tests in #{Dir.pwd}:"
32
33
  sh("bundle install --jobs=3 --retry=3 --path=../vendor/bundle")
33
34
  sh("bundle exec rake spec")
34
35
  end
@@ -44,9 +45,7 @@ begin
44
45
  RSpec::Core::RakeTask.new(:spec) do |t|
45
46
  t.verbose = false
46
47
  t.rspec_opts = %w{--profile}
47
- t.pattern = FileList["spec/**/*_spec.rb"].reject do |path|
48
- path =~ /knife.*/
49
- end
48
+ t.pattern = FileList["spec/**/*_spec.rb"]
50
49
  end
51
50
 
52
51
  namespace :spec do
@@ -55,9 +54,6 @@ begin
55
54
  t.verbose = false
56
55
  t.rspec_opts = %w{--profile}
57
56
  t.pattern = FileList["spec/**/*_spec.rb"]
58
- t.pattern = FileList["spec/**/*_spec.rb"].reject do |path|
59
- path =~ /knife.*/
60
- end
61
57
  end
62
58
 
63
59
  desc "Print Specdoc for all specs"
@@ -78,11 +74,10 @@ begin
78
74
  %i{unit functional integration stress}.each do |sub|
79
75
  desc "Run the chef specs under spec/#{sub}"
80
76
  RSpec::Core::RakeTask.new(sub) do |t|
77
+ puts "--- Running chef #{sub} specs"
81
78
  t.verbose = false
82
79
  t.rspec_opts = %w{--profile}
83
- t.pattern = FileList["spec/#{sub}/**/*_spec.rb"].reject do |path|
84
- path =~ /knife.*/
85
- end
80
+ t.pattern = FileList["spec/#{sub}/**/*_spec.rb"]
86
81
  end
87
82
  end
88
83
  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: 17.0.242
4
+ version: 17.1.35
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-27 00:00:00.000000000 Z
11
+ date: 2021-05-11 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: 17.0.242
19
+ version: 17.1.35
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: 17.0.242
26
+ version: 17.1.35
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: 17.0.242
33
+ version: 17.1.35
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: 17.0.242
40
+ version: 17.1.35
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: train-core
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -248,46 +248,6 @@ dependencies:
248
248
  - - "~>"
249
249
  - !ruby/object:Gem::Version
250
250
  version: '2.2'
251
- - !ruby/object:Gem::Dependency
252
- name: net-ssh
253
- requirement: !ruby/object:Gem::Requirement
254
- requirements:
255
- - - ">="
256
- - !ruby/object:Gem::Version
257
- version: '5.1'
258
- - - "<"
259
- - !ruby/object:Gem::Version
260
- version: '7'
261
- type: :runtime
262
- prerelease: false
263
- version_requirements: !ruby/object:Gem::Requirement
264
- requirements:
265
- - - ">="
266
- - !ruby/object:Gem::Version
267
- version: '5.1'
268
- - - "<"
269
- - !ruby/object:Gem::Version
270
- version: '7'
271
- - !ruby/object:Gem::Dependency
272
- name: net-ssh-multi
273
- requirement: !ruby/object:Gem::Requirement
274
- requirements:
275
- - - "~>"
276
- - !ruby/object:Gem::Version
277
- version: '1.2'
278
- - - ">="
279
- - !ruby/object:Gem::Version
280
- version: 1.2.1
281
- type: :runtime
282
- prerelease: false
283
- version_requirements: !ruby/object:Gem::Requirement
284
- requirements:
285
- - - "~>"
286
- - !ruby/object:Gem::Version
287
- version: '1.2'
288
- - - ">="
289
- - !ruby/object:Gem::Version
290
- version: 1.2.1
291
251
  - !ruby/object:Gem::Dependency
292
252
  name: net-sftp
293
253
  requirement: !ruby/object:Gem::Requirement
@@ -308,110 +268,6 @@ dependencies:
308
268
  - - "<"
309
269
  - !ruby/object:Gem::Version
310
270
  version: '4.0'
311
- - !ruby/object:Gem::Dependency
312
- name: ed25519
313
- requirement: !ruby/object:Gem::Requirement
314
- requirements:
315
- - - "~>"
316
- - !ruby/object:Gem::Version
317
- version: '1.2'
318
- type: :runtime
319
- prerelease: false
320
- version_requirements: !ruby/object:Gem::Requirement
321
- requirements:
322
- - - "~>"
323
- - !ruby/object:Gem::Version
324
- version: '1.2'
325
- - !ruby/object:Gem::Dependency
326
- name: bcrypt_pbkdf
327
- requirement: !ruby/object:Gem::Requirement
328
- requirements:
329
- - - "~>"
330
- - !ruby/object:Gem::Version
331
- version: '1.1'
332
- type: :runtime
333
- prerelease: false
334
- version_requirements: !ruby/object:Gem::Requirement
335
- requirements:
336
- - - "~>"
337
- - !ruby/object:Gem::Version
338
- version: '1.1'
339
- - !ruby/object:Gem::Dependency
340
- name: highline
341
- requirement: !ruby/object:Gem::Requirement
342
- requirements:
343
- - - ">="
344
- - !ruby/object:Gem::Version
345
- version: 1.6.9
346
- - - "<"
347
- - !ruby/object:Gem::Version
348
- version: '3'
349
- type: :runtime
350
- prerelease: false
351
- version_requirements: !ruby/object:Gem::Requirement
352
- requirements:
353
- - - ">="
354
- - !ruby/object:Gem::Version
355
- version: 1.6.9
356
- - - "<"
357
- - !ruby/object:Gem::Version
358
- version: '3'
359
- - !ruby/object:Gem::Dependency
360
- name: tty-prompt
361
- requirement: !ruby/object:Gem::Requirement
362
- requirements:
363
- - - "~>"
364
- - !ruby/object:Gem::Version
365
- version: '0.21'
366
- type: :runtime
367
- prerelease: false
368
- version_requirements: !ruby/object:Gem::Requirement
369
- requirements:
370
- - - "~>"
371
- - !ruby/object:Gem::Version
372
- version: '0.21'
373
- - !ruby/object:Gem::Dependency
374
- name: tty-screen
375
- requirement: !ruby/object:Gem::Requirement
376
- requirements:
377
- - - "~>"
378
- - !ruby/object:Gem::Version
379
- version: '0.6'
380
- type: :runtime
381
- prerelease: false
382
- version_requirements: !ruby/object:Gem::Requirement
383
- requirements:
384
- - - "~>"
385
- - !ruby/object:Gem::Version
386
- version: '0.6'
387
- - !ruby/object:Gem::Dependency
388
- name: tty-table
389
- requirement: !ruby/object:Gem::Requirement
390
- requirements:
391
- - - "~>"
392
- - !ruby/object:Gem::Version
393
- version: '0.11'
394
- type: :runtime
395
- prerelease: false
396
- version_requirements: !ruby/object:Gem::Requirement
397
- requirements:
398
- - - "~>"
399
- - !ruby/object:Gem::Version
400
- version: '0.11'
401
- - !ruby/object:Gem::Dependency
402
- name: pastel
403
- requirement: !ruby/object:Gem::Requirement
404
- requirements:
405
- - - ">="
406
- - !ruby/object:Gem::Version
407
- version: '0'
408
- type: :runtime
409
- prerelease: false
410
- version_requirements: !ruby/object:Gem::Requirement
411
- requirements:
412
- - - ">="
413
- - !ruby/object:Gem::Version
414
- version: '0'
415
271
  - !ruby/object:Gem::Dependency
416
272
  name: erubis
417
273
  requirement: !ruby/object:Gem::Requirement
@@ -1777,16 +1633,6 @@ files:
1777
1633
  - lib/chef/provider/package/yum.rb
1778
1634
  - lib/chef/provider/package/yum/python_helper.rb
1779
1635
  - lib/chef/provider/package/yum/rpm_utils.rb
1780
- - lib/chef/provider/package/yum/simplejson/LICENSE.txt
1781
- - lib/chef/provider/package/yum/simplejson/__init__.py
1782
- - lib/chef/provider/package/yum/simplejson/__init__.pyc
1783
- - lib/chef/provider/package/yum/simplejson/decoder.py
1784
- - lib/chef/provider/package/yum/simplejson/decoder.pyc
1785
- - lib/chef/provider/package/yum/simplejson/encoder.py
1786
- - lib/chef/provider/package/yum/simplejson/encoder.pyc
1787
- - lib/chef/provider/package/yum/simplejson/scanner.py
1788
- - lib/chef/provider/package/yum/simplejson/scanner.pyc
1789
- - lib/chef/provider/package/yum/simplejson/tool.py
1790
1636
  - lib/chef/provider/package/yum/version.rb
1791
1637
  - lib/chef/provider/package/yum/yum_cache.rb
1792
1638
  - lib/chef/provider/package/yum/yum_helper.py
@@ -1907,6 +1753,7 @@ files:
1907
1753
  - lib/chef/resource/hostname.rb
1908
1754
  - lib/chef/resource/http_request.rb
1909
1755
  - lib/chef/resource/ifconfig.rb
1756
+ - lib/chef/resource/inspec_waiver_file_entry.rb
1910
1757
  - lib/chef/resource/ips_package.rb
1911
1758
  - lib/chef/resource/kernel_module.rb
1912
1759
  - lib/chef/resource/ksh.rb
@@ -2310,6 +2157,11 @@ files:
2310
2157
  - spec/data/kitchen/openldap/recipes/gigantor.rb
2311
2158
  - spec/data/kitchen/openldap/recipes/ignoreme.rb
2312
2159
  - spec/data/kitchen/openldap/recipes/woot.rb
2160
+ - spec/data/knife-home/.chef/plugins/knife/example_home_subcommand.rb
2161
+ - spec/data/knife-site-subcommands/plugins/knife/example_subcommand.rb
2162
+ - spec/data/knife_subcommand/test_explicit_category.rb
2163
+ - spec/data/knife_subcommand/test_name_mapping.rb
2164
+ - spec/data/knife_subcommand/test_yourself.rb
2313
2165
  - spec/data/lwrp/providers/buck_passer.rb
2314
2166
  - spec/data/lwrp/providers/buck_passer_2.rb
2315
2167
  - spec/data/lwrp/providers/embedded_resource_accesses_providers_scope.rb
@@ -2663,10 +2515,12 @@ files:
2663
2515
  - spec/support/shared/functional/execute_resource.rb
2664
2516
  - spec/support/shared/functional/file_resource.rb
2665
2517
  - spec/support/shared/functional/http.rb
2518
+ - spec/support/shared/functional/knife.rb
2666
2519
  - spec/support/shared/functional/securable_resource.rb
2667
2520
  - spec/support/shared/functional/securable_resource_with_reporting.rb
2668
2521
  - spec/support/shared/functional/windows_script.rb
2669
2522
  - spec/support/shared/integration/integration_helper.rb
2523
+ - spec/support/shared/integration/knife_support.rb
2670
2524
  - spec/support/shared/matchers/exit_with_code.rb
2671
2525
  - spec/support/shared/matchers/match_environment_variable.rb
2672
2526
  - spec/support/shared/shared_examples.rb
@@ -2675,6 +2529,7 @@ files:
2675
2529
  - spec/support/shared/unit/application_dot_d.rb
2676
2530
  - spec/support/shared/unit/execute_resource.rb
2677
2531
  - spec/support/shared/unit/file_system_support.rb
2532
+ - spec/support/shared/unit/knife_shared.rb
2678
2533
  - spec/support/shared/unit/mock_shellout.rb
2679
2534
  - spec/support/shared/unit/platform_introspector.rb
2680
2535
  - spec/support/shared/unit/provider/file.rb
@@ -3015,6 +2870,7 @@ files:
3015
2870
  - spec/unit/resource/hostname_spec.rb
3016
2871
  - spec/unit/resource/http_request_spec.rb
3017
2872
  - spec/unit/resource/ifconfig_spec.rb
2873
+ - spec/unit/resource/inspec_waiver_file_entry_spec.rb
3018
2874
  - spec/unit/resource/ips_package_spec.rb
3019
2875
  - spec/unit/resource/kernel_module_spec.rb
3020
2876
  - spec/unit/resource/ksh_spec.rb
@@ -1,79 +0,0 @@
1
- simplejson is dual-licensed software. It is available under the terms
2
- of the MIT license, or the Academic Free License version 2.1. The full
3
- text of each license agreement is included below. This code is also
4
- licensed to the Python Software Foundation (PSF) under a Contributor
5
- Agreement.
6
-
7
- MIT License
8
- ===========
9
-
10
- Copyright (c) 2006 Bob Ippolito
11
-
12
- Permission is hereby granted, free of charge, to any person obtaining a copy of
13
- this software and associated documentation files (the "Software"), to deal in
14
- the Software without restriction, including without limitation the rights to
15
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
16
- of the Software, and to permit persons to whom the Software is furnished to do
17
- so, subject to the following conditions:
18
-
19
- The above copyright notice and this permission notice shall be included in all
20
- copies or substantial portions of the Software.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
- SOFTWARE.
29
-
30
- Academic Free License v. 2.1
31
- ============================
32
-
33
- Copyright (c) 2006 Bob Ippolito. All rights reserved.
34
-
35
- This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following notice immediately following the copyright notice for the Original Work:
36
-
37
- Licensed under the Academic Free License version 2.1
38
-
39
- 1) Grant of Copyright License. Licensor hereby grants You a world-wide, royalty-free, non-exclusive, perpetual, sublicenseable license to do the following:
40
-
41
- a) to reproduce the Original Work in copies;
42
-
43
- b) to prepare derivative works ("Derivative Works") based upon the Original Work;
44
-
45
- c) to distribute copies of the Original Work and Derivative Works to the public;
46
-
47
- d) to perform the Original Work publicly; and
48
-
49
- e) to display the Original Work publicly.
50
-
51
- 2) Grant of Patent License. Licensor hereby grants You a world-wide, royalty-free, non-exclusive, perpetual, sublicenseable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, to make, use, sell and offer for sale the Original Work and Derivative Works.
52
-
53
- 3) Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor hereby agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work, and by publishing the address of that information repository in a notice immediately following the copyright notice that applies to the Original Work.
54
-
55
- 4) Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior written permission of the Licensor. Nothing in this License shall be deemed to grant any rights to trademarks, copyrights, patents, trade secrets or any other intellectual property of Licensor except as expressly stated herein. No patent license is granted to make, use, sell or offer to sell embodiments of any patent claims other than the licensed claims defined in Section 2. No right is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under different terms from this License any Original Work that Licensor otherwise would have a right to license.
56
-
57
- 5) This section intentionally omitted.
58
-
59
- 6) Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
60
-
61
- 7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately proceeding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to Original Work is granted hereunder except under this disclaimer.
62
-
63
- 8) Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to any person for any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to liability for death or personal injury resulting from Licensor's negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You.
64
-
65
- 9) Acceptance and Termination. If You distribute copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. Nothing else but this License (or another written agreement between Licensor and You) grants You permission to create Derivative Works based upon the Original Work or to exercise any of the rights granted in Section 1 herein, and any attempt to do so except under the terms of this License (or another written agreement between Licensor and You) is expressly prohibited by U.S. copyright law, the equivalent laws of other countries, and by international treaty. Therefore, by exercising any of the rights granted to You in Section 1 herein, You indicate Your acceptance of this License and all of its terms and conditions.
66
-
67
- 10) Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
68
-
69
- 11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of the U.S. Copyright Act, 17 U.S.C. § 101 et seq., the equivalent laws of other countries, and international treaty. This section shall survive the termination of this License.
70
-
71
- 12) Attorneys Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
72
-
73
- 13) Miscellaneous. This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
74
-
75
- 14) Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
76
-
77
- 15) Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
78
-
79
- This license is Copyright (C) 2003-2004 Lawrence E. Rosen. All rights reserved. Permission is hereby granted to copy and distribute this license without modification. This license may not be modified without the express written permission of its copyright owner.