chefspec 5.2.0 → 5.3.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +3 -3
- data/chefspec.gemspec +1 -1
- data/examples/bff_package/recipes/install.rb +13 -0
- data/examples/bff_package/recipes/purge.rb +13 -0
- data/examples/bff_package/recipes/remove.rb +13 -0
- data/examples/bff_package/recipes/upgrade.rb +13 -0
- data/examples/bff_package/spec/install_spec.rb +23 -0
- data/examples/bff_package/spec/purge_spec.rb +19 -0
- data/examples/bff_package/spec/remove_spec.rb +19 -0
- data/examples/bff_package/spec/upgrade_spec.rb +19 -0
- data/examples/homebrew_package/recipes/install.rb +13 -0
- data/examples/homebrew_package/recipes/purge.rb +13 -0
- data/examples/homebrew_package/recipes/remove.rb +13 -0
- data/examples/homebrew_package/recipes/upgrade.rb +13 -0
- data/examples/homebrew_package/spec/install_spec.rb +23 -0
- data/examples/homebrew_package/spec/purge_spec.rb +19 -0
- data/examples/homebrew_package/spec/remove_spec.rb +19 -0
- data/examples/homebrew_package/spec/upgrade_spec.rb +19 -0
- data/examples/launchd/recipes/create.rb +5 -0
- data/examples/launchd/recipes/create_if_missing.rb +3 -0
- data/examples/launchd/recipes/delete.rb +3 -0
- data/examples/launchd/recipes/disable.rb +3 -0
- data/examples/launchd/recipes/enable.rb +3 -0
- data/examples/launchd/spec/create_if_missing_spec.rb +10 -0
- data/examples/launchd/spec/create_spec.rb +14 -0
- data/examples/launchd/spec/delete_spec.rb +10 -0
- data/examples/launchd/spec/disable_spec.rb +10 -0
- data/examples/launchd/spec/enable_spec.rb +10 -0
- data/examples/openbsd_package/recipes/install.rb +13 -0
- data/examples/openbsd_package/recipes/purge.rb +13 -0
- data/examples/openbsd_package/recipes/remove.rb +13 -0
- data/examples/openbsd_package/recipes/upgrade.rb +13 -0
- data/examples/openbsd_package/spec/install_spec.rb +23 -0
- data/examples/openbsd_package/spec/purge_spec.rb +19 -0
- data/examples/openbsd_package/spec/remove_spec.rb +19 -0
- data/examples/openbsd_package/spec/upgrade_spec.rb +19 -0
- data/examples/osx_profile/recipes/install.rb +8 -0
- data/examples/osx_profile/recipes/remove.rb +8 -0
- data/examples/osx_profile/spec/install_spec.rb +15 -0
- data/examples/osx_profile/spec/remove_spec.rb +13 -0
- data/examples/paludis_package/recipes/install.rb +13 -0
- data/examples/paludis_package/recipes/purge.rb +13 -0
- data/examples/paludis_package/recipes/remove.rb +13 -0
- data/examples/paludis_package/recipes/upgrade.rb +13 -0
- data/examples/paludis_package/spec/install_spec.rb +23 -0
- data/examples/paludis_package/spec/purge_spec.rb +19 -0
- data/examples/paludis_package/spec/remove_spec.rb +19 -0
- data/examples/paludis_package/spec/upgrade_spec.rb +19 -0
- data/examples/ruby_block/recipes/create.rb +8 -0
- data/examples/ruby_block/spec/create_spec.rb +13 -0
- data/examples/script/recipes/run_ksh.rb +13 -0
- data/examples/script/spec/run_ksh_spec.rb +23 -0
- data/examples/solaris_package/recipes/upgrade.rb +13 -0
- data/examples/solaris_package/spec/upgrade_spec.rb +19 -0
- data/examples/systemd_unit/recipes/create.rb +3 -0
- data/examples/systemd_unit/recipes/delete.rb +3 -0
- data/examples/systemd_unit/recipes/disable.rb +3 -0
- data/examples/systemd_unit/recipes/enable.rb +3 -0
- data/examples/systemd_unit/recipes/mask.rb +3 -0
- data/examples/systemd_unit/recipes/reload_or_restart.rb +3 -0
- data/examples/systemd_unit/recipes/reload_or_try_restart.rb +3 -0
- data/examples/systemd_unit/recipes/restart.rb +3 -0
- data/examples/systemd_unit/recipes/start.rb +3 -0
- data/examples/systemd_unit/recipes/stop.rb +3 -0
- data/examples/systemd_unit/recipes/try_restart.rb +3 -0
- data/examples/systemd_unit/recipes/unmask.rb +3 -0
- data/examples/systemd_unit/spec/create_spec.rb +10 -0
- data/examples/systemd_unit/spec/delete_spec.rb +10 -0
- data/examples/systemd_unit/spec/disable_spec.rb +10 -0
- data/examples/systemd_unit/spec/enable_spec.rb +10 -0
- data/examples/systemd_unit/spec/mask_spec.rb +10 -0
- data/examples/systemd_unit/spec/reload_or_restart_spec.rb +10 -0
- data/examples/systemd_unit/spec/reload_or_try_restart_spec.rb +10 -0
- data/examples/systemd_unit/spec/restart_spec.rb +10 -0
- data/examples/systemd_unit/spec/start_spec.rb +10 -0
- data/examples/systemd_unit/spec/stop_spec.rb +10 -0
- data/examples/systemd_unit/spec/try_restart_spec.rb +10 -0
- data/examples/systemd_unit/spec/unmask_spec.rb +10 -0
- data/examples/zypper_package/recipes/install.rb +13 -0
- data/examples/zypper_package/recipes/purge.rb +13 -0
- data/examples/zypper_package/recipes/remove.rb +13 -0
- data/examples/zypper_package/recipes/upgrade.rb +13 -0
- data/examples/zypper_package/spec/install_spec.rb +23 -0
- data/examples/zypper_package/spec/purge_spec.rb +19 -0
- data/examples/zypper_package/spec/remove_spec.rb +19 -0
- data/examples/zypper_package/spec/upgrade_spec.rb +19 -0
- data/features/attributes.feature +1 -1
- data/features/bff_package.feature +12 -0
- data/features/chocolatey_package.feature +1 -0
- data/features/compile_time.feature +1 -1
- data/features/dsc_resource.feature +1 -0
- data/features/homebrew_package.feature +12 -0
- data/features/launchd.feature +23 -0
- data/features/openbsd_package.feature +14 -0
- data/features/osx_profile.feature +19 -0
- data/features/paludis_package.feature +14 -0
- data/features/roles.feature +1 -1
- data/features/ruby_block.feature +1 -0
- data/features/script.feature +8 -0
- data/features/solaris_package.feature +1 -0
- data/features/systemd_unit.feature +33 -0
- data/features/windows_package.feature +1 -0
- data/features/zypper_package.feature +18 -0
- data/lib/chefspec/api.rb +8 -0
- data/lib/chefspec/api/bff_package.rb +154 -0
- data/lib/chefspec/api/homebrew_package.rb +154 -0
- data/lib/chefspec/api/launchd.rb +151 -0
- data/lib/chefspec/api/openbsd_package.rb +155 -0
- data/lib/chefspec/api/osx_profile.rb +63 -0
- data/lib/chefspec/api/paludis_package.rb +155 -0
- data/lib/chefspec/api/ruby_block.rb +31 -0
- data/lib/chefspec/api/script.rb +39 -0
- data/lib/chefspec/api/solaris_package.rb +37 -0
- data/lib/chefspec/api/systemd_unit.rb +353 -0
- data/lib/chefspec/api/zypper_package.rb +154 -0
- data/lib/chefspec/version.rb +1 -1
- metadata +111 -3
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
module ChefSpec::API
|
|
2
|
+
# @since 5.1.0
|
|
3
|
+
module ZypperPackageMatchers
|
|
4
|
+
ChefSpec.define_matcher :zypper_package
|
|
5
|
+
|
|
6
|
+
#
|
|
7
|
+
# Assert that a +zypper_package+ resource exists in the Chef run with the
|
|
8
|
+
# action +:install+. Given a Chef Recipe that installs "apache2" as a
|
|
9
|
+
# +zypper_package+:
|
|
10
|
+
#
|
|
11
|
+
# zypper_package 'apache2' do
|
|
12
|
+
# action :install
|
|
13
|
+
# end
|
|
14
|
+
#
|
|
15
|
+
# The Examples section demonstrates the different ways to test a
|
|
16
|
+
# +zypper_package+ resource with ChefSpec.
|
|
17
|
+
#
|
|
18
|
+
# @example Assert that a +zypper_package+ was installed
|
|
19
|
+
# expect(chef_run).to install_zypper_package('apache2')
|
|
20
|
+
#
|
|
21
|
+
# @example Assert that a +zypper_package+ was installed with predicate matchers
|
|
22
|
+
# expect(chef_run).to install_zypper_package('apache2').with_version('1.2.3')
|
|
23
|
+
#
|
|
24
|
+
# @example Assert that a +zypper_package+ was installed with attributes
|
|
25
|
+
# expect(chef_run).to install_zypper_package('apache2').with(version: '1.2.3')
|
|
26
|
+
#
|
|
27
|
+
# @example Assert that a +zypper_package+ was installed using a regex
|
|
28
|
+
# expect(chef_run).to install_zypper_package('apache2').with(version: /(\d+\.){2}\.\d+/)
|
|
29
|
+
#
|
|
30
|
+
# @example Assert that a +zypper_package+ was _not_ installed
|
|
31
|
+
# expect(chef_run).to_not install_zypper_package('apache2')
|
|
32
|
+
#
|
|
33
|
+
#
|
|
34
|
+
# @param [String, Regex] resource_name
|
|
35
|
+
# the name of the resource to match
|
|
36
|
+
#
|
|
37
|
+
# @return [ChefSpec::Matchers::ResourceMatcher]
|
|
38
|
+
#
|
|
39
|
+
def install_zypper_package(resource_name)
|
|
40
|
+
ChefSpec::Matchers::ResourceMatcher.new(:zypper_package, :install, resource_name)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
#
|
|
44
|
+
# Assert that a +zypper_package+ resource exists in the Chef run with the
|
|
45
|
+
# action +:purge+. Given a Chef Recipe that purges "apache2" as a
|
|
46
|
+
# +zypper_package+:
|
|
47
|
+
#
|
|
48
|
+
# zypper_package 'apache2' do
|
|
49
|
+
# action :purge
|
|
50
|
+
# end
|
|
51
|
+
#
|
|
52
|
+
# The Examples section demonstrates the different ways to test a
|
|
53
|
+
# +zypper_package+ resource with ChefSpec.
|
|
54
|
+
#
|
|
55
|
+
# @example Assert that a +zypper_package+ was purged
|
|
56
|
+
# expect(chef_run).to purge_zypper_package('apache2')
|
|
57
|
+
#
|
|
58
|
+
# @example Assert that a +zypper_package+ was purged with predicate matchers
|
|
59
|
+
# expect(chef_run).to purge_zypper_package('apache2').with_version('1.2.3')
|
|
60
|
+
#
|
|
61
|
+
# @example Assert that a +zypper_package+ was purged with attributes
|
|
62
|
+
# expect(chef_run).to purge_zypper_package('apache2').with(version: '1.2.3')
|
|
63
|
+
#
|
|
64
|
+
# @example Assert that a +zypper_package+ was purged using a regex
|
|
65
|
+
# expect(chef_run).to purge_zypper_package('apache2').with(version: /(\d+\.){2}\.\d+/)
|
|
66
|
+
#
|
|
67
|
+
# @example Assert that a +zypper_package+ was _not_ purged
|
|
68
|
+
# expect(chef_run).to_not purge_zypper_package('apache2')
|
|
69
|
+
#
|
|
70
|
+
#
|
|
71
|
+
# @param [String, Regex] resource_name
|
|
72
|
+
# the name of the resource to match
|
|
73
|
+
#
|
|
74
|
+
# @return [ChefSpec::Matchers::ResourceMatcher]
|
|
75
|
+
#
|
|
76
|
+
def purge_zypper_package(resource_name)
|
|
77
|
+
ChefSpec::Matchers::ResourceMatcher.new(:zypper_package, :purge, resource_name)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
#
|
|
81
|
+
# Assert that a +zypper_package+ resource exists in the Chef run with the
|
|
82
|
+
# action +:remove+. Given a Chef Recipe that removes "apache2" as a
|
|
83
|
+
# +zypper_package+:
|
|
84
|
+
#
|
|
85
|
+
# zypper_package 'apache2' do
|
|
86
|
+
# action :remove
|
|
87
|
+
# end
|
|
88
|
+
#
|
|
89
|
+
# The Examples section demonstrates the different ways to test a
|
|
90
|
+
# +zypper_package+ resource with ChefSpec.
|
|
91
|
+
#
|
|
92
|
+
# @example Assert that a +zypper_package+ was removed
|
|
93
|
+
# expect(chef_run).to remove_zypper_package('apache2')
|
|
94
|
+
#
|
|
95
|
+
# @example Assert that a +zypper_package+ was removed with predicate matchers
|
|
96
|
+
# expect(chef_run).to remove_zypper_package('apache2').with_version('1.2.3')
|
|
97
|
+
#
|
|
98
|
+
# @example Assert that a +zypper_package+ was removed with attributes
|
|
99
|
+
# expect(chef_run).to remove_zypper_package('apache2').with(version: '1.2.3')
|
|
100
|
+
#
|
|
101
|
+
# @example Assert that a +zypper_package+ was removed using a regex
|
|
102
|
+
# expect(chef_run).to remove_zypper_package('apache2').with(version: /(\d+\.){2}\.\d+/)
|
|
103
|
+
#
|
|
104
|
+
# @example Assert that a +zypper_package+ was _not_ removed
|
|
105
|
+
# expect(chef_run).to_not remove_zypper_package('apache2')
|
|
106
|
+
#
|
|
107
|
+
#
|
|
108
|
+
# @param [String, Regex] resource_name
|
|
109
|
+
# the name of the resource to match
|
|
110
|
+
#
|
|
111
|
+
# @return [ChefSpec::Matchers::ResourceMatcher]
|
|
112
|
+
#
|
|
113
|
+
def remove_zypper_package(resource_name)
|
|
114
|
+
ChefSpec::Matchers::ResourceMatcher.new(:zypper_package, :remove, resource_name)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
#
|
|
118
|
+
# Assert that a +zypper_package+ resource exists in the Chef run with the
|
|
119
|
+
# action +:upgrade+. Given a Chef Recipe that upgrades "apache2" as a
|
|
120
|
+
# +zypper_package+:
|
|
121
|
+
#
|
|
122
|
+
# zypper_package 'apache2' do
|
|
123
|
+
# action :upgrade
|
|
124
|
+
# end
|
|
125
|
+
#
|
|
126
|
+
# The Examples section demonstrates the different ways to test a
|
|
127
|
+
# +zypper_package+ resource with ChefSpec.
|
|
128
|
+
#
|
|
129
|
+
# @example Assert that a +zypper_package+ was upgraded
|
|
130
|
+
# expect(chef_run).to upgrade_zypper_package('apache2')
|
|
131
|
+
#
|
|
132
|
+
# @example Assert that a +zypper_package+ was upgraded with predicate matchers
|
|
133
|
+
# expect(chef_run).to upgrade_zypper_package('apache2').with_version('1.2.3')
|
|
134
|
+
#
|
|
135
|
+
# @example Assert that a +zypper_package+ was upgraded with attributes
|
|
136
|
+
# expect(chef_run).to upgrade_zypper_package('apache2').with(version: '1.2.3')
|
|
137
|
+
#
|
|
138
|
+
# @example Assert that a +zypper_package+ was upgraded using a regex
|
|
139
|
+
# expect(chef_run).to upgrade_zypper_package('apache2').with(version: /(\d+\.){2}\.\d+/)
|
|
140
|
+
#
|
|
141
|
+
# @example Assert that a +zypper_package+ was _not_ upgraded
|
|
142
|
+
# expect(chef_run).to_not upgrade_zypper_package('apache2')
|
|
143
|
+
#
|
|
144
|
+
#
|
|
145
|
+
# @param [String, Regex] resource_name
|
|
146
|
+
# the name of the resource to match
|
|
147
|
+
#
|
|
148
|
+
# @return [ChefSpec::Matchers::ResourceMatcher]
|
|
149
|
+
#
|
|
150
|
+
def upgrade_zypper_package(resource_name)
|
|
151
|
+
ChefSpec::Matchers::ResourceMatcher.new(:zypper_package, :upgrade, resource_name)
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
data/lib/chefspec/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chefspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Crump
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-
|
|
12
|
+
date: 2016-10-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: chef
|
|
@@ -152,6 +152,14 @@ files:
|
|
|
152
152
|
- examples/attributes/spec/default_spec.rb
|
|
153
153
|
- examples/batch/recipes/run.rb
|
|
154
154
|
- examples/batch/spec/run_spec.rb
|
|
155
|
+
- examples/bff_package/recipes/install.rb
|
|
156
|
+
- examples/bff_package/recipes/purge.rb
|
|
157
|
+
- examples/bff_package/recipes/remove.rb
|
|
158
|
+
- examples/bff_package/recipes/upgrade.rb
|
|
159
|
+
- examples/bff_package/spec/install_spec.rb
|
|
160
|
+
- examples/bff_package/spec/purge_spec.rb
|
|
161
|
+
- examples/bff_package/spec/remove_spec.rb
|
|
162
|
+
- examples/bff_package/spec/upgrade_spec.rb
|
|
155
163
|
- examples/cached/recipes/default.rb
|
|
156
164
|
- examples/cached/spec/default_spec.rb
|
|
157
165
|
- examples/chef_gem/recipes/install.rb
|
|
@@ -279,6 +287,14 @@ files:
|
|
|
279
287
|
- examples/heavy_provider_light_resource/providers/service.rb
|
|
280
288
|
- examples/heavy_provider_light_resource/recipes/default.rb
|
|
281
289
|
- examples/heavy_provider_light_resource/spec/provider_service_spec.rb
|
|
290
|
+
- examples/homebrew_package/recipes/install.rb
|
|
291
|
+
- examples/homebrew_package/recipes/purge.rb
|
|
292
|
+
- examples/homebrew_package/recipes/remove.rb
|
|
293
|
+
- examples/homebrew_package/recipes/upgrade.rb
|
|
294
|
+
- examples/homebrew_package/spec/install_spec.rb
|
|
295
|
+
- examples/homebrew_package/spec/purge_spec.rb
|
|
296
|
+
- examples/homebrew_package/spec/remove_spec.rb
|
|
297
|
+
- examples/homebrew_package/spec/upgrade_spec.rb
|
|
282
298
|
- examples/http_request/recipes/delete.rb
|
|
283
299
|
- examples/http_request/recipes/get.rb
|
|
284
300
|
- examples/http_request/recipes/head.rb
|
|
@@ -309,6 +325,16 @@ files:
|
|
|
309
325
|
- examples/ips_package/spec/install_spec.rb
|
|
310
326
|
- examples/ips_package/spec/remove_spec.rb
|
|
311
327
|
- examples/ips_package/spec/upgrade_spec.rb
|
|
328
|
+
- examples/launchd/recipes/create.rb
|
|
329
|
+
- examples/launchd/recipes/create_if_missing.rb
|
|
330
|
+
- examples/launchd/recipes/delete.rb
|
|
331
|
+
- examples/launchd/recipes/disable.rb
|
|
332
|
+
- examples/launchd/recipes/enable.rb
|
|
333
|
+
- examples/launchd/spec/create_if_missing_spec.rb
|
|
334
|
+
- examples/launchd/spec/create_spec.rb
|
|
335
|
+
- examples/launchd/spec/delete_spec.rb
|
|
336
|
+
- examples/launchd/spec/disable_spec.rb
|
|
337
|
+
- examples/launchd/spec/enable_spec.rb
|
|
312
338
|
- examples/link/recipes/create.rb
|
|
313
339
|
- examples/link/recipes/delete.rb
|
|
314
340
|
- examples/link/recipes/link_to.rb
|
|
@@ -359,6 +385,18 @@ files:
|
|
|
359
385
|
- examples/notifications/spec/immediately_spec.rb
|
|
360
386
|
- examples/ohai/recipes/reload.rb
|
|
361
387
|
- examples/ohai/spec/reload_spec.rb
|
|
388
|
+
- examples/openbsd_package/recipes/install.rb
|
|
389
|
+
- examples/openbsd_package/recipes/purge.rb
|
|
390
|
+
- examples/openbsd_package/recipes/remove.rb
|
|
391
|
+
- examples/openbsd_package/recipes/upgrade.rb
|
|
392
|
+
- examples/openbsd_package/spec/install_spec.rb
|
|
393
|
+
- examples/openbsd_package/spec/purge_spec.rb
|
|
394
|
+
- examples/openbsd_package/spec/remove_spec.rb
|
|
395
|
+
- examples/openbsd_package/spec/upgrade_spec.rb
|
|
396
|
+
- examples/osx_profile/recipes/install.rb
|
|
397
|
+
- examples/osx_profile/recipes/remove.rb
|
|
398
|
+
- examples/osx_profile/spec/install_spec.rb
|
|
399
|
+
- examples/osx_profile/spec/remove_spec.rb
|
|
362
400
|
- examples/package/recipes/install.rb
|
|
363
401
|
- examples/package/recipes/purge.rb
|
|
364
402
|
- examples/package/recipes/reconfig.rb
|
|
@@ -377,6 +415,14 @@ files:
|
|
|
377
415
|
- examples/pacman_package/spec/purge_spec.rb
|
|
378
416
|
- examples/pacman_package/spec/remove_spec.rb
|
|
379
417
|
- examples/pacman_package/spec/upgrade_spec.rb
|
|
418
|
+
- examples/paludis_package/recipes/install.rb
|
|
419
|
+
- examples/paludis_package/recipes/purge.rb
|
|
420
|
+
- examples/paludis_package/recipes/remove.rb
|
|
421
|
+
- examples/paludis_package/recipes/upgrade.rb
|
|
422
|
+
- examples/paludis_package/spec/install_spec.rb
|
|
423
|
+
- examples/paludis_package/spec/purge_spec.rb
|
|
424
|
+
- examples/paludis_package/spec/remove_spec.rb
|
|
425
|
+
- examples/paludis_package/spec/upgrade_spec.rb
|
|
380
426
|
- examples/portage_package/recipes/install.rb
|
|
381
427
|
- examples/portage_package/recipes/purge.rb
|
|
382
428
|
- examples/portage_package/recipes/remove.rb
|
|
@@ -438,16 +484,20 @@ files:
|
|
|
438
484
|
- examples/rpm_package/spec/install_spec.rb
|
|
439
485
|
- examples/rpm_package/spec/remove_spec.rb
|
|
440
486
|
- examples/rpm_package/spec/upgrade_spec.rb
|
|
487
|
+
- examples/ruby_block/recipes/create.rb
|
|
441
488
|
- examples/ruby_block/recipes/run.rb
|
|
489
|
+
- examples/ruby_block/spec/create_spec.rb
|
|
442
490
|
- examples/ruby_block/spec/run_spec.rb
|
|
443
491
|
- examples/script/recipes/run_bash.rb
|
|
444
492
|
- examples/script/recipes/run_csh.rb
|
|
493
|
+
- examples/script/recipes/run_ksh.rb
|
|
445
494
|
- examples/script/recipes/run_perl.rb
|
|
446
495
|
- examples/script/recipes/run_python.rb
|
|
447
496
|
- examples/script/recipes/run_ruby.rb
|
|
448
497
|
- examples/script/recipes/run_script.rb
|
|
449
498
|
- examples/script/spec/run_bash_spec.rb
|
|
450
499
|
- examples/script/spec/run_csh_spec.rb
|
|
500
|
+
- examples/script/spec/run_ksh_spec.rb
|
|
451
501
|
- examples/script/spec/run_perl_spec.rb
|
|
452
502
|
- examples/script/spec/run_python_spec.rb
|
|
453
503
|
- examples/script/spec/run_ruby_spec.rb
|
|
@@ -486,8 +536,10 @@ files:
|
|
|
486
536
|
- examples/smartos_package/spec/upgrade_spec.rb
|
|
487
537
|
- examples/solaris_package/recipes/install.rb
|
|
488
538
|
- examples/solaris_package/recipes/remove.rb
|
|
539
|
+
- examples/solaris_package/recipes/upgrade.rb
|
|
489
540
|
- examples/solaris_package/spec/install_spec.rb
|
|
490
541
|
- examples/solaris_package/spec/remove_spec.rb
|
|
542
|
+
- examples/solaris_package/spec/upgrade_spec.rb
|
|
491
543
|
- examples/state_attrs/providers/lwrp.rb
|
|
492
544
|
- examples/state_attrs/recipes/default.rb
|
|
493
545
|
- examples/state_attrs/resources/lwrp.rb
|
|
@@ -527,6 +579,30 @@ files:
|
|
|
527
579
|
- examples/subversion/spec/export_spec.rb
|
|
528
580
|
- examples/subversion/spec/force_export_spec.rb
|
|
529
581
|
- examples/subversion/spec/sync_spec.rb
|
|
582
|
+
- examples/systemd_unit/recipes/create.rb
|
|
583
|
+
- examples/systemd_unit/recipes/delete.rb
|
|
584
|
+
- examples/systemd_unit/recipes/disable.rb
|
|
585
|
+
- examples/systemd_unit/recipes/enable.rb
|
|
586
|
+
- examples/systemd_unit/recipes/mask.rb
|
|
587
|
+
- examples/systemd_unit/recipes/reload_or_restart.rb
|
|
588
|
+
- examples/systemd_unit/recipes/reload_or_try_restart.rb
|
|
589
|
+
- examples/systemd_unit/recipes/restart.rb
|
|
590
|
+
- examples/systemd_unit/recipes/start.rb
|
|
591
|
+
- examples/systemd_unit/recipes/stop.rb
|
|
592
|
+
- examples/systemd_unit/recipes/try_restart.rb
|
|
593
|
+
- examples/systemd_unit/recipes/unmask.rb
|
|
594
|
+
- examples/systemd_unit/spec/create_spec.rb
|
|
595
|
+
- examples/systemd_unit/spec/delete_spec.rb
|
|
596
|
+
- examples/systemd_unit/spec/disable_spec.rb
|
|
597
|
+
- examples/systemd_unit/spec/enable_spec.rb
|
|
598
|
+
- examples/systemd_unit/spec/mask_spec.rb
|
|
599
|
+
- examples/systemd_unit/spec/reload_or_restart_spec.rb
|
|
600
|
+
- examples/systemd_unit/spec/reload_or_try_restart_spec.rb
|
|
601
|
+
- examples/systemd_unit/spec/restart_spec.rb
|
|
602
|
+
- examples/systemd_unit/spec/start_spec.rb
|
|
603
|
+
- examples/systemd_unit/spec/stop_spec.rb
|
|
604
|
+
- examples/systemd_unit/spec/try_restart_spec.rb
|
|
605
|
+
- examples/systemd_unit/spec/unmask_spec.rb
|
|
530
606
|
- examples/template/recipes/create.rb
|
|
531
607
|
- examples/template/recipes/create_if_missing.rb
|
|
532
608
|
- examples/template/recipes/delete.rb
|
|
@@ -588,11 +664,20 @@ files:
|
|
|
588
664
|
- examples/yum_repository/spec/delete_spec.rb
|
|
589
665
|
- examples/yum_repository/spec/makecache_spec.rb
|
|
590
666
|
- examples/yum_repository/spec/remove_spec.rb
|
|
667
|
+
- examples/zypper_package/recipes/install.rb
|
|
668
|
+
- examples/zypper_package/recipes/purge.rb
|
|
669
|
+
- examples/zypper_package/recipes/remove.rb
|
|
670
|
+
- examples/zypper_package/recipes/upgrade.rb
|
|
671
|
+
- examples/zypper_package/spec/install_spec.rb
|
|
672
|
+
- examples/zypper_package/spec/purge_spec.rb
|
|
673
|
+
- examples/zypper_package/spec/remove_spec.rb
|
|
674
|
+
- examples/zypper_package/spec/upgrade_spec.rb
|
|
591
675
|
- features/apt_package.feature
|
|
592
676
|
- features/apt_repository.feature
|
|
593
677
|
- features/apt_update.feature
|
|
594
678
|
- features/attributes.feature
|
|
595
679
|
- features/batch.feature
|
|
680
|
+
- features/bff_package.feature
|
|
596
681
|
- features/cached.feature
|
|
597
682
|
- features/chef_gem.feature
|
|
598
683
|
- features/chocolatey_package.feature
|
|
@@ -618,10 +703,12 @@ files:
|
|
|
618
703
|
- features/group.feature
|
|
619
704
|
- features/guards.feature
|
|
620
705
|
- features/heavy_provider_light_resource.feature
|
|
706
|
+
- features/homebrew_package.feature
|
|
621
707
|
- features/http_request.feature
|
|
622
708
|
- features/ifconfig.feature
|
|
623
709
|
- features/include_recipe.feature
|
|
624
710
|
- features/ips_package.feature
|
|
711
|
+
- features/launchd.feature
|
|
625
712
|
- features/link.feature
|
|
626
713
|
- features/log.feature
|
|
627
714
|
- features/macports_package.feature
|
|
@@ -631,8 +718,11 @@ files:
|
|
|
631
718
|
- features/multiple_run_action.feature
|
|
632
719
|
- features/notifications.feature
|
|
633
720
|
- features/ohai.feature
|
|
721
|
+
- features/openbsd_package.feature
|
|
722
|
+
- features/osx_profile.feature
|
|
634
723
|
- features/package.feature
|
|
635
724
|
- features/pacman_package.feature
|
|
725
|
+
- features/paludis_package.feature
|
|
636
726
|
- features/portage_package.feature
|
|
637
727
|
- features/powershell_script.feature
|
|
638
728
|
- features/reboot.feature
|
|
@@ -661,6 +751,7 @@ files:
|
|
|
661
751
|
- features/subversion.feature
|
|
662
752
|
- features/support/env.rb
|
|
663
753
|
- features/support/executor.rb
|
|
754
|
+
- features/systemd_unit.feature
|
|
664
755
|
- features/template.feature
|
|
665
756
|
- features/use_inline_resources.feature
|
|
666
757
|
- features/user.feature
|
|
@@ -668,6 +759,7 @@ files:
|
|
|
668
759
|
- features/windows_service.feature
|
|
669
760
|
- features/yum_package.feature
|
|
670
761
|
- features/yum_repository.feature
|
|
762
|
+
- features/zypper_package.feature
|
|
671
763
|
- gemfiles/chefspec.gemfile
|
|
672
764
|
- lib/chefspec.rb
|
|
673
765
|
- lib/chefspec/api.rb
|
|
@@ -675,6 +767,7 @@ files:
|
|
|
675
767
|
- lib/chefspec/api/apt_repository.rb
|
|
676
768
|
- lib/chefspec/api/apt_update.rb
|
|
677
769
|
- lib/chefspec/api/batch.rb
|
|
770
|
+
- lib/chefspec/api/bff_package.rb
|
|
678
771
|
- lib/chefspec/api/chef_gem.rb
|
|
679
772
|
- lib/chefspec/api/chocolatey_package.rb
|
|
680
773
|
- lib/chefspec/api/cookbook_file.rb
|
|
@@ -694,10 +787,12 @@ files:
|
|
|
694
787
|
- lib/chefspec/api/gem_package.rb
|
|
695
788
|
- lib/chefspec/api/git.rb
|
|
696
789
|
- lib/chefspec/api/group.rb
|
|
790
|
+
- lib/chefspec/api/homebrew_package.rb
|
|
697
791
|
- lib/chefspec/api/http_request.rb
|
|
698
792
|
- lib/chefspec/api/ifconfig.rb
|
|
699
793
|
- lib/chefspec/api/include_recipe.rb
|
|
700
794
|
- lib/chefspec/api/ips_package.rb
|
|
795
|
+
- lib/chefspec/api/launchd.rb
|
|
701
796
|
- lib/chefspec/api/link.rb
|
|
702
797
|
- lib/chefspec/api/log.rb
|
|
703
798
|
- lib/chefspec/api/macports_package.rb
|
|
@@ -705,8 +800,11 @@ files:
|
|
|
705
800
|
- lib/chefspec/api/mount.rb
|
|
706
801
|
- lib/chefspec/api/notifications.rb
|
|
707
802
|
- lib/chefspec/api/ohai.rb
|
|
803
|
+
- lib/chefspec/api/openbsd_package.rb
|
|
804
|
+
- lib/chefspec/api/osx_profile.rb
|
|
708
805
|
- lib/chefspec/api/package.rb
|
|
709
806
|
- lib/chefspec/api/pacman_package.rb
|
|
807
|
+
- lib/chefspec/api/paludis_package.rb
|
|
710
808
|
- lib/chefspec/api/portage_package.rb
|
|
711
809
|
- lib/chefspec/api/powershell_script.rb
|
|
712
810
|
- lib/chefspec/api/reboot.rb
|
|
@@ -724,12 +822,14 @@ files:
|
|
|
724
822
|
- lib/chefspec/api/state_attrs.rb
|
|
725
823
|
- lib/chefspec/api/subscriptions.rb
|
|
726
824
|
- lib/chefspec/api/subversion.rb
|
|
825
|
+
- lib/chefspec/api/systemd_unit.rb
|
|
727
826
|
- lib/chefspec/api/template.rb
|
|
728
827
|
- lib/chefspec/api/user.rb
|
|
729
828
|
- lib/chefspec/api/windows_package.rb
|
|
730
829
|
- lib/chefspec/api/windows_service.rb
|
|
731
830
|
- lib/chefspec/api/yum_package.rb
|
|
732
831
|
- lib/chefspec/api/yum_repository.rb
|
|
832
|
+
- lib/chefspec/api/zypper_package.rb
|
|
733
833
|
- lib/chefspec/berkshelf.rb
|
|
734
834
|
- lib/chefspec/cacher.rb
|
|
735
835
|
- lib/chefspec/chef_backwards_compat.rb
|
|
@@ -840,7 +940,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
840
940
|
version: '0'
|
|
841
941
|
requirements: []
|
|
842
942
|
rubyforge_project:
|
|
843
|
-
rubygems_version: 2.
|
|
943
|
+
rubygems_version: 2.6.7
|
|
844
944
|
signing_key:
|
|
845
945
|
specification_version: 4
|
|
846
946
|
summary: Write RSpec examples and generate coverage reports for Chef recipes!
|
|
@@ -850,6 +950,7 @@ test_files:
|
|
|
850
950
|
- features/apt_update.feature
|
|
851
951
|
- features/attributes.feature
|
|
852
952
|
- features/batch.feature
|
|
953
|
+
- features/bff_package.feature
|
|
853
954
|
- features/cached.feature
|
|
854
955
|
- features/chef_gem.feature
|
|
855
956
|
- features/chocolatey_package.feature
|
|
@@ -875,10 +976,12 @@ test_files:
|
|
|
875
976
|
- features/group.feature
|
|
876
977
|
- features/guards.feature
|
|
877
978
|
- features/heavy_provider_light_resource.feature
|
|
979
|
+
- features/homebrew_package.feature
|
|
878
980
|
- features/http_request.feature
|
|
879
981
|
- features/ifconfig.feature
|
|
880
982
|
- features/include_recipe.feature
|
|
881
983
|
- features/ips_package.feature
|
|
984
|
+
- features/launchd.feature
|
|
882
985
|
- features/link.feature
|
|
883
986
|
- features/log.feature
|
|
884
987
|
- features/macports_package.feature
|
|
@@ -888,8 +991,11 @@ test_files:
|
|
|
888
991
|
- features/multiple_run_action.feature
|
|
889
992
|
- features/notifications.feature
|
|
890
993
|
- features/ohai.feature
|
|
994
|
+
- features/openbsd_package.feature
|
|
995
|
+
- features/osx_profile.feature
|
|
891
996
|
- features/package.feature
|
|
892
997
|
- features/pacman_package.feature
|
|
998
|
+
- features/paludis_package.feature
|
|
893
999
|
- features/portage_package.feature
|
|
894
1000
|
- features/powershell_script.feature
|
|
895
1001
|
- features/reboot.feature
|
|
@@ -918,6 +1024,7 @@ test_files:
|
|
|
918
1024
|
- features/subversion.feature
|
|
919
1025
|
- features/support/env.rb
|
|
920
1026
|
- features/support/executor.rb
|
|
1027
|
+
- features/systemd_unit.feature
|
|
921
1028
|
- features/template.feature
|
|
922
1029
|
- features/use_inline_resources.feature
|
|
923
1030
|
- features/user.feature
|
|
@@ -925,6 +1032,7 @@ test_files:
|
|
|
925
1032
|
- features/windows_service.feature
|
|
926
1033
|
- features/yum_package.feature
|
|
927
1034
|
- features/yum_repository.feature
|
|
1035
|
+
- features/zypper_package.feature
|
|
928
1036
|
- spec/spec_helper.rb
|
|
929
1037
|
- spec/support/hash.rb
|
|
930
1038
|
- spec/unit/api_spec.rb
|