voxpupuli-test 0.1.0 → 0.2.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/lib/voxpupuli/test/spec_helper.rb +8 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9315c6232f3746cc7cf87d19f7584e9ff611f09272836d2c18eb075bdc02404c
|
|
4
|
+
data.tar.gz: fc15c153deebe4c4715bee49dd64d57d7c583b982e3a0ba73e8d0c97a926ee73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e053c52ce5797c9f5b9cf242e507853345669829dbdad6b686e5bf9a9458f7db1b59d679507c60653aee0a06bfd2f277c95c885b5e812ea777328e8671b2a18
|
|
7
|
+
data.tar.gz: aaaa319764cd09d77af4698547a9da90f6bfee1b258cbfa2c981b18fdf1bdb28b33bc0d11e7efdef1679cf4af2ef323a3f4bf750c496a8528c37dedfddb12785
|
|
@@ -4,9 +4,15 @@
|
|
|
4
4
|
# Otherwise we need to match the correct facter version to the used puppet version.
|
|
5
5
|
# as of 2019-10-31, puppet 5 ships facter 3.11 and puppet 6 ships facter 3.14
|
|
6
6
|
# https://puppet.com/docs/puppet/5.5/about_agent.html
|
|
7
|
+
#
|
|
8
|
+
# The environment variable `PUPPET_VERSION` is available in our travis environment, but we cannot rely on it
|
|
9
|
+
# if somebody runs the tests locally. For that case we should fallback the the puppet gem version.
|
|
7
10
|
def suggest_facter_version
|
|
11
|
+
return ENV['FACTERDB_FACTS_VERSION'] if ENV['FACTERDB_FACTS_VERSION']
|
|
12
|
+
|
|
8
13
|
require 'bundler'
|
|
9
|
-
|
|
14
|
+
puppet_version = ENV['PUPPET_VERSION'] ? ENV['PUPPET_VERSION'] : Gem.loaded_specs['puppet'].version.to_s
|
|
15
|
+
Gem::Dependency.new('', puppet_version).match?('', '5') ? '3.11.0' : '3.14.0'
|
|
10
16
|
end
|
|
11
17
|
|
|
12
18
|
RSpec.configure do |config|
|
|
@@ -23,7 +29,7 @@ require 'rspec-puppet-facts'
|
|
|
23
29
|
include RspecPuppetFacts
|
|
24
30
|
|
|
25
31
|
RSpec.configure do |config|
|
|
26
|
-
config.default_facter_version =
|
|
32
|
+
config.default_facter_version = suggest_facter_version
|
|
27
33
|
|
|
28
34
|
# Coverage generation
|
|
29
35
|
config.after(:suite) do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: voxpupuli-test
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vox Pupuli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-02-
|
|
11
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -292,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
292
292
|
- !ruby/object:Gem::Version
|
|
293
293
|
version: '0'
|
|
294
294
|
requirements: []
|
|
295
|
-
rubygems_version: 3.
|
|
295
|
+
rubygems_version: 3.0.6
|
|
296
296
|
signing_key:
|
|
297
297
|
specification_version: 4
|
|
298
298
|
summary: Helpers for testing Vox Pupuli modules
|