chefspec 7.0.0 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/Gemfile +6 -0
- data/README.md +43 -11
- data/Rakefile +48 -8
- data/chefspec.gemspec +0 -8
- data/examples/cab_package/spec/install_spec.rb +20 -18
- data/examples/cab_package/spec/remove_spec.rb +17 -15
- data/examples/cached/spec/default_spec.rb +1 -0
- data/examples/compile_time/spec/default_spec.rb +2 -0
- data/examples/custom_matcher/libraries/matcher.rb +1 -23
- data/examples/dnf_package/spec/install_spec.rb +20 -18
- data/examples/dnf_package/spec/purge_spec.rb +17 -15
- data/examples/dnf_package/spec/remove_spec.rb +17 -15
- data/examples/dnf_package/spec/upgrade_spec.rb +17 -15
- data/examples/heavy_provider_light_resource/spec/provider_service_spec.rb +1 -0
- data/examples/msu_package/spec/install_spec.rb +20 -18
- data/examples/msu_package/spec/remove_spec.rb +17 -15
- data/examples/server/spec/exotic_port_spec.rb +15 -2
- data/lib/chefspec.rb +1 -8
- data/lib/chefspec/api.rb +6 -84
- data/lib/chefspec/api/do_nothing.rb +18 -21
- data/lib/chefspec/api/include_recipe.rb +20 -23
- data/lib/chefspec/api/link.rb +20 -99
- data/lib/chefspec/api/notifications.rb +32 -35
- data/lib/chefspec/api/reboot.rb +5 -14
- data/lib/chefspec/api/render_file.rb +29 -32
- data/lib/chefspec/api/state_attrs.rb +22 -25
- data/lib/chefspec/api/subscriptions.rb +29 -32
- data/lib/chefspec/api/user.rb +216 -219
- data/lib/chefspec/extensions.rb +16 -0
- data/lib/chefspec/extensions/chef/resource.rb +90 -8
- data/lib/chefspec/version.rb +1 -1
- data/lib/chefspec/zero_server.rb +20 -18
- metadata +3 -313
- data/examples/custom_resource/libraries/matchers.rb +0 -5
- data/examples/use_inline_resources/libraries/matchers.rb +0 -5
- data/features/apt_package.feature +0 -14
- data/features/apt_repository.feature +0 -15
- data/features/apt_update.feature +0 -13
- data/features/attributes.feature +0 -7
- data/features/batch.feature +0 -10
- data/features/bff_package.feature +0 -12
- data/features/cab_package.feature +0 -21
- data/features/cached.feature +0 -7
- data/features/chef_gem.feature +0 -14
- data/features/chocolatey_package.feature +0 -14
- data/features/compile_time.feature +0 -7
- data/features/cookbook_file.feature +0 -13
- data/features/cron.feature +0 -11
- data/features/custom_matcher.feature +0 -11
- data/features/custom_resource.feature +0 -7
- data/features/deploy.feature +0 -12
- data/features/directory.feature +0 -11
- data/features/dnf_package.feature +0 -26
- data/features/do_nothing.feature +0 -10
- data/features/dpkg_package.feature +0 -12
- data/features/dsc_resource.feature +0 -10
- data/features/dsc_script.feature +0 -10
- data/features/env.feature +0 -12
- data/features/erl_call.feature +0 -10
- data/features/execute.feature +0 -10
- data/features/exotic_zero_port.feature +0 -7
- data/features/expect_exception.feature +0 -12
- data/features/file.feature +0 -13
- data/features/freebsd_package.feature +0 -11
- data/features/gem_package.feature +0 -14
- data/features/git.feature +0 -12
- data/features/group.feature +0 -13
- data/features/guards.feature +0 -10
- data/features/heavy_provider_light_resource.feature +0 -10
- data/features/homebrew_package.feature +0 -12
- data/features/http_request.feature +0 -15
- data/features/ifconfig.feature +0 -13
- data/features/include_recipe.feature +0 -10
- data/features/ips_package.feature +0 -12
- data/features/launchd.feature +0 -17
- data/features/link.feature +0 -12
- data/features/log.feature +0 -10
- data/features/macports_package.feature +0 -13
- data/features/mdadm.feature +0 -12
- data/features/mount.feature +0 -14
- data/features/msu_package.feature +0 -23
- data/features/multiple_actions.feature +0 -12
- data/features/multiple_run_action.feature +0 -7
- data/features/notifications.feature +0 -14
- data/features/ohai.feature +0 -10
- data/features/openbsd_package.feature +0 -12
- data/features/osx_profile.feature +0 -13
- data/features/package.feature +0 -14
- data/features/pacman_package.feature +0 -13
- data/features/paludis_package.feature +0 -12
- data/features/portage_package.feature +0 -13
- data/features/powershell_script.feature +0 -10
- data/features/reboot.feature +0 -12
- data/features/registry_key.feature +0 -13
- data/features/remote_directory.feature +0 -12
- data/features/remote_file.feature +0 -13
- data/features/render_file.feature +0 -11
- data/features/roles.feature +0 -7
- data/features/route.feature +0 -11
- data/features/rpm_package.feature +0 -12
- data/features/ruby_block.feature +0 -11
- data/features/script.feature +0 -16
- data/features/server.feature +0 -16
- data/features/server_on_disk.feature +0 -16
- data/features/service.feature +0 -15
- data/features/smartos_package.feature +0 -12
- data/features/solaris_package.feature +0 -12
- data/features/state_attrs.feature +0 -7
- data/features/step_definitions/background_steps.rb +0 -7
- data/features/step_into.feature +0 -7
- data/features/stub_command.feature +0 -7
- data/features/stub_data_bag.feature +0 -7
- data/features/stub_data_bag_item.feature +0 -7
- data/features/stub_node.feature +0 -7
- data/features/stub_search.feature +0 -7
- data/features/subscribes.feature +0 -14
- data/features/subversion.feature +0 -13
- data/features/support/env.rb +0 -38
- data/features/support/executor.rb +0 -20
- data/features/support/exotic_zero_port.rb +0 -3
- data/features/support/on_disk.rb +0 -7
- data/features/systemd_unit.feature +0 -27
- data/features/template.feature +0 -13
- data/features/use_inline_resources.feature +0 -7
- data/features/user.feature +0 -15
- data/features/windows_package.feature +0 -11
- data/features/windows_service.feature +0 -16
- data/features/yum_package.feature +0 -13
- data/features/yum_repository.feature +0 -23
- data/features/zypper_package.feature +0 -13
- data/lib/chefspec/api/apt_package.rb +0 -192
- data/lib/chefspec/api/apt_repository.rb +0 -56
- data/lib/chefspec/api/apt_update.rb +0 -53
- data/lib/chefspec/api/batch.rb +0 -43
- data/lib/chefspec/api/bff_package.rb +0 -154
- data/lib/chefspec/api/cab_package.rb +0 -80
- data/lib/chefspec/api/chef_gem.rb +0 -191
- data/lib/chefspec/api/chocolatey_package.rb +0 -107
- data/lib/chefspec/api/cookbook_file.rb +0 -166
- data/lib/chefspec/api/cron.rb +0 -80
- data/lib/chefspec/api/deploy.rb +0 -117
- data/lib/chefspec/api/directory.rb +0 -80
- data/lib/chefspec/api/dnf_package.rb +0 -154
- data/lib/chefspec/api/dpkg_package.rb +0 -117
- data/lib/chefspec/api/dsc_resource.rb +0 -49
- data/lib/chefspec/api/dsc_script.rb +0 -37
- data/lib/chefspec/api/easy_install_package.rb +0 -154
- data/lib/chefspec/api/env.rb +0 -117
- data/lib/chefspec/api/erl_call.rb +0 -43
- data/lib/chefspec/api/execute.rb +0 -43
- data/lib/chefspec/api/file.rb +0 -166
- data/lib/chefspec/api/freebsd_package.rb +0 -80
- data/lib/chefspec/api/gem_package.rb +0 -191
- data/lib/chefspec/api/git.rb +0 -117
- data/lib/chefspec/api/group.rb +0 -154
- data/lib/chefspec/api/homebrew_package.rb +0 -154
- data/lib/chefspec/api/http_request.rb +0 -228
- data/lib/chefspec/api/ifconfig.rb +0 -154
- data/lib/chefspec/api/ips_package.rb +0 -117
- data/lib/chefspec/api/launchd.rb +0 -151
- data/lib/chefspec/api/log.rb +0 -43
- data/lib/chefspec/api/macports_package.rb +0 -154
- data/lib/chefspec/api/mdadm.rb +0 -117
- data/lib/chefspec/api/mount.rb +0 -192
- data/lib/chefspec/api/msu_package.rb +0 -81
- data/lib/chefspec/api/ohai.rb +0 -43
- data/lib/chefspec/api/openbsd_package.rb +0 -155
- data/lib/chefspec/api/osx_profile.rb +0 -63
- data/lib/chefspec/api/package.rb +0 -192
- data/lib/chefspec/api/pacman_package.rb +0 -155
- data/lib/chefspec/api/paludis_package.rb +0 -155
- data/lib/chefspec/api/portage_package.rb +0 -155
- data/lib/chefspec/api/powershell_script.rb +0 -43
- data/lib/chefspec/api/registry_key.rb +0 -166
- data/lib/chefspec/api/remote_directory.rb +0 -120
- data/lib/chefspec/api/remote_file.rb +0 -166
- data/lib/chefspec/api/route.rb +0 -80
- data/lib/chefspec/api/rpm_package.rb +0 -117
- data/lib/chefspec/api/ruby_block.rb +0 -68
- data/lib/chefspec/api/script.rb +0 -278
- data/lib/chefspec/api/service.rb +0 -246
- data/lib/chefspec/api/smartos_package.rb +0 -117
- data/lib/chefspec/api/solaris_package.rb +0 -117
- data/lib/chefspec/api/subversion.rb +0 -154
- data/lib/chefspec/api/systemd_unit.rb +0 -353
- data/lib/chefspec/api/template.rb +0 -166
- data/lib/chefspec/api/windows_package.rb +0 -86
- data/lib/chefspec/api/windows_service.rb +0 -286
- data/lib/chefspec/api/yum_package.rb +0 -154
- data/lib/chefspec/api/yum_repository.rb +0 -130
- data/lib/chefspec/api/zypper_package.rb +0 -154
- 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
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
-
|
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
|
-
|
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)
|
data/lib/chefspec/version.rb
CHANGED
data/lib/chefspec/zero_server.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
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
|