puppetlabs_spec_helper 2.13.1 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +0 -1
- data/CHANGELOG.md +17 -0
- data/README.md +30 -10
- data/lib/puppetlabs_spec_helper/rake_tasks.rb +22 -2
- data/lib/puppetlabs_spec_helper/tasks/beaker.rb +1 -1
- data/lib/puppetlabs_spec_helper/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59b0ff166435a08f815102cf64ffcb10cb12b6b5
|
4
|
+
data.tar.gz: ba04fab64d289eeab37ed149350856b76c96b9c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c29a0df65465b365928261453e1fff1e7fa9ff4882905994ba24809ba254f0cbdc614d437787afea2b5cd08ae975fd131c558f6ca47910f7c487dec2e0610a2
|
7
|
+
data.tar.gz: 7a3704b6f0aeaa197c33d7d20928233317d5663c15d2b351cc55df6741d264eb37c26d4bf2f471b73d7cca4a338ed1f8f11cd3afe3fc51896d3de63b1bcb88fe
|
data/.rspec
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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
|
-
**
|
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
|
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 = [
|
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
|
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.
|
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-
|
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.
|