chefspec 7.0.0 → 7.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -1
  3. data/Gemfile +6 -0
  4. data/README.md +43 -11
  5. data/Rakefile +48 -8
  6. data/chefspec.gemspec +0 -8
  7. data/examples/cab_package/spec/install_spec.rb +20 -18
  8. data/examples/cab_package/spec/remove_spec.rb +17 -15
  9. data/examples/cached/spec/default_spec.rb +1 -0
  10. data/examples/compile_time/spec/default_spec.rb +2 -0
  11. data/examples/custom_matcher/libraries/matcher.rb +1 -23
  12. data/examples/dnf_package/spec/install_spec.rb +20 -18
  13. data/examples/dnf_package/spec/purge_spec.rb +17 -15
  14. data/examples/dnf_package/spec/remove_spec.rb +17 -15
  15. data/examples/dnf_package/spec/upgrade_spec.rb +17 -15
  16. data/examples/heavy_provider_light_resource/spec/provider_service_spec.rb +1 -0
  17. data/examples/msu_package/spec/install_spec.rb +20 -18
  18. data/examples/msu_package/spec/remove_spec.rb +17 -15
  19. data/examples/server/spec/exotic_port_spec.rb +15 -2
  20. data/lib/chefspec.rb +1 -8
  21. data/lib/chefspec/api.rb +6 -84
  22. data/lib/chefspec/api/do_nothing.rb +18 -21
  23. data/lib/chefspec/api/include_recipe.rb +20 -23
  24. data/lib/chefspec/api/link.rb +20 -99
  25. data/lib/chefspec/api/notifications.rb +32 -35
  26. data/lib/chefspec/api/reboot.rb +5 -14
  27. data/lib/chefspec/api/render_file.rb +29 -32
  28. data/lib/chefspec/api/state_attrs.rb +22 -25
  29. data/lib/chefspec/api/subscriptions.rb +29 -32
  30. data/lib/chefspec/api/user.rb +216 -219
  31. data/lib/chefspec/extensions.rb +16 -0
  32. data/lib/chefspec/extensions/chef/resource.rb +90 -8
  33. data/lib/chefspec/version.rb +1 -1
  34. data/lib/chefspec/zero_server.rb +20 -18
  35. metadata +3 -313
  36. data/examples/custom_resource/libraries/matchers.rb +0 -5
  37. data/examples/use_inline_resources/libraries/matchers.rb +0 -5
  38. data/features/apt_package.feature +0 -14
  39. data/features/apt_repository.feature +0 -15
  40. data/features/apt_update.feature +0 -13
  41. data/features/attributes.feature +0 -7
  42. data/features/batch.feature +0 -10
  43. data/features/bff_package.feature +0 -12
  44. data/features/cab_package.feature +0 -21
  45. data/features/cached.feature +0 -7
  46. data/features/chef_gem.feature +0 -14
  47. data/features/chocolatey_package.feature +0 -14
  48. data/features/compile_time.feature +0 -7
  49. data/features/cookbook_file.feature +0 -13
  50. data/features/cron.feature +0 -11
  51. data/features/custom_matcher.feature +0 -11
  52. data/features/custom_resource.feature +0 -7
  53. data/features/deploy.feature +0 -12
  54. data/features/directory.feature +0 -11
  55. data/features/dnf_package.feature +0 -26
  56. data/features/do_nothing.feature +0 -10
  57. data/features/dpkg_package.feature +0 -12
  58. data/features/dsc_resource.feature +0 -10
  59. data/features/dsc_script.feature +0 -10
  60. data/features/env.feature +0 -12
  61. data/features/erl_call.feature +0 -10
  62. data/features/execute.feature +0 -10
  63. data/features/exotic_zero_port.feature +0 -7
  64. data/features/expect_exception.feature +0 -12
  65. data/features/file.feature +0 -13
  66. data/features/freebsd_package.feature +0 -11
  67. data/features/gem_package.feature +0 -14
  68. data/features/git.feature +0 -12
  69. data/features/group.feature +0 -13
  70. data/features/guards.feature +0 -10
  71. data/features/heavy_provider_light_resource.feature +0 -10
  72. data/features/homebrew_package.feature +0 -12
  73. data/features/http_request.feature +0 -15
  74. data/features/ifconfig.feature +0 -13
  75. data/features/include_recipe.feature +0 -10
  76. data/features/ips_package.feature +0 -12
  77. data/features/launchd.feature +0 -17
  78. data/features/link.feature +0 -12
  79. data/features/log.feature +0 -10
  80. data/features/macports_package.feature +0 -13
  81. data/features/mdadm.feature +0 -12
  82. data/features/mount.feature +0 -14
  83. data/features/msu_package.feature +0 -23
  84. data/features/multiple_actions.feature +0 -12
  85. data/features/multiple_run_action.feature +0 -7
  86. data/features/notifications.feature +0 -14
  87. data/features/ohai.feature +0 -10
  88. data/features/openbsd_package.feature +0 -12
  89. data/features/osx_profile.feature +0 -13
  90. data/features/package.feature +0 -14
  91. data/features/pacman_package.feature +0 -13
  92. data/features/paludis_package.feature +0 -12
  93. data/features/portage_package.feature +0 -13
  94. data/features/powershell_script.feature +0 -10
  95. data/features/reboot.feature +0 -12
  96. data/features/registry_key.feature +0 -13
  97. data/features/remote_directory.feature +0 -12
  98. data/features/remote_file.feature +0 -13
  99. data/features/render_file.feature +0 -11
  100. data/features/roles.feature +0 -7
  101. data/features/route.feature +0 -11
  102. data/features/rpm_package.feature +0 -12
  103. data/features/ruby_block.feature +0 -11
  104. data/features/script.feature +0 -16
  105. data/features/server.feature +0 -16
  106. data/features/server_on_disk.feature +0 -16
  107. data/features/service.feature +0 -15
  108. data/features/smartos_package.feature +0 -12
  109. data/features/solaris_package.feature +0 -12
  110. data/features/state_attrs.feature +0 -7
  111. data/features/step_definitions/background_steps.rb +0 -7
  112. data/features/step_into.feature +0 -7
  113. data/features/stub_command.feature +0 -7
  114. data/features/stub_data_bag.feature +0 -7
  115. data/features/stub_data_bag_item.feature +0 -7
  116. data/features/stub_node.feature +0 -7
  117. data/features/stub_search.feature +0 -7
  118. data/features/subscribes.feature +0 -14
  119. data/features/subversion.feature +0 -13
  120. data/features/support/env.rb +0 -38
  121. data/features/support/executor.rb +0 -20
  122. data/features/support/exotic_zero_port.rb +0 -3
  123. data/features/support/on_disk.rb +0 -7
  124. data/features/systemd_unit.feature +0 -27
  125. data/features/template.feature +0 -13
  126. data/features/use_inline_resources.feature +0 -7
  127. data/features/user.feature +0 -15
  128. data/features/windows_package.feature +0 -11
  129. data/features/windows_service.feature +0 -16
  130. data/features/yum_package.feature +0 -13
  131. data/features/yum_repository.feature +0 -23
  132. data/features/zypper_package.feature +0 -13
  133. data/lib/chefspec/api/apt_package.rb +0 -192
  134. data/lib/chefspec/api/apt_repository.rb +0 -56
  135. data/lib/chefspec/api/apt_update.rb +0 -53
  136. data/lib/chefspec/api/batch.rb +0 -43
  137. data/lib/chefspec/api/bff_package.rb +0 -154
  138. data/lib/chefspec/api/cab_package.rb +0 -80
  139. data/lib/chefspec/api/chef_gem.rb +0 -191
  140. data/lib/chefspec/api/chocolatey_package.rb +0 -107
  141. data/lib/chefspec/api/cookbook_file.rb +0 -166
  142. data/lib/chefspec/api/cron.rb +0 -80
  143. data/lib/chefspec/api/deploy.rb +0 -117
  144. data/lib/chefspec/api/directory.rb +0 -80
  145. data/lib/chefspec/api/dnf_package.rb +0 -154
  146. data/lib/chefspec/api/dpkg_package.rb +0 -117
  147. data/lib/chefspec/api/dsc_resource.rb +0 -49
  148. data/lib/chefspec/api/dsc_script.rb +0 -37
  149. data/lib/chefspec/api/easy_install_package.rb +0 -154
  150. data/lib/chefspec/api/env.rb +0 -117
  151. data/lib/chefspec/api/erl_call.rb +0 -43
  152. data/lib/chefspec/api/execute.rb +0 -43
  153. data/lib/chefspec/api/file.rb +0 -166
  154. data/lib/chefspec/api/freebsd_package.rb +0 -80
  155. data/lib/chefspec/api/gem_package.rb +0 -191
  156. data/lib/chefspec/api/git.rb +0 -117
  157. data/lib/chefspec/api/group.rb +0 -154
  158. data/lib/chefspec/api/homebrew_package.rb +0 -154
  159. data/lib/chefspec/api/http_request.rb +0 -228
  160. data/lib/chefspec/api/ifconfig.rb +0 -154
  161. data/lib/chefspec/api/ips_package.rb +0 -117
  162. data/lib/chefspec/api/launchd.rb +0 -151
  163. data/lib/chefspec/api/log.rb +0 -43
  164. data/lib/chefspec/api/macports_package.rb +0 -154
  165. data/lib/chefspec/api/mdadm.rb +0 -117
  166. data/lib/chefspec/api/mount.rb +0 -192
  167. data/lib/chefspec/api/msu_package.rb +0 -81
  168. data/lib/chefspec/api/ohai.rb +0 -43
  169. data/lib/chefspec/api/openbsd_package.rb +0 -155
  170. data/lib/chefspec/api/osx_profile.rb +0 -63
  171. data/lib/chefspec/api/package.rb +0 -192
  172. data/lib/chefspec/api/pacman_package.rb +0 -155
  173. data/lib/chefspec/api/paludis_package.rb +0 -155
  174. data/lib/chefspec/api/portage_package.rb +0 -155
  175. data/lib/chefspec/api/powershell_script.rb +0 -43
  176. data/lib/chefspec/api/registry_key.rb +0 -166
  177. data/lib/chefspec/api/remote_directory.rb +0 -120
  178. data/lib/chefspec/api/remote_file.rb +0 -166
  179. data/lib/chefspec/api/route.rb +0 -80
  180. data/lib/chefspec/api/rpm_package.rb +0 -117
  181. data/lib/chefspec/api/ruby_block.rb +0 -68
  182. data/lib/chefspec/api/script.rb +0 -278
  183. data/lib/chefspec/api/service.rb +0 -246
  184. data/lib/chefspec/api/smartos_package.rb +0 -117
  185. data/lib/chefspec/api/solaris_package.rb +0 -117
  186. data/lib/chefspec/api/subversion.rb +0 -154
  187. data/lib/chefspec/api/systemd_unit.rb +0 -353
  188. data/lib/chefspec/api/template.rb +0 -166
  189. data/lib/chefspec/api/windows_package.rb +0 -86
  190. data/lib/chefspec/api/windows_service.rb +0 -286
  191. data/lib/chefspec/api/yum_package.rb +0 -154
  192. data/lib/chefspec/api/yum_repository.rb +0 -130
  193. data/lib/chefspec/api/zypper_package.rb +0 -154
  194. data/spec/unit/api_spec.rb +0 -18
@@ -0,0 +1,16 @@
1
+ require 'rspec'
2
+
3
+ module ChefSpec::Extensions
4
+ module Chef
5
+ end
6
+ end
7
+
8
+ # STOP! DO NOT ALPHABETIZE!
9
+ require_relative 'extensions/chef/resource' # must come before client extensions or anything that winds up loading resources
10
+ require_relative 'extensions/chef/securable'
11
+ require_relative 'extensions/chef/client'
12
+ require_relative 'extensions/chef/conditional'
13
+ require_relative 'extensions/chef/cookbook_uploader'
14
+ require_relative 'extensions/chef/data_query'
15
+ require_relative 'extensions/chef/lwrp_base'
16
+ require_relative 'extensions/chef/resource/freebsd_package'
@@ -1,13 +1,16 @@
1
1
  require 'chef/resource'
2
+ require 'chefspec/api'
2
3
 
3
- class Chef::Resource
4
- alias_method :old_initialize, :initialize
5
- def initialize(*args)
6
- @performed_actions = {}
7
- old_initialize(*args)
8
- end
4
+ #
5
+ # Three concerns:
6
+ # - no-op'ing so that the action does not run the provider
7
+ # - tracking the actions that were performed
8
+ # - auto registering helper methods
9
+ #
9
10
 
10
- alias_method :old_run_action, :run_action
11
+ module ChefSpec::Extensions::Chef::Resource
12
+
13
+ # mix of no-op and tracking concerns
11
14
  def run_action(action, notification_type = nil, notifying_resource = nil)
12
15
  resolve_notification_references
13
16
  validate_action(action)
@@ -19,7 +22,7 @@ class Chef::Resource
19
22
  unless should_skip?(action)
20
23
  if node.runner.step_into?(self)
21
24
  instance_eval { @not_if = []; @only_if = [] }
22
- old_run_action(action, notification_type, notifying_resource)
25
+ super
23
26
  end
24
27
 
25
28
  if node.runner.compiling?
@@ -30,6 +33,15 @@ class Chef::Resource
30
33
  end
31
34
  end
32
35
 
36
+ #
37
+ # tracking
38
+ #
39
+
40
+ def initialize(*args)
41
+ @performed_actions = {}
42
+ super
43
+ end
44
+
33
45
  def perform_action(action, options = {})
34
46
  @performed_actions[action.to_sym] ||= {}
35
47
  @performed_actions[action.to_sym].merge!(options)
@@ -46,4 +58,74 @@ class Chef::Resource
46
58
  def performed_actions
47
59
  @performed_actions.keys
48
60
  end
61
+
62
+ #
63
+ # auto-registration
64
+ #
65
+
66
+ def self.prepended(base)
67
+ class << base
68
+ prepend ClassMethods
69
+ end
70
+ end
71
+
72
+ module ClassMethods
73
+ # XXX: kind of a crappy way to find all the names of a resource
74
+ def provides_names
75
+ @provides_names ||= []
76
+ end
77
+
78
+ def resource_name(name = ::Chef::NOT_PASSED)
79
+ unless name == ::Chef::NOT_PASSED
80
+ provides_names << name unless provides_names.include?(name)
81
+ inject_actions(*allowed_actions)
82
+ end
83
+ super
84
+ end
85
+
86
+ def provides(name, *args, &block)
87
+ provides_names << name unless provides_names.include?(name)
88
+ inject_actions(*allowed_actions)
89
+ super
90
+ end
91
+
92
+ def action(sym, &block)
93
+ inject_actions(sym)
94
+ super
95
+ end
96
+
97
+ def allowed_actions(*actions)
98
+ inject_actions(*actions) unless actions.empty?
99
+ super
100
+ end
101
+
102
+ def allowed_actions=(value)
103
+ inject_actions(*Array(value))
104
+ super
105
+ end
106
+
107
+ private
108
+
109
+ def inject_method(method, resource_name, action)
110
+ unless ChefSpec::API.respond_to?(method)
111
+ ChefSpec::API.send(:define_method, method) do |name|
112
+ ChefSpec::Matchers::ResourceMatcher.new(resource_name, action, name)
113
+ end
114
+ end
115
+ end
116
+
117
+ def inject_actions(*actions)
118
+ provides_names.each do |resource_name|
119
+ ChefSpec.define_matcher(resource_name)
120
+ actions.each do |action|
121
+ inject_method(:"#{action}_#{resource_name}", resource_name, action)
122
+ if action == :create_if_missing
123
+ inject_method(:"create_#{resource_name}_if_missing", resource_name, action)
124
+ end
125
+ end
126
+ end
127
+ end
128
+ end
49
129
  end
130
+
131
+ Chef::Resource.prepend(ChefSpec::Extensions::Chef::Resource)
@@ -1,3 +1,3 @@
1
1
  module ChefSpec
2
- VERSION = '7.0.0'
2
+ VERSION = '7.1.0'
3
3
  end
@@ -6,23 +6,16 @@ module ChefSpec
6
6
  class ZeroServer
7
7
  class << self
8
8
  extend Forwardable
9
- def_delegators :instance, :setup!, :teardown!, :reset!, :upload_cookbooks!, :server, :load_data
9
+ def_delegators :instance, :setup!, :teardown!, :reset!, :upload_cookbooks!, :server, :load_data, :nuke!
10
10
  end
11
11
 
12
12
  include Singleton
13
13
 
14
+ attr_reader :server
15
+
14
16
  # Create the ChefZero Server
15
17
  def initialize
16
- @server ||= ChefZero::Server.new(
17
- # Set the log level from RSpec, defaulting to warn
18
- log_level: RSpec.configuration.log_level || :warn,
19
- port: RSpec.configuration.server_runner_port,
20
-
21
- # Set the data store
22
- data_store: data_store(RSpec.configuration.server_runner_data_store),
23
- )
24
- @cookbooks_uploaded = false
25
- @data_loaded = {}
18
+ nuke!
26
19
  end
27
20
 
28
21
  #
@@ -53,6 +46,22 @@ module ChefSpec
53
46
  @data_loaded = {}
54
47
  end
55
48
 
49
+ #
50
+ # Really reset everything and reload the configuration
51
+ #
52
+ def nuke!
53
+ @server = ChefZero::Server.new(
54
+ # Set the log level from RSpec, defaulting to warn
55
+ log_level: RSpec.configuration.log_level || :warn,
56
+ port: RSpec.configuration.server_runner_port,
57
+
58
+ # Set the data store
59
+ data_store: data_store(RSpec.configuration.server_runner_data_store),
60
+ )
61
+ @cookbooks_uploaded = false
62
+ @data_loaded = {}
63
+ end
64
+
56
65
  #
57
66
  # Teardown the ChefZero Server
58
67
  #
@@ -71,13 +80,6 @@ module ChefSpec
71
80
  @cookbooks_uploaded = true
72
81
  end
73
82
 
74
- #
75
- # The URL for the ChefZero Server
76
- #
77
- def server
78
- @server
79
- end
80
-
81
83
  #
82
84
  # Load (and track) data sent to the server
83
85
  #
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: 7.0.0
4
+ version: 7.1.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: 2017-04-19 00:00:00.000000000 Z
12
+ date: 2017-05-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -59,62 +59,6 @@ dependencies:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.0'
62
- - !ruby/object:Gem::Dependency
63
- name: rake
64
- requirement: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "<"
67
- - !ruby/object:Gem::Version
68
- version: '13.0'
69
- type: :development
70
- prerelease: false
71
- version_requirements: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "<"
74
- - !ruby/object:Gem::Version
75
- version: '13.0'
76
- - !ruby/object:Gem::Dependency
77
- name: redcarpet
78
- requirement: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '3.3'
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.3'
90
- - !ruby/object:Gem::Dependency
91
- name: yard
92
- requirement: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '0.8'
97
- type: :development
98
- prerelease: false
99
- version_requirements: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '0.8'
104
- - !ruby/object:Gem::Dependency
105
- name: aruba
106
- requirement: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '0.8'
111
- type: :development
112
- prerelease: false
113
- version_requirements: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '0.8'
118
62
  description: ChefSpec is a unit testing and resource coverage (code coverage) framework
119
63
  for testing Chef cookbooks ChefSpec makes it easy to write examples and get fast
120
64
  feedback on cookbook changes without the need for virtual machines or cloud servers.
@@ -209,7 +153,6 @@ files:
209
153
  - examples/custom_matcher/resources/thing.rb
210
154
  - examples/custom_matcher/spec/install_spec.rb
211
155
  - examples/custom_matcher/spec/remove_spec.rb
212
- - examples/custom_resource/libraries/matchers.rb
213
156
  - examples/custom_resource/recipes/default.rb
214
157
  - examples/custom_resource/resources/custom_resource.rb
215
158
  - examples/custom_resource/spec/default_spec.rb
@@ -634,7 +577,6 @@ files:
634
577
  - examples/template/spec/create_spec.rb
635
578
  - examples/template/spec/delete_spec.rb
636
579
  - examples/template/spec/touch_spec.rb
637
- - examples/use_inline_resources/libraries/matchers.rb
638
580
  - examples/use_inline_resources/providers/lwrp.rb
639
581
  - examples/use_inline_resources/recipes/default.rb
640
582
  - examples/use_inline_resources/resources/lwrp.rb
@@ -695,173 +637,17 @@ files:
695
637
  - examples/zypper_package/spec/purge_spec.rb
696
638
  - examples/zypper_package/spec/remove_spec.rb
697
639
  - examples/zypper_package/spec/upgrade_spec.rb
698
- - features/apt_package.feature
699
- - features/apt_repository.feature
700
- - features/apt_update.feature
701
- - features/attributes.feature
702
- - features/batch.feature
703
- - features/bff_package.feature
704
- - features/cab_package.feature
705
- - features/cached.feature
706
- - features/chef_gem.feature
707
- - features/chocolatey_package.feature
708
- - features/compile_time.feature
709
- - features/cookbook_file.feature
710
- - features/cron.feature
711
- - features/custom_matcher.feature
712
- - features/custom_resource.feature
713
- - features/deploy.feature
714
- - features/directory.feature
715
- - features/dnf_package.feature
716
- - features/do_nothing.feature
717
- - features/dpkg_package.feature
718
- - features/dsc_resource.feature
719
- - features/dsc_script.feature
720
- - features/env.feature
721
- - features/erl_call.feature
722
- - features/execute.feature
723
- - features/exotic_zero_port.feature
724
- - features/expect_exception.feature
725
- - features/file.feature
726
- - features/freebsd_package.feature
727
- - features/gem_package.feature
728
- - features/git.feature
729
- - features/group.feature
730
- - features/guards.feature
731
- - features/heavy_provider_light_resource.feature
732
- - features/homebrew_package.feature
733
- - features/http_request.feature
734
- - features/ifconfig.feature
735
- - features/include_recipe.feature
736
- - features/ips_package.feature
737
- - features/launchd.feature
738
- - features/link.feature
739
- - features/log.feature
740
- - features/macports_package.feature
741
- - features/mdadm.feature
742
- - features/mount.feature
743
- - features/msu_package.feature
744
- - features/multiple_actions.feature
745
- - features/multiple_run_action.feature
746
- - features/notifications.feature
747
- - features/ohai.feature
748
- - features/openbsd_package.feature
749
- - features/osx_profile.feature
750
- - features/package.feature
751
- - features/pacman_package.feature
752
- - features/paludis_package.feature
753
- - features/portage_package.feature
754
- - features/powershell_script.feature
755
- - features/reboot.feature
756
- - features/registry_key.feature
757
- - features/remote_directory.feature
758
- - features/remote_file.feature
759
- - features/render_file.feature
760
- - features/roles.feature
761
- - features/route.feature
762
- - features/rpm_package.feature
763
- - features/ruby_block.feature
764
- - features/script.feature
765
- - features/server.feature
766
- - features/server_on_disk.feature
767
- - features/service.feature
768
- - features/smartos_package.feature
769
- - features/solaris_package.feature
770
- - features/state_attrs.feature
771
- - features/step_definitions/background_steps.rb
772
- - features/step_into.feature
773
- - features/stub_command.feature
774
- - features/stub_data_bag.feature
775
- - features/stub_data_bag_item.feature
776
- - features/stub_node.feature
777
- - features/stub_search.feature
778
- - features/subscribes.feature
779
- - features/subversion.feature
780
- - features/support/env.rb
781
- - features/support/executor.rb
782
- - features/support/exotic_zero_port.rb
783
- - features/support/on_disk.rb
784
- - features/systemd_unit.feature
785
- - features/template.feature
786
- - features/use_inline_resources.feature
787
- - features/user.feature
788
- - features/windows_package.feature
789
- - features/windows_service.feature
790
- - features/yum_package.feature
791
- - features/yum_repository.feature
792
- - features/zypper_package.feature
793
640
  - lib/chefspec.rb
794
641
  - lib/chefspec/api.rb
795
- - lib/chefspec/api/apt_package.rb
796
- - lib/chefspec/api/apt_repository.rb
797
- - lib/chefspec/api/apt_update.rb
798
- - lib/chefspec/api/batch.rb
799
- - lib/chefspec/api/bff_package.rb
800
- - lib/chefspec/api/cab_package.rb
801
- - lib/chefspec/api/chef_gem.rb
802
- - lib/chefspec/api/chocolatey_package.rb
803
- - lib/chefspec/api/cookbook_file.rb
804
- - lib/chefspec/api/cron.rb
805
- - lib/chefspec/api/deploy.rb
806
- - lib/chefspec/api/directory.rb
807
- - lib/chefspec/api/dnf_package.rb
808
642
  - lib/chefspec/api/do_nothing.rb
809
- - lib/chefspec/api/dpkg_package.rb
810
- - lib/chefspec/api/dsc_resource.rb
811
- - lib/chefspec/api/dsc_script.rb
812
- - lib/chefspec/api/easy_install_package.rb
813
- - lib/chefspec/api/env.rb
814
- - lib/chefspec/api/erl_call.rb
815
- - lib/chefspec/api/execute.rb
816
- - lib/chefspec/api/file.rb
817
- - lib/chefspec/api/freebsd_package.rb
818
- - lib/chefspec/api/gem_package.rb
819
- - lib/chefspec/api/git.rb
820
- - lib/chefspec/api/group.rb
821
- - lib/chefspec/api/homebrew_package.rb
822
- - lib/chefspec/api/http_request.rb
823
- - lib/chefspec/api/ifconfig.rb
824
643
  - lib/chefspec/api/include_recipe.rb
825
- - lib/chefspec/api/ips_package.rb
826
- - lib/chefspec/api/launchd.rb
827
644
  - lib/chefspec/api/link.rb
828
- - lib/chefspec/api/log.rb
829
- - lib/chefspec/api/macports_package.rb
830
- - lib/chefspec/api/mdadm.rb
831
- - lib/chefspec/api/mount.rb
832
- - lib/chefspec/api/msu_package.rb
833
645
  - lib/chefspec/api/notifications.rb
834
- - lib/chefspec/api/ohai.rb
835
- - lib/chefspec/api/openbsd_package.rb
836
- - lib/chefspec/api/osx_profile.rb
837
- - lib/chefspec/api/package.rb
838
- - lib/chefspec/api/pacman_package.rb
839
- - lib/chefspec/api/paludis_package.rb
840
- - lib/chefspec/api/portage_package.rb
841
- - lib/chefspec/api/powershell_script.rb
842
646
  - lib/chefspec/api/reboot.rb
843
- - lib/chefspec/api/registry_key.rb
844
- - lib/chefspec/api/remote_directory.rb
845
- - lib/chefspec/api/remote_file.rb
846
647
  - lib/chefspec/api/render_file.rb
847
- - lib/chefspec/api/route.rb
848
- - lib/chefspec/api/rpm_package.rb
849
- - lib/chefspec/api/ruby_block.rb
850
- - lib/chefspec/api/script.rb
851
- - lib/chefspec/api/service.rb
852
- - lib/chefspec/api/smartos_package.rb
853
- - lib/chefspec/api/solaris_package.rb
854
648
  - lib/chefspec/api/state_attrs.rb
855
649
  - lib/chefspec/api/subscriptions.rb
856
- - lib/chefspec/api/subversion.rb
857
- - lib/chefspec/api/systemd_unit.rb
858
- - lib/chefspec/api/template.rb
859
650
  - lib/chefspec/api/user.rb
860
- - lib/chefspec/api/windows_package.rb
861
- - lib/chefspec/api/windows_service.rb
862
- - lib/chefspec/api/yum_package.rb
863
- - lib/chefspec/api/yum_repository.rb
864
- - lib/chefspec/api/zypper_package.rb
865
651
  - lib/chefspec/berkshelf.rb
866
652
  - lib/chefspec/cacher.rb
867
653
  - lib/chefspec/coverage.rb
@@ -869,6 +655,7 @@ files:
869
655
  - lib/chefspec/deprecations.rb
870
656
  - lib/chefspec/errors.rb
871
657
  - lib/chefspec/expect_exception.rb
658
+ - lib/chefspec/extensions.rb
872
659
  - lib/chefspec/extensions/chef/client.rb
873
660
  - lib/chefspec/extensions/chef/conditional.rb
874
661
  - lib/chefspec/extensions/chef/cookbook_uploader.rb
@@ -913,7 +700,6 @@ files:
913
700
  - lib/chefspec/zero_server.rb
914
701
  - spec/spec_helper.rb
915
702
  - spec/support/hash.rb
916
- - spec/unit/api_spec.rb
917
703
  - spec/unit/cacher_spec.rb
918
704
  - spec/unit/coverage/filters_spec.rb
919
705
  - spec/unit/deprecations_spec.rb
@@ -977,104 +763,8 @@ signing_key:
977
763
  specification_version: 4
978
764
  summary: Write RSpec examples and generate coverage reports for Chef recipes!
979
765
  test_files:
980
- - features/apt_package.feature
981
- - features/apt_repository.feature
982
- - features/apt_update.feature
983
- - features/attributes.feature
984
- - features/batch.feature
985
- - features/bff_package.feature
986
- - features/cab_package.feature
987
- - features/cached.feature
988
- - features/chef_gem.feature
989
- - features/chocolatey_package.feature
990
- - features/compile_time.feature
991
- - features/cookbook_file.feature
992
- - features/cron.feature
993
- - features/custom_matcher.feature
994
- - features/custom_resource.feature
995
- - features/deploy.feature
996
- - features/directory.feature
997
- - features/dnf_package.feature
998
- - features/do_nothing.feature
999
- - features/dpkg_package.feature
1000
- - features/dsc_resource.feature
1001
- - features/dsc_script.feature
1002
- - features/env.feature
1003
- - features/erl_call.feature
1004
- - features/execute.feature
1005
- - features/exotic_zero_port.feature
1006
- - features/expect_exception.feature
1007
- - features/file.feature
1008
- - features/freebsd_package.feature
1009
- - features/gem_package.feature
1010
- - features/git.feature
1011
- - features/group.feature
1012
- - features/guards.feature
1013
- - features/heavy_provider_light_resource.feature
1014
- - features/homebrew_package.feature
1015
- - features/http_request.feature
1016
- - features/ifconfig.feature
1017
- - features/include_recipe.feature
1018
- - features/ips_package.feature
1019
- - features/launchd.feature
1020
- - features/link.feature
1021
- - features/log.feature
1022
- - features/macports_package.feature
1023
- - features/mdadm.feature
1024
- - features/mount.feature
1025
- - features/msu_package.feature
1026
- - features/multiple_actions.feature
1027
- - features/multiple_run_action.feature
1028
- - features/notifications.feature
1029
- - features/ohai.feature
1030
- - features/openbsd_package.feature
1031
- - features/osx_profile.feature
1032
- - features/package.feature
1033
- - features/pacman_package.feature
1034
- - features/paludis_package.feature
1035
- - features/portage_package.feature
1036
- - features/powershell_script.feature
1037
- - features/reboot.feature
1038
- - features/registry_key.feature
1039
- - features/remote_directory.feature
1040
- - features/remote_file.feature
1041
- - features/render_file.feature
1042
- - features/roles.feature
1043
- - features/route.feature
1044
- - features/rpm_package.feature
1045
- - features/ruby_block.feature
1046
- - features/script.feature
1047
- - features/server.feature
1048
- - features/server_on_disk.feature
1049
- - features/service.feature
1050
- - features/smartos_package.feature
1051
- - features/solaris_package.feature
1052
- - features/state_attrs.feature
1053
- - features/step_definitions/background_steps.rb
1054
- - features/step_into.feature
1055
- - features/stub_command.feature
1056
- - features/stub_data_bag.feature
1057
- - features/stub_data_bag_item.feature
1058
- - features/stub_node.feature
1059
- - features/stub_search.feature
1060
- - features/subscribes.feature
1061
- - features/subversion.feature
1062
- - features/support/env.rb
1063
- - features/support/executor.rb
1064
- - features/support/exotic_zero_port.rb
1065
- - features/support/on_disk.rb
1066
- - features/systemd_unit.feature
1067
- - features/template.feature
1068
- - features/use_inline_resources.feature
1069
- - features/user.feature
1070
- - features/windows_package.feature
1071
- - features/windows_service.feature
1072
- - features/yum_package.feature
1073
- - features/yum_repository.feature
1074
- - features/zypper_package.feature
1075
766
  - spec/spec_helper.rb
1076
767
  - spec/support/hash.rb
1077
- - spec/unit/api_spec.rb
1078
768
  - spec/unit/cacher_spec.rb
1079
769
  - spec/unit/coverage/filters_spec.rb
1080
770
  - spec/unit/deprecations_spec.rb