rspec-puppet 2.7.3 → 2.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -0
- data/lib/rspec-puppet/coverage.rb +5 -0
- data/lib/rspec-puppet/support.rb +11 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 95bf3d879ba756cda5b177f912cfe475bbbc4bc447f5406f9f1316fbfe993ba4
|
4
|
+
data.tar.gz: 2f28954f31be33d33106a654b223674813dbe077e9389da1a2c3e1220f4f9aa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de1fe9a59b9f74dc5da66bf23121cdcc7b0330837fc6ba3305e5e40d4170b5a45447d454ee7c20aa747a40bb59a8536430f966b55ee963c5bb274ca595746ef4
|
7
|
+
data.tar.gz: e1f45453a1d1263244c14d12550bd7ace1c291983c93aa4516bd7cb6f3f4b75dbac047c3ebad7bb41937082a2f225292cb3161c6bf2618ce22b30af15d36c8a5
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
All notable changes to this project will be documented in this file. This
|
3
3
|
project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## [2.7.4]
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
* Fix the resource coverage test so that rspec will exit non-zero if the
|
9
|
+
desired coverage is not met.
|
10
|
+
|
5
11
|
## [2.7.3]
|
6
12
|
|
7
13
|
### Fixed
|
@@ -159,6 +159,11 @@ module RSpec::Puppet
|
|
159
159
|
end
|
160
160
|
coverage_test.run(RSpec.configuration.reporter)
|
161
161
|
|
162
|
+
if coverage_results.execution_result[:status] == :failed
|
163
|
+
RSpec.world.non_example_failure = true
|
164
|
+
RSpec.world.wants_to_quit = true
|
165
|
+
end
|
166
|
+
|
162
167
|
# This is not available on RSpec 2.x
|
163
168
|
if coverage_results.execution_result.respond_to?(:pending_message)
|
164
169
|
coverage_results.execution_result.pending_message = report[:text]
|
data/lib/rspec-puppet/support.rb
CHANGED
@@ -129,13 +129,18 @@ module RSpec::Puppet
|
|
129
129
|
end
|
130
130
|
|
131
131
|
def site_pp_str
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
132
|
+
return '' unless (path = adapter.manifest)
|
133
|
+
|
134
|
+
if File.file?(path)
|
135
|
+
File.read(path)
|
136
|
+
elsif File.directory?(path)
|
137
|
+
# Read and concatenate all .pp files.
|
138
|
+
Dir[File.join(path, '*.pp')].sort.map do |f|
|
139
|
+
File.read(f)
|
140
|
+
end.join("\n")
|
141
|
+
else
|
142
|
+
''
|
137
143
|
end
|
138
|
-
site_pp_str
|
139
144
|
end
|
140
145
|
|
141
146
|
def test_manifest(type, opts = {})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Sharpe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.6.
|
92
|
+
rubygems_version: 2.7.6.2
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: RSpec tests for your Puppet manifests
|