puppetlabs_spec_helper 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmU1NDkwYzEzMzYxY2Q5NGJiMzEwY2FhMjU2MmM5YjU1NzA3YWNmYw==
4
+ ODRhM2NjMmRkMTA5ZTMxMzEwMjdhZDI0MmE3MzRiMmM3Y2NkMWFjZg==
5
5
  data.tar.gz: !binary |-
6
- NzZmZTRiYWY2OTAxODZkM2E1ODRhMjkxMDNmYmVkYWIxYWMyY2NhNA==
6
+ MDhkZjY5NmZlY2FhMjAzY2E4YWZlODlmMzEyNWVjZDRjMjFkNGFmYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTlmMDA3MTY5ZDBhYjEwMjgzZWFmMDliNzM5NmZhZDhhYTc5ZTIyYjYzM2Ni
10
- OWZhNjM3M2JhYjhiMjJjYzUyZjZiZTEyNTU3YmE1OTMxZThiYTcyMjczODdm
11
- NDRiNTQ0MWU2ZDlmMjM4M2JkMmZjOTJmMzI2YzY0Njg1NzgzNGM=
9
+ YmI3NzE2Njk0ODMyZGRkMzMyZTM3NzI4MGFjNzBiNjJhYzJlNjZmNDMzZTU2
10
+ NThmMWYwOWU4NDFkMzU4YzQ1YzBlY2NmZjFkMjk5YjFiNTkzZDYwMjRjNDk3
11
+ ZDlkM2E4NzllZDNhMWZlMjJlMmJmMzUyOWNjN2I0NjMyMjJkYmM=
12
12
  data.tar.gz: !binary |-
13
- Y2E3N2U3ZDYxODgzMmM5MmM1NWUzNTZjZWZkN2VhYThmMTk3MzdkNjUxYTJj
14
- ZDgwNGI0ZTQ5NTA0ZTc3YjJiZTBkYWFiNDczMzRjZDUyZjU4Y2Y4MzU4ODM5
15
- OTYwY2MzNDY3N2EyNWNkZmY2ODBjMTA4ZmUwODUwNTk4NDFlOWI=
13
+ NDlhNGU0OTIxZmNlM2I3MjJjMDY0MDEwNDhiOGE5ZjAyZGNjNmYzMjAyYWZh
14
+ YzVlY2M5N2IzN2Q3YTQ0OGMyZTgzNDE5MWZkN2FkMjI4YWU3NzM0MDZmZDVl
15
+ YThkMWM3NmUwODQ0ZmVjYzhmMWE2NTg2YjkzMzMxMzg4YzdjNzE=
@@ -2,6 +2,14 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [0.10.3] - 2015-05-11
6
+ ### Summary:
7
+ A bugfix for puppet 3 and puppet 4 tests being able to run with the same environment variables.
8
+
9
+ ### Fixed:
10
+ - Allow `STRINGIFY_FACTS` and `TRUSTED_NODE_DATA` to be set on Puppet 4 as noop instead of fail
11
+ - Fix linting to be more like approved module criteria
12
+
5
13
  ## [0.10.2] - 2015-04-14
6
14
  ### Summary:
7
15
  A bugfix for puppet 4 coming out, which manages modulepath and environments differently.
@@ -33,9 +33,12 @@ RSpec.configure do |c|
33
33
 
34
34
  c.before :each do
35
35
  Puppet.features.stubs(:root?).returns(true)
36
+ # stringify_facts and trusted_node_data were removed in puppet4
37
+ if Puppet.version.to_f < 4.0
38
+ Puppet.settings[:stringify_facts] = false if ENV['STRINGIFY_FACTS'] == 'no'
39
+ Puppet.settings[:trusted_node_data] = true if ENV['TRUSTED_NODE_DATA'] == 'yes'
40
+ end
36
41
  Puppet.settings[:strict_variables] = true if ENV['STRICT_VARIABLES'] == 'yes'
37
- Puppet.settings[:stringify_facts] = false if ENV['STRINGIFY_FACTS'] == 'no'
38
- Puppet.settings[:trusted_node_data] = true if ENV['TRUSTED_NODE_DATA'] == 'yes'
39
42
  Puppet.settings[:ordering] = ENV['ORDERING'] if ENV['ORDERING']
40
43
  end
41
44
  end
@@ -210,15 +210,21 @@ task :clean do
210
210
  FileUtils.rm_rf("pkg/")
211
211
  end
212
212
 
213
- desc "Check puppet manifests with puppet-lint"
214
- task :lint do
215
- require 'puppet-lint/tasks/puppet-lint'
216
- PuppetLint.configuration.relative = true
217
- PuppetLint.configuration.disable_class_inherits_from_params_class
218
- PuppetLint.configuration.ignore_paths ||= []
219
- PuppetLint.configuration.ignore_paths << "spec/fixtures/**/*.pp"
220
- PuppetLint.configuration.ignore_paths << "pkg/**/*.pp"
221
- PuppetLint.configuration.ignore_paths << "vendor/**/*.pp"
213
+ require 'puppet-lint/tasks/puppet-lint'
214
+ # Must clear as it will not override the existing puppet-lint rake task since we require to import for
215
+ # the PuppetLint::RakeTask
216
+ Rake::Task[:lint].clear
217
+ # Relative is not able to be set within the context of PuppetLint::RakeTask
218
+ PuppetLint.configuration.relative = true
219
+ PuppetLint::RakeTask.new(:lint) do |config|
220
+ config.fail_on_warnings = true
221
+ config.disable_checks = [
222
+ '80chars',
223
+ 'class_inherits_from_params_class',
224
+ 'class_parameter_defaults',
225
+ 'documentation',
226
+ 'single_quote_string_with_variables']
227
+ config.ignore_paths = ["tests/**/*.pp", "vendor/**/*.pp","examples/**/*.pp" "spec/**/*.pp", "pkg/**/*.pp"]
222
228
  end
223
229
 
224
230
  require 'puppet-syntax/tasks/puppet-syntax'
@@ -1,5 +1,5 @@
1
1
  module PuppetlabsSpecHelper
2
2
  module Version
3
- STRING = '0.10.2'
3
+ STRING = '0.10.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetlabs_spec_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-14 00:00:00.000000000 Z
11
+ date: 2015-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake