chef 13.4.24 → 13.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/chef/knife/search.rb +2 -0
- data/lib/chef/provider/apt_preference.rb +1 -6
- data/lib/chef/provider/apt_repository.rb +1 -5
- data/lib/chef/provider/apt_update.rb +2 -6
- data/lib/chef/provider/package/dnf/dnf_helper.py +0 -1
- data/lib/chef/provider/support/yum_repo.erb +6 -0
- data/lib/chef/provider/windows_task.rb +6 -2
- data/lib/chef/provider/yum_repository.rb +0 -2
- data/lib/chef/provider/zypper_repository.rb +1 -1
- data/lib/chef/resource/apt_package.rb +1 -1
- data/lib/chef/resource/apt_repository.rb +1 -1
- data/lib/chef/resource/mount.rb +2 -8
- data/lib/chef/resource/yum_repository.rb +12 -9
- data/lib/chef/version.rb +1 -1
- data/spec/functional/resource/windows_task_spec.rb +7 -2
- data/spec/unit/provider/apt_repository_spec.rb +1 -1
- data/spec/unit/provider/windows_task_spec.rb +5 -5
- data/spec/unit/resource/apt_preference_spec.rb +13 -5
- data/spec/unit/resource/apt_repository_spec.rb +16 -8
- data/spec/unit/resource/apt_update_spec.rb +16 -8
- data/spec/unit/resource/mount_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bac3c67c9e66c16a65ba7d66b4ae611a1f5a444c
|
4
|
+
data.tar.gz: 59ed93bbf14a7ac6decee44bb162516194704e90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ddc48aa325b0f0c2c036a0d82d0a13fd6cabcd9a7b947bfdb1dfd442d74f966a910ed197b09babb56491f8e1bc02e01d00bf1cc1fbf7487e813ec34247f9870
|
7
|
+
data.tar.gz: 6e9025a3314ae89811819c131a0c281a3e5aafbc9f8e397a3648d32e5cb2c561cc5142c1d671b7dcb6d024f1fc3ac8b2e3060264069430e34fdd26bad8aa87a2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
13.
|
1
|
+
13.5.3
|
data/lib/chef/knife/search.rb
CHANGED
@@ -91,6 +91,8 @@ class Chef
|
|
91
91
|
search_args[:filter_result] = create_result_filter(config[:filter_result])
|
92
92
|
elsif (not ui.config[:attribute].nil?) && (not ui.config[:attribute].empty?)
|
93
93
|
search_args[:filter_result] = create_result_filter_from_attributes(ui.config[:attribute])
|
94
|
+
elsif config[:id_only]
|
95
|
+
search_args[:filter_result] = create_result_filter_from_attributes([])
|
94
96
|
end
|
95
97
|
|
96
98
|
begin
|
@@ -19,17 +19,12 @@
|
|
19
19
|
require "chef/provider"
|
20
20
|
require "chef/dsl/declare_resource"
|
21
21
|
require "chef/provider/noop"
|
22
|
-
require "chef/mixin/which"
|
23
22
|
require "chef/log"
|
24
23
|
|
25
24
|
class Chef
|
26
25
|
class Provider
|
27
26
|
class AptPreference < Chef::Provider
|
28
|
-
|
29
|
-
|
30
|
-
provides :apt_preference do
|
31
|
-
which("apt-get")
|
32
|
-
end
|
27
|
+
provides :apt_preference, os: "linux", platform_family: "debian"
|
33
28
|
|
34
29
|
APT_PREFERENCE_DIR = "/etc/apt/preferences.d".freeze
|
35
30
|
|
@@ -19,7 +19,6 @@
|
|
19
19
|
require "chef/resource"
|
20
20
|
require "chef/dsl/declare_resource"
|
21
21
|
require "chef/mixin/shell_out"
|
22
|
-
require "chef/mixin/which"
|
23
22
|
require "chef/http/simple"
|
24
23
|
require "chef/provider/noop"
|
25
24
|
|
@@ -27,11 +26,8 @@ class Chef
|
|
27
26
|
class Provider
|
28
27
|
class AptRepository < Chef::Provider
|
29
28
|
include Chef::Mixin::ShellOut
|
30
|
-
extend Chef::Mixin::Which
|
31
29
|
|
32
|
-
provides :apt_repository
|
33
|
-
which("apt-get")
|
34
|
-
end
|
30
|
+
provides :apt_repository, os: "linux", platform_family: "debian"
|
35
31
|
|
36
32
|
LIST_APT_KEYS = "apt-key list".freeze
|
37
33
|
LIST_APT_KEY_FINGERPRINTS = "apt-key adv --list-public-keys --with-fingerprint --with-colons".freeze
|
@@ -18,16 +18,12 @@
|
|
18
18
|
|
19
19
|
require "chef/provider"
|
20
20
|
require "chef/provider/noop"
|
21
|
-
require "chef/
|
21
|
+
require "chef/dsl/declare_resource"
|
22
22
|
|
23
23
|
class Chef
|
24
24
|
class Provider
|
25
25
|
class AptUpdate < Chef::Provider
|
26
|
-
|
27
|
-
|
28
|
-
provides :apt_update do
|
29
|
-
which("apt-get")
|
30
|
-
end
|
26
|
+
provides :apt_update, os: "linux", platform_family: "debian"
|
31
27
|
|
32
28
|
APT_CONF_DIR = "/etc/apt/apt.conf.d"
|
33
29
|
STAMP_DIR = "/var/lib/apt/periodic"
|
@@ -72,7 +72,6 @@ def exit_handler(signal, frame):
|
|
72
72
|
signal.signal(signal.SIGINT, exit_handler)
|
73
73
|
signal.signal(signal.SIGHUP, exit_handler)
|
74
74
|
signal.signal(signal.SIGPIPE, exit_handler)
|
75
|
-
signal.signal(signal.SIGCHLD, exit_handler)
|
76
75
|
|
77
76
|
while 1:
|
78
77
|
# kill self if we get orphaned (tragic)
|
@@ -61,6 +61,9 @@ keepalive=1
|
|
61
61
|
<% if @config.metadata_expire %>
|
62
62
|
metadata_expire=<%= @config.metadata_expire %>
|
63
63
|
<% end %>
|
64
|
+
<% if @config.metalink %>
|
65
|
+
metalink=<%= @config.metalink %>
|
66
|
+
<% end %>
|
64
67
|
<% if @config.mirrorlist %>
|
65
68
|
mirrorlist=<%= @config.mirrorlist %>
|
66
69
|
<% end %>
|
@@ -112,6 +115,9 @@ sslclientkey=<%= @config.sslclientkey %>
|
|
112
115
|
<% unless @config.sslverify.nil? %>
|
113
116
|
sslverify=<%= ( @config.sslverify ) ? 'true' : 'false' %>
|
114
117
|
<% end %>
|
118
|
+
<% if @config.throttle %>
|
119
|
+
throttle=<%= @config.throttle %>
|
120
|
+
<% end %>
|
115
121
|
<% if @config.timeout %>
|
116
122
|
timeout=<%= @config.timeout %>
|
117
123
|
<% end %>
|
@@ -220,7 +220,7 @@ class Chef
|
|
220
220
|
|
221
221
|
def start_day_updated?
|
222
222
|
current_day = DateTime.strptime(current_resource.start_day, convert_system_date_format_to_ruby_date_format)
|
223
|
-
new_day =
|
223
|
+
new_day = parse_day(new_resource.start_day)
|
224
224
|
current_day != new_day
|
225
225
|
end
|
226
226
|
|
@@ -230,7 +230,7 @@ class Chef
|
|
230
230
|
end
|
231
231
|
|
232
232
|
def convert_user_date_to_system_date(date_in_string)
|
233
|
-
|
233
|
+
parse_day(date_in_string).strftime(convert_system_date_format_to_ruby_long_date)
|
234
234
|
end
|
235
235
|
|
236
236
|
def convert_system_date_format_to_ruby_long_date
|
@@ -488,6 +488,10 @@ class Chef
|
|
488
488
|
current_resource.idle_time(duration.minutes.atom.to_i)
|
489
489
|
end
|
490
490
|
|
491
|
+
def parse_day(str)
|
492
|
+
Date.strptime(str, "%m/%d/%Y")
|
493
|
+
end
|
494
|
+
|
491
495
|
end
|
492
496
|
end
|
493
497
|
end
|
@@ -57,7 +57,7 @@ class Chef
|
|
57
57
|
end
|
58
58
|
|
59
59
|
action :refresh do
|
60
|
-
declare_resource(:execute, "zypper#{' --gpg-auto-import-keys' if new_resource.gpgautoimportkeys} refresh #{escaped_repo_name}") do
|
60
|
+
declare_resource(:execute, "zypper#{' --gpg-auto-import-keys' if new_resource.gpgautoimportkeys} --quiet --no-confirm refresh --force #{escaped_repo_name}") do
|
61
61
|
only_if "zypper lr #{escaped_repo_name}"
|
62
62
|
end
|
63
63
|
end
|
@@ -23,7 +23,7 @@ class Chef
|
|
23
23
|
class Resource
|
24
24
|
class AptPackage < Chef::Resource::Package
|
25
25
|
resource_name :apt_package
|
26
|
-
provides :package, os: "linux", platform_family:
|
26
|
+
provides :package, os: "linux", platform_family: "debian"
|
27
27
|
|
28
28
|
property :default_release, String, desired_state: false
|
29
29
|
|
data/lib/chef/resource/mount.rb
CHANGED
@@ -34,6 +34,8 @@ class Chef
|
|
34
34
|
property :supports, Hash, default: lazy { { remount: false } },
|
35
35
|
coerce: proc { |x| x.is_a?(Array) ? x.each_with_object({}) { |i, m| m[i] = true } : x }
|
36
36
|
|
37
|
+
property :password, String, sensitive: true
|
38
|
+
|
37
39
|
def initialize(name, run_context = nil)
|
38
40
|
super
|
39
41
|
@mount_point = name
|
@@ -151,14 +153,6 @@ class Chef
|
|
151
153
|
)
|
152
154
|
end
|
153
155
|
|
154
|
-
def password(arg = nil)
|
155
|
-
set_or_return(
|
156
|
-
:password,
|
157
|
-
arg,
|
158
|
-
:kind_of => [ String ]
|
159
|
-
)
|
160
|
-
end
|
161
|
-
|
162
156
|
def domain(arg = nil)
|
163
157
|
set_or_return(
|
164
158
|
:domain,
|
@@ -24,11 +24,12 @@ class Chef
|
|
24
24
|
resource_name :yum_repository
|
25
25
|
provides :yum_repository
|
26
26
|
|
27
|
-
# http://linux.die.net/man/5/yum.conf
|
27
|
+
# http://linux.die.net/man/5/yum.conf as well as
|
28
|
+
# http://dnf.readthedocs.io/en/latest/conf_ref.html
|
28
29
|
property :baseurl, [String, Array], regex: /.*/
|
29
|
-
property :cost, String, regex: /^\d+$/
|
30
30
|
property :clean_headers, [TrueClass, FalseClass], default: false # deprecated
|
31
31
|
property :clean_metadata, [TrueClass, FalseClass], default: true
|
32
|
+
property :cost, String, regex: /^\d+$/
|
32
33
|
property :description, String, regex: /.*/, default: "Yum Repository"
|
33
34
|
property :enabled, [TrueClass, FalseClass], default: true
|
34
35
|
property :enablegroups, [TrueClass, FalseClass]
|
@@ -44,17 +45,18 @@ class Chef
|
|
44
45
|
property :make_cache, [TrueClass, FalseClass], default: true
|
45
46
|
property :max_retries, [String, Integer]
|
46
47
|
property :metadata_expire, String, regex: [/^\d+$/, /^\d+[mhd]$/, /never/]
|
47
|
-
property :
|
48
|
-
property :mirrorlist, String, regex: /.*/
|
48
|
+
property :metalink, String, regex: /.*/
|
49
49
|
property :mirror_expire, String, regex: [/^\d+$/, /^\d+[mhd]$/]
|
50
|
+
property :mirrorexpire, String, regex: /.*/
|
50
51
|
property :mirrorlist_expire, String, regex: [/^\d+$/, /^\d+[mhd]$/]
|
52
|
+
property :mirrorlist, String, regex: /.*/
|
51
53
|
property :mode, default: "0644"
|
54
|
+
property :options, Hash
|
55
|
+
property :password, String, regex: /.*/
|
52
56
|
property :priority, String, regex: /^(\d?[0-9]|[0-9][0-9])$/
|
53
|
-
property :proxy, String, regex: /.*/
|
54
|
-
property :proxy_username, String, regex: /.*/
|
55
57
|
property :proxy_password, String, regex: /.*/
|
56
|
-
property :
|
57
|
-
property :
|
58
|
+
property :proxy_username, String, regex: /.*/
|
59
|
+
property :proxy, String, regex: /.*/
|
58
60
|
property :repo_gpgcheck, [TrueClass, FalseClass]
|
59
61
|
property :report_instanceid, [TrueClass, FalseClass]
|
60
62
|
property :repositoryid, String, regex: /.*/, name_property: true
|
@@ -65,7 +67,8 @@ class Chef
|
|
65
67
|
property :sslclientkey, String, regex: /.*/
|
66
68
|
property :sslverify, [TrueClass, FalseClass]
|
67
69
|
property :timeout, String, regex: /^\d+$/
|
68
|
-
property :
|
70
|
+
property :throttle, [String, Integer]
|
71
|
+
property :username, String, regex: /.*/
|
69
72
|
|
70
73
|
default_action :create
|
71
74
|
allowed_actions :create, :remove, :makecache, :add, :delete
|
data/lib/chef/version.rb
CHANGED
@@ -36,15 +36,20 @@ describe Chef::Resource::WindowsTask, :windows_only do
|
|
36
36
|
subject do
|
37
37
|
new_resource = Chef::Resource::WindowsTask.new(task_name, run_context)
|
38
38
|
new_resource.command task_name
|
39
|
+
# Make sure MM/DD/YYYY is accepted
|
40
|
+
new_resource.start_day "09/20/2017"
|
39
41
|
new_resource
|
40
42
|
end
|
41
43
|
|
42
|
-
it "creates a scheduled task to run every 1 hr" do
|
44
|
+
it "creates a scheduled task to run every 1 hr starting on 09/20/2017" do
|
43
45
|
subject.run_action(:create)
|
44
46
|
task_details = windows_task_provider.send(:load_task_hash, task_name)
|
45
47
|
expect(task_details[:TaskName]).to eq("\\chef-client")
|
46
48
|
expect(task_details[:TaskToRun]).to eq("chef-client")
|
47
49
|
expect(task_details[:"Repeat:Every"]).to eq("1 Hour(s), 0 Minute(s)")
|
50
|
+
|
51
|
+
# This test will not work across locales
|
52
|
+
expect(task_details[:StartDate]).to eq("9/20/2017")
|
48
53
|
end
|
49
54
|
end
|
50
55
|
|
@@ -300,7 +305,7 @@ describe Chef::Resource::WindowsTask, :windows_only do
|
|
300
305
|
context "when start_day is passed with frequency :onstart" do
|
301
306
|
it "raises error" do
|
302
307
|
subject.frequency :onstart
|
303
|
-
subject.start_day "
|
308
|
+
subject.start_day "09/20/2017"
|
304
309
|
expect { subject.after_created }.to raise_error("`start_day` property is not supported with frequency: onstart")
|
305
310
|
end
|
306
311
|
end
|
@@ -331,7 +331,7 @@ describe Chef::Provider::WindowsTask do
|
|
331
331
|
new_resource.frequency_modifier 15
|
332
332
|
new_resource.user "SYSTEM"
|
333
333
|
new_resource.execution_time_limit "PT72H"
|
334
|
-
new_resource.start_day "30
|
334
|
+
new_resource.start_day "03/30/2017"
|
335
335
|
new_resource.start_time "13:12"
|
336
336
|
end
|
337
337
|
|
@@ -383,7 +383,7 @@ describe Chef::Provider::WindowsTask do
|
|
383
383
|
new_resource.frequency_modifier 15
|
384
384
|
new_resource.user "SYSTEM"
|
385
385
|
new_resource.execution_time_limit "PT72H"
|
386
|
-
new_resource.start_day "30
|
386
|
+
new_resource.start_day "03/30/2017"
|
387
387
|
new_resource.start_time "13:12"
|
388
388
|
end
|
389
389
|
context "when start_day not changed" do
|
@@ -429,9 +429,9 @@ describe Chef::Provider::WindowsTask do
|
|
429
429
|
end
|
430
430
|
|
431
431
|
describe "#convert_user_date_to_system_date" do
|
432
|
-
it "when current resource start date is '30
|
433
|
-
allow(provider).to receive(:get_system_short_date_format).and_return("MM/
|
434
|
-
expect(provider.send(:convert_user_date_to_system_date, "30
|
432
|
+
it "when current resource start date is '05/30/2017' then returns '30/05/2017'" do
|
433
|
+
allow(provider).to receive(:get_system_short_date_format).and_return("dd/MM/yyyy")
|
434
|
+
expect(provider.send(:convert_user_date_to_system_date, "05/30/2017")).to eq("30/05/2017")
|
435
435
|
end
|
436
436
|
end
|
437
437
|
|
@@ -24,18 +24,26 @@ describe Chef::Resource::AptPreference do
|
|
24
24
|
let(:run_context) { Chef::RunContext.new(node, {}, events) }
|
25
25
|
let(:resource) { Chef::Resource::AptPreference.new("libmysqlclient16", run_context) }
|
26
26
|
|
27
|
-
it "
|
27
|
+
it "creates a new Chef::Resource::AptPreference" do
|
28
28
|
expect(resource).to be_a_kind_of(Chef::Resource)
|
29
29
|
expect(resource).to be_a_kind_of(Chef::Resource::AptPreference)
|
30
30
|
end
|
31
31
|
|
32
|
-
it "
|
33
|
-
|
32
|
+
it "resolves to a Noop class when on non-linux OS" do
|
33
|
+
node.automatic[:os] = "windows"
|
34
|
+
node.automatic[:platform_family] = "windows"
|
34
35
|
expect(resource.provider_for_action(:add)).to be_a(Chef::Provider::Noop)
|
35
36
|
end
|
36
37
|
|
37
|
-
it "
|
38
|
-
|
38
|
+
it "resolves to a Noop class when on non-debian linux" do
|
39
|
+
node.automatic[:os] = "linux"
|
40
|
+
node.automatic[:platform_family] = "gentoo"
|
41
|
+
expect(resource.provider_for_action(:add)).to be_a(Chef::Provider::Noop)
|
42
|
+
end
|
43
|
+
|
44
|
+
it "resolves to a AptUpdate class when on a debian platform_family" do
|
45
|
+
node.automatic[:os] = "linux"
|
46
|
+
node.automatic[:platform_family] = "debian"
|
39
47
|
expect(resource.provider_for_action(:add)).to be_a(Chef::Provider::AptPreference)
|
40
48
|
end
|
41
49
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Thom May (<thom@chef.io>)
|
3
|
-
# Copyright::
|
3
|
+
# Copyright:: 2016-2017, Chef Software, Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -24,27 +24,35 @@ describe Chef::Resource::AptRepository do
|
|
24
24
|
let(:run_context) { Chef::RunContext.new(node, {}, events) }
|
25
25
|
let(:resource) { Chef::Resource::AptRepository.new("multiverse", run_context) }
|
26
26
|
|
27
|
-
it "
|
27
|
+
it "creates a new Chef::Resource::AptRepository" do
|
28
28
|
expect(resource).to be_a_kind_of(Chef::Resource)
|
29
29
|
expect(resource).to be_a_kind_of(Chef::Resource::AptRepository)
|
30
30
|
end
|
31
31
|
|
32
|
-
it "
|
32
|
+
it "uses keyserver.ubuntu.com as the keyserver" do
|
33
33
|
expect(resource.keyserver).to eql("keyserver.ubuntu.com")
|
34
34
|
end
|
35
35
|
|
36
|
-
it "
|
36
|
+
it "default distribution is nillable" do
|
37
37
|
expect(resource.distribution(nil)).to eql(nil)
|
38
38
|
expect(resource.distribution).to eql(nil)
|
39
39
|
end
|
40
40
|
|
41
|
-
it "
|
42
|
-
|
41
|
+
it "resolves to a Noop class when on non-linux OS" do
|
42
|
+
node.automatic[:os] = "windows"
|
43
|
+
node.automatic[:platform_family] = "windows"
|
43
44
|
expect(resource.provider_for_action(:add)).to be_a(Chef::Provider::Noop)
|
44
45
|
end
|
45
46
|
|
46
|
-
it "
|
47
|
-
|
47
|
+
it "resolves to a Noop class when on non-debian linux" do
|
48
|
+
node.automatic[:os] = "linux"
|
49
|
+
node.automatic[:platform_family] = "gentoo"
|
50
|
+
expect(resource.provider_for_action(:add)).to be_a(Chef::Provider::Noop)
|
51
|
+
end
|
52
|
+
|
53
|
+
it "resolves to a AptUpdate class when on a debian platform_family" do
|
54
|
+
node.automatic[:os] = "linux"
|
55
|
+
node.automatic[:platform_family] = "debian"
|
48
56
|
expect(resource.provider_for_action(:add)).to be_a(Chef::Provider::AptRepository)
|
49
57
|
end
|
50
58
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Thom May (<thom@chef.io>)
|
3
|
-
# Copyright::
|
3
|
+
# Copyright:: 2016-2017, Chef Software, Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -24,27 +24,35 @@ describe Chef::Resource::AptUpdate do
|
|
24
24
|
let(:run_context) { Chef::RunContext.new(node, {}, events) }
|
25
25
|
let(:resource) { Chef::Resource::AptUpdate.new("update", run_context) }
|
26
26
|
|
27
|
-
it "
|
27
|
+
it "creates a new Chef::Resource::AptUpdate" do
|
28
28
|
expect(resource).to be_a_kind_of(Chef::Resource)
|
29
29
|
expect(resource).to be_a_kind_of(Chef::Resource::AptUpdate)
|
30
30
|
end
|
31
31
|
|
32
|
-
it "
|
32
|
+
it "default frequency is set to be 1 day" do
|
33
33
|
expect(resource.frequency).to eql(86_400)
|
34
34
|
end
|
35
35
|
|
36
|
-
it "
|
36
|
+
it "frequency accepts integers" do
|
37
37
|
resource.frequency(400)
|
38
38
|
expect(resource.frequency).to eql(400)
|
39
39
|
end
|
40
40
|
|
41
|
-
it "
|
42
|
-
|
41
|
+
it "resolves to a Noop class when on non-linux OS" do
|
42
|
+
node.automatic[:os] = "windows"
|
43
|
+
node.automatic[:platform_family] = "windows"
|
43
44
|
expect(resource.provider_for_action(:add)).to be_a(Chef::Provider::Noop)
|
44
45
|
end
|
45
46
|
|
46
|
-
it "
|
47
|
-
|
47
|
+
it "resolves to a Noop class when on non-debian linux" do
|
48
|
+
node.automatic[:os] = "linux"
|
49
|
+
node.automatic[:platform_family] = "gentoo"
|
50
|
+
expect(resource.provider_for_action(:add)).to be_a(Chef::Provider::Noop)
|
51
|
+
end
|
52
|
+
|
53
|
+
it "resolves to a AptUpdate class when on a debian platform_family" do
|
54
|
+
node.automatic[:os] = "linux"
|
55
|
+
node.automatic[:platform_family] = "debian"
|
48
56
|
expect(resource.provider_for_action(:add)).to be_a(Chef::Provider::AptUpdate)
|
49
57
|
end
|
50
58
|
end
|
@@ -205,7 +205,7 @@ describe Chef::Resource::Mount do
|
|
205
205
|
state = @resource.state_for_resource_reporter
|
206
206
|
expect(state[:mount_point]).to eq("T:")
|
207
207
|
expect(state[:username]).to eq("Administrator")
|
208
|
-
expect(state[:password]).to eq("
|
208
|
+
expect(state[:password]).to eq("*sensitive value suppressed*")
|
209
209
|
expect(state[:domain]).to eq("TEST_DOMAIN")
|
210
210
|
expect(state[:device_type]).to eql(:device)
|
211
211
|
expect(state[:fstype]).to eq("auto")
|
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: 13.
|
4
|
+
version: 13.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-28 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: 13.
|
19
|
+
version: 13.5.3
|
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: 13.
|
26
|
+
version: 13.5.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-cli
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|