puppetlabs_spec_helper 4.0.1 → 5.0.1

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