puppetlabs_spec_helper 6.0.0.rc.1 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be54cffdbba3df2bbc1d420a022b8c09944157f8d28eea1d4c287e117516595d
|
4
|
+
data.tar.gz: 4770d483808a9e6c380fb2ea6dc6bfb99730916ae1430fb4579a80a8421f51e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea49b0a799ea3d8f8561f186705e4dcfe18b39b46abe60c082cd78ec5349e183ae4b19958d23be696edb0962c094f79b0cb5763d534e64c3d3a22633a617b76e
|
7
|
+
data.tar.gz: 34c2e4d8389a653e0c6b5e4ce07f78c84e8dd01d7acdb3d05a1ef0a5f20d3847c004c27d9594f8fc66c3121af69710598b6ef6e8fcded48c04db67d65b22e3c7
|
@@ -69,14 +69,16 @@ RSpec.configure do |c|
|
|
69
69
|
c.module_path = module_path
|
70
70
|
c.manifest_dir = File.join(fixture_path, 'manifests')
|
71
71
|
|
72
|
+
# https://github.com/puppetlabs/rspec-puppet#strict_variables
|
73
|
+
c.strict_variables = ENV['STRICT_VARIABLES'] != 'no'
|
74
|
+
# https://github.com/puppetlabs/rspec-puppet#ordering
|
75
|
+
c.ordering = ENV['ORDERING'] if ENV['ORDERING']
|
76
|
+
|
72
77
|
c.before :each do
|
73
78
|
if c.mock_framework.framework_name == :rspec
|
74
79
|
allow(Puppet.features).to receive(:root?).and_return(true)
|
75
80
|
else
|
76
81
|
Puppet.features.stubs(:root?).returns(true)
|
77
82
|
end
|
78
|
-
|
79
|
-
Puppet.settings[:strict_variables] = true if ENV['STRICT_VARIABLES'] == 'yes' || ENV['STRICT_VARIABLES'] != 'no'
|
80
|
-
Puppet.settings[:ordering] = ENV['ORDERING'] if ENV['ORDERING']
|
81
83
|
end
|
82
84
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppetlabs_spec_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.0
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-04-
|
12
|
+
date: 2023-04-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mocha
|
@@ -158,9 +158,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '2.7'
|
159
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
|
-
- - "
|
161
|
+
- - ">="
|
162
162
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
163
|
+
version: '0'
|
164
164
|
requirements:
|
165
165
|
- puppet, >= 7.0.0
|
166
166
|
rubygems_version: 3.1.6
|