puppetlabs_spec_helper 0.10.1 → 0.10.2

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODcwMTc1NWRkNjVhYWFjYWYyNmJlZTlhNjJkMmJkODIxNmViYjY0OA==
4
+ YmU1NDkwYzEzMzYxY2Q5NGJiMzEwY2FhMjU2MmM5YjU1NzA3YWNmYw==
5
5
  data.tar.gz: !binary |-
6
- Nzc0ZTdhNDQyN2I5MjYyMzY2YjllMTNiOTFhN2I4YWIzMGEzMGU5NQ==
6
+ NzZmZTRiYWY2OTAxODZkM2E1ODRhMjkxMDNmYmVkYWIxYWMyY2NhNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzkwNWQ1MzBkZmIyYjdmZjc5NGI3OTlmZTE2MDMxMDU4ZWNiZjc0NDNhMmU4
10
- MDQ4NDJiZDllMWNlY2E5YTkzOGJhMmY2OGZhMzFlMzkxNzA4NTEwMGE2NDdm
11
- OTk5YjdiZTZhMjlmN2NlZjdkZjVkOWYwOGNkMDQ4ODFiNTZiMWQ=
9
+ YTlmMDA3MTY5ZDBhYjEwMjgzZWFmMDliNzM5NmZhZDhhYTc5ZTIyYjYzM2Ni
10
+ OWZhNjM3M2JhYjhiMjJjYzUyZjZiZTEyNTU3YmE1OTMxZThiYTcyMjczODdm
11
+ NDRiNTQ0MWU2ZDlmMjM4M2JkMmZjOTJmMzI2YzY0Njg1NzgzNGM=
12
12
  data.tar.gz: !binary |-
13
- YTgyNDY5NzIyZTJhMDVlZDA1YTdhZjljMWJiMDc5NzQzYzU5NzFhMzVkZDQz
14
- YWRmZTJmZTk3ZTZmMWFiNTIxNThiZDAwNWQ0ZGI5YWRmMWFkMDk3MDAxMmNm
15
- NjdiMWRlNzQxMDgwNjJhODM0OTUwYThlMTMxZTE1ZWNhMzZjMTA=
13
+ Y2E3N2U3ZDYxODgzMmM5MmM1NWUzNTZjZWZkN2VhYThmMTk3MzdkNjUxYTJj
14
+ ZDgwNGI0ZTQ5NTA0ZTc3YjJiZTBkYWFiNDczMzRjZDUyZjU4Y2Y4MzU4ODM5
15
+ OTYwY2MzNDY3N2EyNWNkZmY2ODBjMTA4ZmUwODUwNTk4NDFlOWI=
@@ -1,127 +1,138 @@
1
- 2015-03-17 - Release 0.10.1
2
- Summary:
1
+ # Change log
2
+ All notable changes to this project will be documented in this file.
3
+ This project adheres to [Semantic Versioning](http://semver.org/).
4
+
5
+ ## [0.10.2] - 2015-04-14
6
+ ### Summary:
7
+ A bugfix for puppet 4 coming out, which manages modulepath and environments differently.
8
+
9
+ ### Fixed:
10
+ - Use puppet 4 environmentpath and environment creation on puppet 4
11
+
12
+ ## [0.10.1] - 2015-03-17
13
+ ### Summary:
3
14
  A bugfix for the previous release when using references.
4
15
 
5
- Bugfixes:
16
+ ### Fixed:
6
17
  - Only shallow clone if not using a reference
7
18
 
8
- 2015-03-16 - Release 0.10.0
9
- Summary:
19
+ ## [0.10.0] - 2015-03-16
20
+ ### Summary:
10
21
  This release adds shallow fixtures clones to speed up the spec_prep step for
11
22
  rspec-puppet
12
23
 
13
- Features:
24
+ ### Added:
14
25
  - Shallow clone fixtures
15
26
 
16
- Bugfixes:
27
+ ### Fixed:
17
28
  - Don't lint in vendor/ (spec/fixtures/ and pkg/ are alread ignored)
18
29
  - Don't syntax check in spec/fixtures/, pkg/, or vendor/
19
30
 
20
- 2015-02-24 - Release 0.9.1
21
- Summary:
31
+ ## [0.9.1] - 2015-02-24
32
+ ### Summary:
22
33
  This release removes the hard dependency on metadata-json-lint, as it requires
23
34
  a dev toolchain to install the 'json' gem.
24
35
 
25
- Bugfixes:
36
+ ### Fixed:
26
37
  - Only warn when metadata-json-lint isn't installed instead of requiring it
27
38
 
28
- 2015-02-24 - Release 0.9.0
29
- Summary:
39
+ ## [0.9.0] - 2015-02-24
40
+ ### Summary:
30
41
  This release adds fixes for rspec-puppet 2.0 and json linting for metadata.json
31
42
 
32
- Features:
43
+ ### Added:
33
44
  - Add json linting for metadata.json (adds dep on metadata-json-lint gem)
34
45
  - Document using references in fixtures
35
46
 
36
- Bugfixes:
37
- - FUTURE_PARSER=yes working with rspec-puppet 2.0
47
+ ### Fixed:
48
+ - `FUTURE_PARSER=yes` working with rspec-puppet 2.0
38
49
  - Symlinks breaking on windows
39
50
  - rspec as a runtime dependency conflicting with rspec-puppet
40
51
  - root stub for testing execs
41
52
 
42
- 2014-10-01 - Release 0.8.2
43
- Summary:
53
+ ## [0.8.2] - 2014-10-01
54
+ ### Summary:
44
55
  This release fixes the lint task on the latest puppet-lint
45
56
 
46
- Bugfixes:
57
+ ### Fixed:
47
58
  - Fix the lint task require code
48
59
 
49
- 2014-08-25 - Release 0.8.1
50
- Summary:
60
+ ## [0.8.1] - 2014-08-25
61
+ ### Summary:
51
62
  This release corrects compatibility with the recently-released puppet-lint
52
63
  1.0.0
53
64
 
54
- Bugfixes:
65
+ ### Fixed:
55
66
  - Turn on relative autoloader lint checking for backwards-compatibility
56
67
  - Turn off param class inheritance check (deprecated style)
57
- - Fix ignore paths to ignore pkg/*
68
+ - Fix ignore paths to ignore `pkg/*`
58
69
 
59
- 2014-07-29 - Release 0.8.0
60
- Summary:
70
+ ## [0.8.0] - 2014-07-29
71
+ ### Summary:
61
72
  This release uses the new puppet-syntax gem to perform manifest validation
62
73
  better than before! Shiny.
63
74
 
64
- Features:
75
+ ### Added:
65
76
  - Use puppet-syntax gem for manifest validation rake task
66
77
 
67
- Bugfixes:
78
+ ### Fixed:
68
79
  - Fix compatibility with rspec 3
69
80
 
70
- 2014-07-17 - Release 0.7.0
71
- Summary:
81
+ ## [0.7.0] - 2014-07-17
82
+ ### Summary:
72
83
  This feature release adds the ability to test structured facts, manifest
73
84
  ordering, and trusted node facts, and check out branches with fixtures.
74
85
 
75
- Features:
86
+ ### Added:
76
87
  - Add `STRINGIFY_FACTS=no` for structured facts
77
88
  - Add `TRUSTED_NODE_DATA=yes` for trusted node data
78
89
  - Add `ORDERING=<order>` for manifest ordering
79
90
  - Add `:branch` support for fixtures on a branch.
80
91
 
81
- Bugfixes:
92
+ ### Fixed:
82
93
  - Fix puppet-lint to ignore spec/fixtures/
83
94
 
84
- 2014-07-02 - Release 0.6.0
85
- Summary:
95
+ ## [0.6.0] - 2014-07-02
96
+ ### Summary:
86
97
  This feature release adds the `validate` rake task and the ability to test
87
98
  strict variables and the future parser with rspec-puppet.
88
99
 
89
- Features:
100
+ ### Added:
90
101
  - Add `validate` rake task.
91
102
  - Add `STRICT_VARIABLES=yes` to module_spec_helper
92
103
  - Add `FUTURE_PARSER=yes` to module_spec_helper
93
104
 
94
- Bugfixes:
105
+ ### Fixed:
95
106
  - Avoid conflict with Object.clone
96
107
  - Install forge fixtures without conflicting with already-installed modules
97
108
 
98
- 2014-06-19 - Release 0.5.2
99
- Summary:
109
+ ## [0.5.2] - 2014-06-19
110
+ ### Summary:
100
111
  This release removes the previously non-existant puppet runtime dependency to
101
112
  better match rspec-puppet and puppet-lint and allow system puppet packages to
102
113
  be used instead of gems.
103
114
 
104
- Bugfixes:
115
+ ### Fixed:
105
116
  - Remove puppet dependency from gemspec
106
117
 
107
- 2014-06-09 - Release 0.5.1
108
- Summary:
118
+ ## [0.5.1] - 2014-06-09
119
+ ### Summary:
109
120
  This release re-adds mocha mocking, which was mistakenly removed in 0.5.0
110
121
 
111
- Bugfixes:
122
+ ### Fixed:
112
123
  - Re-enable mocha mocking as default.
113
124
 
114
- 2014-06-06 - Release 0.5.0
115
- Summary:
125
+ ## [0.5.0] - 2014-06-06
126
+ ### Summary:
116
127
  This is the first feature release in over a year. The biggest feature is fixtures supporting the forge, and not just github, plus rake tasks for syntax checking and beaker.
117
128
 
118
- Features:
129
+ ### Added:
119
130
  - Install modules from the forge, not just git
120
131
  - Beaker rake tasks added
121
132
  - Syntax task added
122
133
  - Rake spec runs tests in `integration/` directory
123
134
 
124
- Bugfixes:
135
+ ### Fixed:
125
136
  - Fix the gemspec so that this may be used with bundler
126
137
  - Fix removal of symlinks
127
138
  - Fix removal of site.pp only when empty
@@ -129,42 +140,68 @@ Bugfixes:
129
140
  - Remove extra mocha dependency
130
141
  - Remove rspec pinning (oops)
131
142
 
132
- 2014-06-06 - Release 0.4.2
133
-
134
- Summary:
143
+ ## 0.4.2 - 2014-06-06 [YANKED]
144
+ ### Summary:
135
145
  This release corrects the pinning of rspec for modules which are not rspec 3
136
146
  compatible yet.
137
147
 
138
- Bugfixes:
148
+ ### Fixed:
139
149
  * Pin to 2.x range for rspec 2
140
150
  * Fix aborting rake task when packaging gem
141
151
  * Fix puppet issue tracker url
142
152
  * Fix issue with running `git reset` in the incorrect dir
143
153
 
144
- 2013-02-08 Puppet Labs <info@puppetlabs.com> - 0.4.1
154
+ ## [0.4.1] - 2013-02-08
155
+ ### Fixed
145
156
  * (#18165) Mark tests pending on broken puppet versions
146
157
  * (#18165) Initialize TestHelper as soon as possible
147
158
  * Maint: Change formatting and handle windows path separator
148
159
 
149
- 2012-12-14 Puppet Labs <info@puppetlabs.com> - 0.4.0
150
- * Rake should fail if git can't clone repository
160
+ ## [0.4.0] - 2012-12-14
161
+ ### Added
151
162
  * Add readme for fixtures
152
- * Fix Mocha deprecations
153
163
  * add opts logic to rake spec_clean
154
164
  * add backwards-compatible support for arbitrary git refs in .fixtures.yml
165
+
166
+ ### Fixed
167
+ * Rake should fail if git can't clone repository
168
+ * Fix Mocha deprecations
155
169
  * Only remove the site.pp if it is empty
156
170
  * (#15464) Make contributing easy via bundle Gemfile
157
171
  * (#15464) Add gemspec from 0.3.0 published gem
158
172
 
159
- 2012-08-14 Puppet Labs <info@puppetlabs.com> - 0.3.0
173
+ ## [0.3.0] - 2012-08-14
174
+ ### Added
160
175
  * Add PuppetInternals compatibility module for
161
176
  scope, node, compiler, and functions
162
177
  * Add rspec-puppet convention directories to rake tasks
163
178
 
164
- 2012-07-05 Puppet Labs <info@puppetlabs.com> - 0.2.0
179
+ ## [0.2.0] - 2012-07-05
180
+ ### Fixed
165
181
  * Fix integration with mocha-0.12.0
166
182
  * Fix coverage rake task
167
183
  * Fix an issue creating the fixtures directory
168
184
 
169
- 2012-06-08 Puppet Labs <info@puppetlabs.com> - 0.1.0
185
+ ## 0.1.0 - 2012-06-08
186
+ ### Added
170
187
  * Initial release
188
+
189
+ [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.10.1...master
190
+ [0.10.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.10.1...0.10.2
191
+ [0.10.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.10.0...0.10.1
192
+ [0.10.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.9.1...0.10.0
193
+ [0.9.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.9.0...0.9.1
194
+ [0.9.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.8.2...0.9.0
195
+ [0.8.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.8.1...0.8.2
196
+ [0.8.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.8.0...0.8.1
197
+ [0.8.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.7.0...0.8.0
198
+ [0.7.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.6.0...0.7.0
199
+ [0.6.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.5.2...0.6.0
200
+ [0.5.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.5.1...0.5.2
201
+ [0.5.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.5.0...0.5.1
202
+ [0.5.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.4.1...0.5.0
203
+ [0.4.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.4.0...0.4.1
204
+ [0.4.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.3.0...0.4.0
205
+ [0.3.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.2.0...0.3.0
206
+ [0.2.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.1.0...0.2.0
207
+ [0.1.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.0.0...0.1.0
@@ -11,7 +11,8 @@ def verify_contents(subject, title, expected_lines)
11
11
  (content.split("\n") & expected_lines).should == expected_lines
12
12
  end
13
13
 
14
- fixture_path = File.expand_path(File.join(Dir.pwd, 'spec/fixtures'))
14
+ spec_path = File.expand_path(File.join(Dir.pwd, 'spec'))
15
+ fixture_path = File.join(spec_path, 'fixtures')
15
16
 
16
17
  env_module_path = ENV['MODULEPATH']
17
18
  module_path = File.join(fixture_path, 'modules')
@@ -19,6 +20,7 @@ module_path = File.join(fixture_path, 'modules')
19
20
  module_path = [module_path, env_module_path].join(File::PATH_SEPARATOR) if env_module_path
20
21
 
21
22
  RSpec.configure do |c|
23
+ c.environmentpath = spec_path if Puppet.version.to_f >= 4.0
22
24
  c.module_path = module_path
23
25
  c.manifest_dir = File.join(fixture_path, 'manifests')
24
26
  c.parser = 'future' if ENV['FUTURE_PARSER'] == 'yes'
@@ -47,7 +47,11 @@ module PuppetlabsSpec
47
47
  def node(parts = {})
48
48
  node_name = parts[:name] || 'testinghost'
49
49
  options = parts[:options] || {}
50
- node_environment = Puppet::Node::Environment.new(parts[:environment] || 'test')
50
+ if Puppet.version.to_f >= 4.0
51
+ node_environment = Puppet::Node::Environment.create(parts[:environment] || 'test', [])
52
+ else
53
+ node_environment = Puppet::Node::Environment.new(parts[:environment] || 'test')
54
+ end
51
55
  options.merge!({:environment => node_environment})
52
56
  Puppet::Node.new(node_name, options)
53
57
  end
@@ -1,5 +1,5 @@
1
1
  module PuppetlabsSpecHelper
2
2
  module Version
3
- STRING = '0.10.1'
3
+ STRING = '0.10.2'
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.1
4
+ version: 0.10.2
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-03-17 00:00:00.000000000 Z
11
+ date: 2015-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -90,7 +90,7 @@ extra_rdoc_files: []
90
90
  files:
91
91
  - .gitignore
92
92
  - .noexec.yaml
93
- - CHANGELOG
93
+ - CHANGELOG.md
94
94
  - Gemfile
95
95
  - LICENSE
96
96
  - README.markdown