rspec-puppet 2.6.12 → 2.6.13
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 +10 -0
- data/lib/rspec-puppet.rb +8 -1
- data/lib/rspec-puppet/adapters.rb +11 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5020bbb4c2617605ec685fff03b6758f52e39618
|
|
4
|
+
data.tar.gz: 120375f102a07f4e70137d4775db43081aeb83bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ce834172e14e490eabc25dfaf0b3a0232d273eb7cbb6138231731a42939bd63e5662968044b3e553511603b3d0645f75c4c2013ddb30503529792a9a0a70fe9
|
|
7
|
+
data.tar.gz: 2e0abd0830f9c3faed1028c618b94334c7ac73ae2b88543f2db4ba38abb2698566eda4fb3b697508a88d2e7279c25002fae8765c7b37dc966adaad7d98c4d444
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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.6.13]
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
* rspec-puppet no longer attempts to set the `trusted_server_facts` Puppet
|
|
10
|
+
setting on Puppet 4.0.0, as the setting was only introduced in Puppet 4.1.0.
|
|
11
|
+
* Automatic `Selinux` stubbing introduced in 2.6.12 no longer assumes the use
|
|
12
|
+
of rspec-mocks. If rspec-mocks is not available, it will fall back to mocha
|
|
13
|
+
and finally fall back to doing nothing if neither is available.
|
|
14
|
+
|
|
5
15
|
## [2.6.12]
|
|
6
16
|
|
|
7
17
|
### Fixed
|
data/lib/rspec-puppet.rb
CHANGED
|
@@ -120,7 +120,14 @@ RSpec.configure do |c|
|
|
|
120
120
|
if RSpec::Puppet.rspec_puppet_example?
|
|
121
121
|
Puppet::Util::Platform.pretend_to_be RSpec.configuration.platform
|
|
122
122
|
stub_file_consts(example) if self.respond_to?(:stub_file_consts)
|
|
123
|
-
|
|
123
|
+
|
|
124
|
+
if defined?(Selinux)
|
|
125
|
+
if respond_to?(:allow)
|
|
126
|
+
allow(Selinux).to receive(:is_selinux_enabled).and_return(0)
|
|
127
|
+
elsif Selinux.respond_to?(:stubs)
|
|
128
|
+
Selinux.stubs(:is_selinux_enabled).returns(0)
|
|
129
|
+
end
|
|
130
|
+
end
|
|
124
131
|
end
|
|
125
132
|
end
|
|
126
133
|
|
|
@@ -107,7 +107,7 @@ module RSpec::Puppet
|
|
|
107
107
|
end
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Adapter40 < Base
|
|
111
111
|
def setup_puppet(example_group)
|
|
112
112
|
super
|
|
113
113
|
|
|
@@ -151,7 +151,6 @@ module RSpec::Puppet
|
|
|
151
151
|
[:hiera_config, :hiera_config],
|
|
152
152
|
[:strict_variables, :strict_variables],
|
|
153
153
|
[:manifest, :manifest],
|
|
154
|
-
[:trusted_server_facts, :trusted_server_facts]
|
|
155
154
|
])
|
|
156
155
|
end
|
|
157
156
|
|
|
@@ -185,6 +184,14 @@ module RSpec::Puppet
|
|
|
185
184
|
end
|
|
186
185
|
end
|
|
187
186
|
|
|
187
|
+
class Adapter4X < Adapter40
|
|
188
|
+
def settings_map
|
|
189
|
+
super.concat([
|
|
190
|
+
[:trusted_server_facts, :trusted_server_facts]
|
|
191
|
+
])
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
188
195
|
class Adapter30 < Base
|
|
189
196
|
def settings_map
|
|
190
197
|
super.concat([
|
|
@@ -241,7 +248,8 @@ module RSpec::Puppet
|
|
|
241
248
|
|
|
242
249
|
def self.get
|
|
243
250
|
[
|
|
244
|
-
['4.
|
|
251
|
+
['4.1', Adapter4X],
|
|
252
|
+
['4.0', Adapter40],
|
|
245
253
|
['3.5', Adapter35],
|
|
246
254
|
['3.4', Adapter34],
|
|
247
255
|
['3.3', Adapter33],
|
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.6.
|
|
4
|
+
version: 2.6.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tim Sharpe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-06-
|
|
11
|
+
date: 2018-06-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|