puppetlabs_spec_helper 2.13.1 → 2.14.0

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67e8e6e26b94e0e75ff8666f4717b44b5fc86a3b
4
- data.tar.gz: 746dbb92c29158633c4de0f425670560d8f1f2e7
3
+ metadata.gz: 59b0ff166435a08f815102cf64ffcb10cb12b6b5
4
+ data.tar.gz: ba04fab64d289eeab37ed149350856b76c96b9c0
5
5
  SHA512:
6
- metadata.gz: b9aa9308506dede8697180e61dd7e00d240247a9ff3b6a6345a9033cac781ea994f13a72453a54911091bfc4955158ce65949840bfcd71836be3422aba2cde1e
7
- data.tar.gz: 51e2a367e8ccf3658eb72866b4377892ab58a5b342fbd6dba266692b59e4295db7f51821a555e61207d1eb04a272a333cbe8b6cc75caf7139f485437208451a0
6
+ metadata.gz: 9c29a0df65465b365928261453e1fff1e7fa9ff4882905994ba24809ba254f0cbdc614d437787afea2b5cd08ae975fd131c558f6ca47910f7c487dec2e0610a2
7
+ data.tar.gz: 7a3704b6f0aeaa197c33d7d20928233317d5663c15d2b351cc55df6741d264eb37c26d4bf2f471b73d7cca4a338ed1f8f11cd3afe3fc51896d3de63b1bcb88fe
data/.rspec CHANGED
@@ -1,3 +1,2 @@
1
1
  --format documentation
2
- --color
3
2
  --order rand
@@ -3,6 +3,19 @@
3
3
  All significant changes to this repo will be summarized in this file.
4
4
 
5
5
 
6
+ ## [v2.14.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.14.0) (2019-03-22)
7
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.13.1...v2.14.0)
8
+
9
+ **Implemented enhancements:**
10
+
11
+ - \(feat\) dont load the beaker if litmus is there [\#281](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/281) ([tphoney](https://github.com/tphoney))
12
+ - \(maint\) load rake tasks from optional libraries [\#279](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/279) ([DavidS](https://github.com/DavidS))
13
+ - Document how to set default values for fixture loading [\#277](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/277) ([Felixoid](https://github.com/Felixoid))
14
+
15
+ **Merged pull requests:**
16
+
17
+ - Remove `--color` from everywhere, use RSpec default detection instead [\#280](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/280) ([DavidS](https://github.com/DavidS))
18
+
6
19
  ## [v2.13.1](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.13.1) (2019-01-15)
7
20
  [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.13.0...v2.13.1)
8
21
 
@@ -10,6 +23,10 @@ All significant changes to this repo will be summarized in this file.
10
23
 
11
24
  - Revert "\(MODULES-8242\) - Fix CI\_SPEC\_OPTIONS failing" [\#275](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/275) ([rodjek](https://github.com/rodjek))
12
25
 
26
+ **Merged pull requests:**
27
+
28
+ - Release Prep 2.13.1 [\#276](https://github.com/puppetlabs/puppetlabs_spec_helper/pull/276) ([bmjen](https://github.com/bmjen))
29
+
13
30
  ## [v2.13.0](https://github.com/puppetlabs/puppetlabs_spec_helper/tree/v2.13.0) (2019-01-11)
14
31
  [Full Changelog](https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.12.0...v2.13.0)
15
32
 
data/README.md CHANGED
@@ -193,35 +193,38 @@ working directory is `<module directory>/spec/fixtures/work-dir`.
193
193
 
194
194
  When specifying the repo source of the fixture you have a few options as to which revision of the codebase you wish to use, and optionally, the puppet versions where the fixture is needed.
195
195
 
196
- * repo - the url to the repo
197
- * scm - options include git or hg. This is an optional step as the helper code will figure out which scm is used.
196
+ * `repo` - the url to the repo
197
+ * `scm` - options include git or hg. This is an optional step as the helper code will figure out which scm is used.
198
198
 
199
199
  ```yaml
200
200
  scm: git
201
201
  scm: hg
202
202
  ```
203
203
 
204
- * target - the directory name to clone the repo into ie. `target: mymodule` defaults to the repo name (Optional)
205
- * subdir - directory to be removed from the cloned repo. Its contents will be moved to the root directory (Optional)
206
- * ref - used to specify the tag name like version hash of commit (Optional)
204
+ * `target` - the directory name to clone the repo into ie. `target: mymodule` defaults to the repo name (Optional)
205
+ * `subdir` - directory to be removed from the cloned repo. Its contents will be moved to the root directory (Optional)
206
+ * `ref` - used to specify the tag name like version hash of commit (Optional)
207
207
 
208
208
  ```yaml
209
209
  ref: 1.0.0
210
210
  ref: 880fca52c
211
211
  ```
212
- * branch - used to specify the branch name you want to use ie. `branch: development`
213
- * flags - additional flags passed to the module installer (both puppet and scm)
212
+ * `branch` - used to specify the branch name you want to use ie. `branch: development`
213
+ * `flags` - additional flags passed to the module installer (both puppet and scm)
214
214
 
215
215
  ```yaml
216
216
  flags: --verbose
217
217
  ```
218
- * puppet_version - versions of puppet for which the fixture should be installed. Ruby version constraints are supported. Only works when the `semantic_puppet` gem is available (shipped with puppet 4.0 and up, by default).
218
+ * `puppet_version` - versions of puppet for which the fixture should be installed. Ruby version constraints are supported. Only works when the `semantic_puppet` gem is available (shipped with puppet 4.0 and up, by default).
219
219
 
220
220
  ```yaml
221
221
  puppet_version: '>= 6.0.0'
222
222
  ```
223
223
 
224
- **Note:** ref and branch can be used together to get a specific revision on a specific branch
224
+ **Notes:**
225
+
226
+ * `ref` and `branch` can be used together to get a specific revision on a specific branch
227
+ * Top level `defaults` option could be used to set global options
225
228
 
226
229
  Fixtures Examples
227
230
  -----------------
@@ -257,7 +260,7 @@ fixtures:
257
260
  target: "spec/fixtures/control_repos"
258
261
  ```
259
262
 
260
- Specify that the git tag `2.4.2` of `stdlib' should be checked out:
263
+ Specify that the git tag `2.4.2` of `stdlib` should be checked out:
261
264
 
262
265
  ```yaml
263
266
  fixtures:
@@ -315,6 +318,23 @@ fixtures:
315
318
  flags: "--verbose"
316
319
  ```
317
320
 
321
+ Use `defaults` to define global parameters:
322
+
323
+ ```yaml
324
+ defaults:
325
+ forge_modules:
326
+ flags: "--module_repository https://my_repo.com"
327
+ fixtures:
328
+ forge_modules:
329
+ stdlib:
330
+ repo: "puppetlabs/stdlib"
331
+ ref: "2.6.0"
332
+ repositories:
333
+ firewall:
334
+ repo: "git://github.com/puppetlabs/puppetlabs-firewall"
335
+ ref: "2.6.0"
336
+ ```
337
+
318
338
  Testing Parser Functions
319
339
  ========================
320
340
 
@@ -4,11 +4,13 @@ require 'rspec/core/rake_task'
4
4
  require 'tmpdir'
5
5
  require 'pathname'
6
6
  require 'puppetlabs_spec_helper/version'
7
- require 'puppetlabs_spec_helper/tasks/beaker'
8
7
  require 'puppetlabs_spec_helper/tasks/fixtures'
9
8
  require 'puppetlabs_spec_helper/tasks/check_symlinks'
10
9
  require 'English'
11
10
 
11
+ # dont load beaker if litmus is present
12
+ require 'puppetlabs_spec_helper/tasks/beaker' unless Bundler.rubygems.find_name('puppet_litmus').any?
13
+
12
14
  # optional gems
13
15
  begin
14
16
  require 'metadata-json-lint/rake_task'
@@ -16,6 +18,24 @@ rescue LoadError
16
18
  # ignore
17
19
  end
18
20
 
21
+ begin
22
+ require 'puppet_blacksmith/rake_tasks'
23
+ rescue LoadError
24
+ # ignore
25
+ end
26
+
27
+ begin
28
+ require 'github_changelog_generator/task'
29
+ rescue LoadError
30
+ # ignore
31
+ end
32
+
33
+ begin
34
+ require 'puppet-strings/tasks'
35
+ rescue LoadError
36
+ # ignore
37
+ end
38
+
19
39
  parallel_tests_loaded = false
20
40
  begin
21
41
  require 'parallel_tests'
@@ -29,7 +49,7 @@ task default: [:help]
29
49
  pattern = 'spec/{aliases,classes,defines,functions,hosts,integration,plans,tasks,type_aliases,types,unit}/**/*_spec.rb'
30
50
 
31
51
  RSpec::Core::RakeTask.new(:spec_standalone) do |t, args|
32
- t.rspec_opts = ['--color']
52
+ t.rspec_opts = []
33
53
  t.rspec_opts << ENV['CI_SPEC_OPTIONS'] unless ENV['CI_SPEC_OPTIONS'].nil?
34
54
  if ENV['CI_NODE_TOTAL'] && ENV['CI_NODE_INDEX']
35
55
  ci_total = ENV['CI_NODE_TOTAL'].to_i
@@ -59,7 +59,7 @@ end
59
59
 
60
60
  class SetupBeaker
61
61
  def self.setup_beaker(t)
62
- t.rspec_opts = ['--color']
62
+ t.rspec_opts = []
63
63
  t.pattern = 'spec/acceptance'
64
64
  # TEST_TIERS env variable is a comma separated list of tiers to run. e.g. low, medium, high
65
65
  if ENV['TEST_TIERS']
@@ -1,5 +1,5 @@
1
1
  module PuppetlabsSpecHelper
2
- VERSION = '2.13.1'.freeze
2
+ VERSION = '2.14.0'.freeze
3
3
 
4
4
  # compat for pre-1.2.0 users; deprecated
5
5
  module Version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetlabs_spec_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.1
4
+ version: 2.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-01-15 00:00:00.000000000 Z
12
+ date: 2019-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mocha
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  version: '0'
250
250
  requirements: []
251
251
  rubyforge_project:
252
- rubygems_version: 2.6.14
252
+ rubygems_version: 2.6.14.1
253
253
  signing_key:
254
254
  specification_version: 4
255
255
  summary: Standard tasks and configuration for module spec tests.