puppetlabs_spec_helper 4.0.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +481 -116
  3. data/README.md +5 -19
  4. data/lib/puppetlabs_spec_helper/module_spec_helper.rb +9 -10
  5. data/lib/puppetlabs_spec_helper/puppet_spec_helper.rb +2 -86
  6. data/lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb +3 -1
  7. data/lib/puppetlabs_spec_helper/puppetlabs_spec/fixtures.rb +3 -3
  8. data/lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb +0 -17
  9. data/lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb +35 -68
  10. data/lib/puppetlabs_spec_helper/rake_tasks.rb +44 -63
  11. data/lib/puppetlabs_spec_helper/tasks/check_symlinks.rb +1 -3
  12. data/lib/puppetlabs_spec_helper/tasks/fixtures.rb +14 -12
  13. data/lib/puppetlabs_spec_helper/version.rb +1 -6
  14. data/spec/acceptance/fixtures/Rakefile +3 -0
  15. data/spec/acceptance/smoke_spec.rb +14 -0
  16. data/spec/spec_helper.rb +53 -0
  17. data/spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb +71 -0
  18. data/spec/unit/puppetlabs_spec_helper/tasks/check_symlinks_spec.rb +162 -0
  19. data/spec/unit/puppetlabs_spec_helper/tasks/check_test_file_spec.rb +45 -0
  20. data/spec/unit/puppetlabs_spec_helper/tasks/fixtures_spec.rb +262 -0
  21. data/spec/watchr.rb +81 -0
  22. metadata +33 -148
  23. data/.github/dependabot.yml +0 -15
  24. data/.gitignore +0 -9
  25. data/.noexec.yaml +0 -4
  26. data/.rspec +0 -2
  27. data/.rubocop_todo.yml +0 -119
  28. data/.travis.yml +0 -23
  29. data/CHANGELOG.md +0 -715
  30. data/CODEOWNERS +0 -2
  31. data/CONTRIBUTING.md +0 -14
  32. data/Gemfile +0 -42
  33. data/HISTORY.md +0 -498
  34. data/Rakefile +0 -45
  35. data/puppet_spec_helper.rb +0 -7
  36. data/puppetlabs_spec_helper.gemspec +0 -38
  37. data/puppetlabs_spec_helper.rb +0 -7
data/CHANGELOG.md DELETED
@@ -1,715 +0,0 @@
1
- # Changelog
2
-
3
- All significant changes to this repo will be summarized in this file.
4
-
5
-
6
- ## [v4.0.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v4.0.0) (2021-07-26)
7
-
8
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v3.0.0...v4.0.0)
9
-
10
- **Implemented enhancements:**
11
-
12
- - Use Rubocop's Github Actions formatter if possible [\#340](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/340) ([ekohl](https://github.com/ekohl))
13
- - Remove beaker integration [\#338](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/338) ([ekohl](https://github.com/ekohl))
14
-
15
- **Merged pull requests:**
16
-
17
- - Upgrade to GitHub-native Dependabot [\#336](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/336) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
18
- - \(IAC-1452\) - removal of Inappropriate Terminology [\#335](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/335) ([david22swan](https://github.com/david22swan))
19
- - Add gemspec required\_ruby\_version [\#334](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/334) ([alexjfisher](https://github.com/alexjfisher))
20
-
21
- ## [v3.0.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v3.0.0) (2021-02-10)
22
-
23
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.16.0...v3.0.0)
24
-
25
- **Implemented enhancements:**
26
-
27
- - dropping rubies before 2.4 [\#332](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/332) ([DavidS](https://github.com/DavidS))
28
- - Remove i18n/gettext task [\#331](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/331) ([DavidS](https://github.com/DavidS))
29
- - Restructure PuppetLint rake tasks so they can be configurable [\#330](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/330) ([nmaludy](https://github.com/nmaludy))
30
-
31
- **Merged pull requests:**
32
-
33
- - Release prep for v3.0.0 [\#333](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/333) ([DavidS](https://github.com/DavidS))
34
-
35
- ## [v2.16.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.16.0) (2021-01-18)
36
-
37
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.15.0...v2.16.0)
38
-
39
- **Implemented enhancements:**
40
-
41
- - Add a check task [\#327](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/327) ([ekohl](https://github.com/ekohl))
42
- - Update fixtures from forge when the module version doesn't match; fix git \< 2.7 compatibility [\#269](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/269) ([nabertrand](https://github.com/nabertrand))
43
- - Add all spec/lib directories from fixtures to LOAD\_PATH [\#233](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/233) ([nabertrand](https://github.com/nabertrand))
44
-
45
- **Merged pull requests:**
46
-
47
- - Release prep for v2.16.0 [\#329](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/329) ([DavidS](https://github.com/DavidS))
48
- - Update pathspec requirement from ~\> 0.2.1 to \>= 0.2.1, \< 1.1.0 [\#328](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/328) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
49
- - Update rubocop requirement from = 0.49 to 0.57.2; prepare for future move to 1.3.1 [\#322](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/322) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
50
-
51
- ## [v2.15.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.15.0) (2020-06-12)
52
-
53
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.14.1...v2.15.0)
54
-
55
- **Implemented enhancements:**
56
-
57
- - Add Ruby 2.6/Puppet6 to CI matrix [\#311](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/311) ([bastelfreak](https://github.com/bastelfreak))
58
- - \(GH-297\) Don't allow git refs with forward slashes [\#299](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/299) ([glennsarti](https://github.com/glennsarti))
59
- - Accept `:tag` for consistency with r10k [\#296](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/296) ([binford2k](https://github.com/binford2k))
60
- - \(maint\) migrate the changelog task from pdk-templates [\#278](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/278) ([DavidS](https://github.com/DavidS))
61
-
62
- **Fixed bugs:**
63
-
64
- - \(MAINT\) Fix initialize of Gettext call [\#292](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/292) ([ThoughtCrhyme](https://github.com/ThoughtCrhyme))
65
-
66
- **Merged pull requests:**
67
-
68
- - \(IAC-885\) - Release Prep 2.15.0 [\#318](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/318) ([pmcmaw](https://github.com/pmcmaw))
69
- - \(IAC-859\) Update all the gems and ruby to 2.7 [\#316](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/316) ([DavidS](https://github.com/DavidS))
70
- - Support git fixture branches containing slashes [\#297](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/297) ([trevor-vaughan](https://github.com/trevor-vaughan))
71
- - \(maint\) Require pdk/util in build:pdk rake task [\#295](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/295) ([rodjek](https://github.com/rodjek))
72
- - Ignore plans folder and any subfolder [\#294](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/294) ([cyberious](https://github.com/cyberious))
73
- - \(maint\) add codeowners file [\#293](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/293) ([tphoney](https://github.com/tphoney))
74
- - \(MAINT\) Removes old rubies and puppet versions [\#290](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/290) ([logicminds](https://github.com/logicminds))
75
- - Remove coveralls docs [\#289](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/289) ([DavidS](https://github.com/DavidS))
76
- - Download forge modules in parallel [\#284](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/284) ([logicminds](https://github.com/logicminds))
77
-
78
- ## [v2.14.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.14.1) (2019-03-26)
79
-
80
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.14.0...v2.14.1)
81
-
82
- **Fixed bugs:**
83
-
84
- - Revert "\(feat\) dont load the beaker if litmus is there" [\#286](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/286) ([pmcmaw](https://github.com/pmcmaw))
85
-
86
- **Merged pull requests:**
87
-
88
- - \(MODULES-8778\) - Release Prep 2.14.1 [\#287](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/287) ([pmcmaw](https://github.com/pmcmaw))
89
-
90
- ## [v2.14.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.14.0) (2019-03-25)
91
-
92
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.13.1...v2.14.0)
93
-
94
- **Implemented enhancements:**
95
-
96
- - \(feat\) dont load the beaker if litmus is there [\#281](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/281) ([tphoney](https://github.com/tphoney))
97
- - \(maint\) load rake tasks from optional libraries [\#279](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/279) ([DavidS](https://github.com/DavidS))
98
- - Document how to set default values for fixture loading [\#277](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/277) ([Felixoid](https://github.com/Felixoid))
99
-
100
- **Fixed bugs:**
101
-
102
- - Remove `--color` from everywhere, use RSpec default detection instead [\#280](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/280) ([DavidS](https://github.com/DavidS))
103
-
104
- **Merged pull requests:**
105
-
106
- - \(MODULES-8771\) - Release Prep 2.14.0 [\#282](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/282) ([pmcmaw](https://github.com/pmcmaw))
107
-
108
- ## [v2.13.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.13.1) (2019-01-15)
109
-
110
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.13.0...v2.13.1)
111
-
112
- **Fixed bugs:**
113
-
114
- - Revert "\(MODULES-8242\) - Fix CI\_SPEC\_OPTIONS failing" [\#275](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/275) ([rodjek](https://github.com/rodjek))
115
-
116
- **Merged pull requests:**
117
-
118
- - Release Prep 2.13.1 [\#276](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/276) ([bmjen](https://github.com/bmjen))
119
-
120
- ## [v2.13.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.13.0) (2019-01-11)
121
-
122
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.12.0...v2.13.0)
123
-
124
- **Implemented enhancements:**
125
-
126
- - \(PDK-1199\) Honour .{pdk,git}ignore in check:symlinks rake task [\#267](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/267) ([rodjek](https://github.com/rodjek))
127
- - \(PDK-1137\) Determine module name from metadata when possible [\#265](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/265) ([rodjek](https://github.com/rodjek))
128
-
129
- **Fixed bugs:**
130
-
131
- - \(MODULES-8242\) - Fix CI\_SPEC\_OPTIONS failing [\#268](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/268) ([stamm](https://github.com/stamm))
132
- - \(PDK-997\) Remove Dir.chdir call from check:test\_file task [\#266](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/266) ([rodjek](https://github.com/rodjek))
133
-
134
- **Merged pull requests:**
135
-
136
- - \(MODULES-8448\) - Release Prep 2.13.0 [\#273](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/273) ([pmcmaw](https://github.com/pmcmaw))
137
- - \(maint\) - Resolving bundler ruby version failure, updating tests to include puppet 6 [\#271](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/271) ([pmcmaw](https://github.com/pmcmaw))
138
- - \(MAINT\) Add Plans Path Exclusion [\#270](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/270) ([RandomNoun7](https://github.com/RandomNoun7))
139
-
140
- ## [v2.12.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.12.0) (2018-11-08)
141
-
142
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.11.0...v2.12.0)
143
-
144
- **Implemented enhancements:**
145
-
146
- - Added tasks to rspec pattern. [\#261](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/261) ([dylanratcliffe](https://github.com/dylanratcliffe))
147
- - \(PDK-1100\) Use PDK to build module packages [\#260](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/260) ([rodjek](https://github.com/rodjek))
148
-
149
- **Fixed bugs:**
150
-
151
- - \(bugfix\) ignore bundle directory, for symlinks [\#263](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/263) ([tphoney](https://github.com/tphoney))
152
- - \(MODULES-7273\) - Raise error when fixture ref invalid [\#262](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/262) ([eimlav](https://github.com/eimlav))
153
-
154
- **Merged pull requests:**
155
-
156
- - 2.12.0 Release Prep [\#264](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/264) ([tphoney](https://github.com/tphoney))
157
-
158
- ## [v2.11.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.11.0) (2018-09-26)
159
-
160
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.10.0...v2.11.0)
161
-
162
- **Implemented enhancements:**
163
-
164
- - \(MODULES-7856\) Allow optional repositories based on puppet version [\#258](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/258) ([joshcooper](https://github.com/joshcooper))
165
-
166
- **Fixed bugs:**
167
-
168
- - Fix example conversion from mocha to rspec mocks. [\#257](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/257) ([vStone](https://github.com/vStone))
169
-
170
- **Merged pull requests:**
171
-
172
- - \(MODULES-7858\) - 2.11.0 Release Prep [\#259](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/259) ([pmcmaw](https://github.com/pmcmaw))
173
-
174
- ## [v2.10.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.10.0) (2018-08-30)
175
-
176
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.9.1...v2.10.0)
177
-
178
- **Implemented enhancements:**
179
-
180
- - \(feat\) add puppet lint fix task [\#255](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/255) ([tphoney](https://github.com/tphoney))
181
- - add support to override the allowed test tiers [\#253](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/253) ([b4ldr](https://github.com/b4ldr))
182
-
183
- **Merged pull requests:**
184
-
185
- - \(maint\) - Release prep for 2.10.0 [\#256](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/256) ([tphoney](https://github.com/tphoney))
186
- - Update documentation for older Puppet versions [\#254](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/254) ([op-ct](https://github.com/op-ct))
187
- - update README [\#252](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/252) ([b4ldr](https://github.com/b4ldr))
188
-
189
- ## [v2.9.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.9.1) (2018-06-20)
190
-
191
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.9.0...v2.9.1)
192
-
193
- **Fixed bugs:**
194
-
195
- - \(PDK-1031\) Remove thread-unsafe Dir.chdir usage [\#249](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/249) ([rodjek](https://github.com/rodjek))
196
- - \(PDK-1033\) Use `--unshallow` when fetching a ref [\#247](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/247) ([DavidS](https://github.com/DavidS))
197
-
198
- **Merged pull requests:**
199
-
200
- - \(maint\) - Release prep for 2.9.1 [\#251](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/251) ([pmcmaw](https://github.com/pmcmaw))
201
-
202
- ## [v2.9.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.9.0) (2018-06-18)
203
-
204
- [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.8.0...v2.9.0)
205
-
206
- **Implemented enhancements:**
207
-
208
- - \(maint\) adding ruby code coverage setup and rake task [\#245](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/245) ([tphoney](https://github.com/tphoney))
209
-
210
- **Merged pull requests:**
211
-
212
- - Release prep 2.9.0 [\#248](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/248) ([DavidS](https://github.com/DavidS))
213
- - Stable development structure for this gem [\#246](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/246) ([cardil](https://github.com/cardil))
214
-
215
- # Previous Changes
216
-
217
- ## [2.8.0]
218
- ### Summary
219
- This feature release adds a new rake task `parallel_spec_standalone` which is a parallel version of `spec_standalone`
220
-
221
- ### Added
222
- - `parallel_spec_standalone` rake task
223
- - `spec_clean_symlinks` rake task to just clean symlink fixtures, not all fixtures
224
- - Leave downloaded fixtures on test failure to speed up test runs.
225
- - Update already-existing fixtures instead of doing nothing to them.
226
-
227
- ## [2.7.0]
228
- ### Summary
229
- Feature release to begin moving away from mocha as a testing (specifically, mocking) framework for modules.
230
-
231
- ### Added
232
- - spec/plans/**/*_spec.rb to spec discovery pattern
233
- - [mocha as default](README.md#mock_with) test framework unless explicitly set by a module
234
-
235
- ### Fixed
236
- - parsing for test tiers in beaker rake task
237
- - module_spec_helper compatibility with mocha 1.5.0
238
-
239
- ## [2.6.2]
240
- ### Summary
241
- A bugfix release to remove dependency on GettextSetup.initialize() in the Rake tasks.
242
-
243
- ## [2.6.1]
244
- ### Summary
245
- Includes changes for 2.6.0 plus tests and bugfix of said feature.
246
-
247
- ## 2.6.0 - Yanked
248
- ### Summary
249
- Adds a `defaults` section to `.fixtures.yml` to specify properties such as `flags` that apply to all fixtures in a category. One example use case is to specify an alternate forge URI for the `forge_modules` fixtures.
250
-
251
- ### Added
252
- - Add `defaults` section to fixtures.
253
-
254
- ## [2.5.1]
255
- ### Summary
256
- Adds a fix to the parallel_spec rake task.
257
-
258
- ### Fixed
259
- - In parallel_spec, warn when there are no files to test against rather than fail.
260
-
261
- ## [2.5.0]
262
- ### Summary
263
- Adds a feature to pass test file targets from 'rake spec' to 'rspec', also fixes a parsing issue with test\_tiers.
264
-
265
- ### Added
266
- - Allows passing test file targets through to 'rspec' from 'rake spec'.
267
-
268
- ### Fixed
269
- - Trim whitespace from test\_tiers before parsing.
270
-
271
- ## [2.4.0]
272
- ### Summary
273
- Fix mercurial stuff, allow fixtures other than spec/fixtures/modules/, and allow running specific tags for beaker tests.
274
-
275
- ### Added
276
- - Ability to check out branches in mercurial
277
- - Ability to target alternative locations to clone fixtures
278
- - `TEST_TIERS` environment variable for beaker rake task
279
-
280
- ### Fixed
281
- - mercurial cleanup command
282
- - handle parallel spec load failure better
283
-
284
- ## [2.3.2]
285
- ### Summary
286
- Cleanups and fixes around fixture handling.
287
-
288
- ### Fixed
289
- - Do not error when no fixtures file is found or specified.
290
- - Clean up fixtures, even if tests fail. Especially on Windows this is important to not keep lingering symlinks around.
291
- - Fix creating of directory junctions (symlinks) on Windows for fixtures.
292
-
293
-
294
- ## [2.3.1]
295
- ### Summary
296
- Adds a `spec_list_json` rake task
297
-
298
- ### Added
299
- - `spec_list_json` rake task to output a module's spec tests as a JSON document
300
-
301
- ## [2.3.0]
302
- ### Added
303
- - `CI_SPEC_OPTIONS` environment variable for `parallel_spec` rake task
304
-
305
- ### Fixed
306
- - Remove puppet ~> 3.0 pin from gemspec
307
-
308
- ## [2.2.0]
309
- ### Summary
310
- i18n rake task, and unbreak windows again.
311
-
312
- ### Added
313
- - New rake task for i18n stuff.
314
-
315
- ### Fixed
316
- - Fixture path calculation for windows
317
- - Log to stderr instead of stdout as per rspec's spec
318
-
319
- ## [2.1.5]
320
- ### Summary:
321
- Fix symlinks fixtures code.
322
-
323
- ## [2.1.4]
324
- ### Summary:
325
- Better Windows support.
326
-
327
- ### Fixed:
328
- - Create directory junctions instead of symlinks on windows (#192)
329
- - Replace check:symlinks with platform independent alternative (#193)
330
-
331
- ## [2.1.3]
332
- ### Summary:
333
- This release fixes puppet module install into paths with spaces, and fix conflicting build names for CI jobs.
334
-
335
- ### Fixed:
336
- - Properly exscape paths for puppet module install
337
- - Add "r" to the beginning of `rake compute_dev_version`
338
-
339
- ## [2.1.2]
340
- ### Summary:
341
- The `release_tasks` now falls back to `spec` if the `parallel_spec` test fails due to the `parallel_tests` gem being absent.
342
-
343
- ### Fixed:
344
- - Make `release_tasks` fall back to `spec` when missing the `parallel_tests` gem
345
-
346
- ## [2.1.1]
347
- ### Summary:
348
- Bugfix for an unstated dependency on parallel\_spec that was added in 2.0.0
349
-
350
- ### Fixed:
351
- - Add dependency for parallel\_spec, since psh requires it anyway.
352
-
353
- ## [2.1.0]
354
- ### Summary:
355
- Minor version bump for new CI_SPEC_OPTIONS variable and bug fix.
356
-
357
- ### Added:
358
- - use CI_SPEC_OPTIONS to pass options to rspec
359
-
360
- ### Fixed:
361
- - an issue where gettext:setup tasks were being loaded in the wrong order within a module and causing the POT file to be created in the Puppet gem, not the module.
362
-
363
- ## [2.0.2]
364
- ### Summary:
365
- Fixes an issue where the gettext rake tasks look in the spec\_helper and not the current module for the `locales/` directory.
366
-
367
- ## [2.0.1]
368
- ### Summary:
369
- Fixes an issue where older puppets don't bring in the gettext gem requirement causing the psh rake tasks to fail.
370
-
371
- ### Fixed:
372
- - Don't define gettext rake tasks if gettext library is not present
373
-
374
- ## [2.0.0]
375
- ### Summary:
376
- This release makes the module working dir configurable, adds features for future puppet features, and updates the spec rake task for TravisCI
377
-
378
- ### Changed:
379
- - The `release_tasks` rake task now calls `parallel_spec` instead of `spec`
380
-
381
- ### Added:
382
- - Make `module_working_dir` configurable
383
- - Check `type_aliases` directory for spec tests
384
- - Locales support for i18n
385
-
386
- ### Fixed:
387
- - Ensure /-only used on windows
388
-
389
- ## [1.2.2]
390
- ### Summary:
391
-
392
- Dominic Cleal reported and fixed an issue with the STRICT_VARIABLES setting on puppet versions before 3.5.
393
-
394
- ## [1.2.1]
395
- ### Summary:
396
-
397
- The previous release was taken down, as some optional gem dependencies slipped through into the gemspec, breaking builds using ruby 2.2 and earlier. This release updates the gem build process, so this should not happen again.
398
-
399
- ## [1.2.0] - 2016-08-23
400
- ### Summary:
401
-
402
- Add a bunch of new features, and fix a bunch of annoying bugs: parallel test execution, default to strict variable checking on Puppet 4, code coverage, and rubocop tasks.
403
-
404
- Thanks to all community contributors: Alexander Fisher, Alex Harvey, Chris Tessmer, David Moreno García, Dmitry Ilyin, Dominic Cleal, Federico Voges, Garrett Honeycutt, Leo Arnold, Matthew Haughton, Mickaël Canévet, and Rob Nelson.
405
-
406
- ### Added:
407
-
408
- New tasks:
409
- * Add code coverage for Ruby >= 1.9 using SimpleCov.
410
- * Add a rubocop rake task.
411
- * Use beaker:ssh to log into your running beaker machines.
412
-
413
- Spec parallelization
414
- * Add `parallel_spec` task to run specs in parallel.
415
- * Use CI_NODE_TOTAL and CI_NODE_INDEX to split tests across nodes.
416
-
417
- Fixtures improvements:
418
- * Automatically symlink the module directory, if no symlink fixtures are specified.
419
- * Add the `subdir` key to repository fixtures to only use a part of that repository.
420
- * Set `FIXTURES_YML` environment variable to load fixtures from somewhere else than `.fixtures.yml`.
421
-
422
- ## Changed:
423
- * Updated default excludes and rspec patterns.
424
- * Updated default disabled lint checks to work with puppet-lint 2.0.0.
425
- * Testing on Puppet 4 will now default to strict variable checking. Set STRICT_VARIABLES=no to disable.
426
- * `PuppetInternals.scope` is now deprecated. Use the new `scope` property from rspec-puppet.
427
- * beaker_nodes is now called beaker:sets.
428
-
429
- ### Fixed:
430
- * Ignore symlinks inside .git when running check:symlinks rake task.
431
- * Allow multiple invocations of spec_prep to run in parallel.
432
- * Address a race condition when cloning multiple git fixtures.
433
- * Restrict gem dependencies to work with ruby 1.9.
434
- * Update verify_contents() to work with duplicates in the arguments.
435
-
436
- ## [1.1.1] - 2016-03-02
437
- ### Fixed:
438
- Readded and properly deprecated the `metadata` rake task. Use the `metadata_lint` task from metadata-json-lint directly instead.
439
-
440
- ## [1.1.0] - 2016-02-25
441
- ### Summary:
442
- This release adds the ability to clone fixtures from git in parallel, speeding
443
- up the spec\_prep rake task.
444
-
445
- ### Added:
446
- - Parallel fixtures cloning
447
- - Various rake check tasks for module release preparation
448
-
449
- ### Fixed:
450
- - Added travis ci
451
- - Added contributing doc
452
- - Don't validate metadata if metadata-json-lint gem is not present
453
-
454
- ## [1.0.1] - 2015-11-06
455
- ### Summary:
456
- This bugfix release fixes the Error vs. Errno bug in 1.0.0
457
-
458
- ### Fixed:
459
- - Raise `Errno::ENOENT` instead of `Error::ENOENT`
460
-
461
- ## [1.0.0] - 2015-11-04
462
- ### Summary:
463
- The first 1.0 release, though the gem has been considered stable for a while.
464
-
465
- ### Added:
466
- - `flags` value for fixtures to allow passing CLI flags when installing modules
467
- - `spec_standalone` rake task also runs `spec/types` specs
468
- - Can now use `.fixtures.yaml` instead of `.fixtures.yml`
469
-
470
- ### Fixed:
471
- - Remove double-initialization that was conflicting with rspec-puppet
472
- - Better error handling on malformed fixtures yaml
473
- - Bug in rake task's ignore\_paths
474
-
475
- ## [0.10.3] - 2015-05-11
476
- ### Summary:
477
- A bugfix for puppet 3 and puppet 4 tests being able to run with the same environment variables.
478
-
479
- ### Fixed:
480
- - Allow `STRINGIFY_FACTS` and `TRUSTED_NODE_DATA` to be set on Puppet 4 as noop instead of fail
481
- - Fix linting to be more like approved module criteria
482
-
483
- ## [0.10.2] - 2015-04-14
484
- ### Summary:
485
- A bugfix for puppet 4 coming out, which manages modulepath and environments differently.
486
-
487
- ### Fixed:
488
- - Use puppet 4 environmentpath and environment creation on puppet 4
489
-
490
- ## [0.10.1] - 2015-03-17
491
- ### Summary:
492
- A bugfix for the previous release when using references.
493
-
494
- ### Fixed:
495
- - Only shallow clone if not using a reference
496
-
497
- ## [0.10.0] - 2015-03-16
498
- ### Summary:
499
- This release adds shallow fixtures clones to speed up the spec_prep step for
500
- rspec-puppet
501
-
502
- ### Added:
503
- - Shallow clone fixtures
504
-
505
- ### Fixed:
506
- - Don't lint in vendor/ (spec/fixtures/ and pkg/ are alread ignored)
507
- - Don't syntax check in spec/fixtures/, pkg/, or vendor/
508
-
509
- ## [0.9.1] - 2015-02-24
510
- ### Summary:
511
- This release removes the hard dependency on metadata-json-lint, as it requires
512
- a dev toolchain to install the 'json' gem.
513
-
514
- ### Fixed:
515
- - Only warn when metadata-json-lint isn't installed instead of requiring it
516
-
517
- ## [0.9.0] - 2015-02-24
518
- ### Summary:
519
- This release adds fixes for rspec-puppet 2.0 and json linting for metadata.json
520
-
521
- ### Added:
522
- - Add json linting for metadata.json (adds dep on metadata-json-lint gem)
523
- - Document using references in fixtures
524
-
525
- ### Fixed:
526
- - `FUTURE_PARSER=yes` working with rspec-puppet 2.0
527
- - Symlinks breaking on windows
528
- - rspec as a runtime dependency conflicting with rspec-puppet
529
- - root stub for testing execs
530
-
531
- ## [0.8.2] - 2014-10-01
532
- ### Summary:
533
- This release fixes the lint task on the latest puppet-lint
534
-
535
- ### Fixed:
536
- - Fix the lint task require code
537
-
538
- ## [0.8.1] - 2014-08-25
539
- ### Summary:
540
- This release corrects compatibility with the recently-released puppet-lint
541
- 1.0.0
542
-
543
- ### Fixed:
544
- - Turn on relative autoloader lint checking for backwards-compatibility
545
- - Turn off param class inheritance check (deprecated style)
546
- - Fix ignore paths to ignore `pkg/*`
547
-
548
- ## [0.8.0] - 2014-07-29
549
- ### Summary:
550
- This release uses the new puppet-syntax gem to perform manifest validation
551
- better than before! Shiny.
552
-
553
- ### Added:
554
- - Use puppet-syntax gem for manifest validation rake task
555
-
556
- ### Fixed:
557
- - Fix compatibility with rspec 3
558
-
559
- ## [0.7.0] - 2014-07-17
560
- ### Summary:
561
- This feature release adds the ability to test structured facts, manifest
562
- ordering, and trusted node facts, and check out branches with fixtures.
563
-
564
- ### Added:
565
- - Add `STRINGIFY_FACTS=no` for structured facts
566
- - Add `TRUSTED_NODE_DATA=yes` for trusted node data
567
- - Add `ORDERING=<order>` for manifest ordering
568
- - Add `:branch` support for fixtures on a branch.
569
-
570
- ### Fixed:
571
- - Fix puppet-lint to ignore spec/fixtures/
572
-
573
- ## [0.6.0] - 2014-07-02
574
- ### Summary:
575
- This feature release adds the `validate` rake task and the ability to test
576
- strict variables and the future parser with rspec-puppet.
577
-
578
- ### Added:
579
- - Add `validate` rake task.
580
- - Add `STRICT_VARIABLES=yes` to module_spec_helper
581
- - Add `FUTURE_PARSER=yes` to module_spec_helper
582
-
583
- ### Fixed:
584
- - Avoid conflict with Object.clone
585
- - Install forge fixtures without conflicting with already-installed modules
586
-
587
- ## [0.5.2] - 2014-06-19
588
- ### Summary:
589
- This release removes the previously non-existant puppet runtime dependency to
590
- better match rspec-puppet and puppet-lint and allow system puppet packages to
591
- be used instead of gems.
592
-
593
- ### Fixed:
594
- - Remove puppet dependency from gemspec
595
-
596
- ## [0.5.1] - 2014-06-09
597
- ### Summary:
598
- This release re-adds mocha mocking, which was mistakenly removed in 0.5.0
599
-
600
- ### Fixed:
601
- - Re-enable mocha mocking as default.
602
-
603
- ## [0.5.0] - 2014-06-06
604
- ### Summary:
605
- 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.
606
-
607
- ### Added:
608
- - Install modules from the forge, not just git
609
- - Beaker rake tasks added
610
- - Syntax task added
611
- - Rake spec runs tests in `integration/` directory
612
-
613
- ### Fixed:
614
- - Fix the gemspec so that this may be used with bundler
615
- - Fix removal of symlinks
616
- - Fix removal of site.pp only when empty
617
- - Ignore fixtures for linting
618
- - Remove extra mocha dependency
619
- - Remove rspec pinning (oops)
620
-
621
- ## 0.4.2 - 2014-06-06 [YANKED]
622
- ### Summary:
623
- This release corrects the pinning of rspec for modules which are not rspec 3
624
- compatible yet.
625
-
626
- ### Fixed:
627
- * Pin to 2.x range for rspec 2
628
- * Fix aborting rake task when packaging gem
629
- * Fix puppet issue tracker url
630
- * Fix issue with running `git reset` in the incorrect dir
631
-
632
- ## [0.4.1] - 2013-02-08
633
- ### Fixed
634
- * (#18165) Mark tests pending on broken puppet versions
635
- * (#18165) Initialize TestHelper as soon as possible
636
- * Maint: Change formatting and handle windows path separator
637
-
638
- ## [0.4.0] - 2012-12-14
639
- ### Added
640
- * Add readme for fixtures
641
- * add opts logic to rake spec_clean
642
- * add backwards-compatible support for arbitrary git refs in .fixtures.yml
643
-
644
- ### Fixed
645
- * Rake should fail if git can't clone repository
646
- * Fix Mocha deprecations
647
- * Only remove the site.pp if it is empty
648
- * (#15464) Make contributing easy via bundle Gemfile
649
- * (#15464) Add gemspec from 0.3.0 published gem
650
-
651
- ## [0.3.0] - 2012-08-14
652
- ### Added
653
- * Add PuppetInternals compatibility module for
654
- scope, node, compiler, and functions
655
- * Add rspec-puppet convention directories to rake tasks
656
-
657
- ## [0.2.0] - 2012-07-05
658
- ### Fixed
659
- * Fix integration with mocha-0.12.0
660
- * Fix coverage rake task
661
- * Fix an issue creating the fixtures directory
662
-
663
- ## 0.1.0 - 2012-06-08
664
- ### Added
665
- * Initial release
666
-
667
- [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.8.0...main
668
- [2.8.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.7.0...v2.8.0
669
- [2.7.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.6.2...v2.7.0
670
- [2.6.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.6.1...v2.6.2
671
- [2.6.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.5.1...v2.6.1
672
- [2.5.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.5.0...v2.5.1
673
- [2.5.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.4.0...v2.5.0
674
- [2.4.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.3.2...v2.4.0
675
- [2.3.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.3.1...v2.3.2
676
- [2.3.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.3.0...v2.3.1
677
- [2.3.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.2.0...v2.3.0
678
- [2.2.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.5...v2.2.0
679
- [2.1.5]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.4...v2.1.5
680
- [2.1.4]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.3...v2.1.4
681
- [2.1.3]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.2...v2.1.3
682
- [2.1.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.1...v2.1.2
683
- [2.1.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.0...v2.1.1
684
- [2.1.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.0.1...v2.1.0
685
- [2.0.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.0.0...v2.0.1
686
- [2.0.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v1.2.2...v2.0.0
687
- [1.2.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v1.2.1...v1.2.2
688
- [1.2.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/1.2.0...v1.2.1
689
- [1.2.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/1.1.1...1.2.0
690
- [1.1.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/1.1.0...1.1.1
691
- [1.1.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/1.0.1...1.1.0
692
- [1.0.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/1.0.0...1.0.1
693
- [1.0.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.10.3...1.0.0
694
- [0.10.3]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.10.2...0.10.3
695
- [0.10.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.10.1...0.10.2
696
- [0.10.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.10.0...0.10.1
697
- [0.10.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.9.1...0.10.0
698
- [0.9.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.9.0...0.9.1
699
- [0.9.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.8.2...0.9.0
700
- [0.8.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.8.1...0.8.2
701
- [0.8.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.8.0...0.8.1
702
- [0.8.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.7.0...0.8.0
703
- [0.7.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.6.0...0.7.0
704
- [0.6.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.5.2...0.6.0
705
- [0.5.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.5.1...0.5.2
706
- [0.5.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.5.0...0.5.1
707
- [0.5.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.4.1...0.5.0
708
- [0.4.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.4.0...0.4.1
709
- [0.4.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.3.0...0.4.0
710
- [0.3.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.2.0...0.3.0
711
- [0.2.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.1.0...0.2.0
712
- [0.1.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/0.0.0...0.1.0
713
-
714
-
715
- \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*