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
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetlabs_spec_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  - Community Contributors
9
- autorequire:
10
- bindir: exe
9
+ autorequire:
10
+ bindir: bin
11
11
  cert_chain: []
12
- date: 2021-07-26 00:00:00.000000000 Z
12
+ date: 2023-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mocha
@@ -29,58 +29,46 @@ dependencies:
29
29
  name: pathspec
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: 0.2.1
35
- - - "<"
32
+ - - "~>"
36
33
  - !ruby/object:Gem::Version
37
- version: 1.1.0
34
+ version: '1.0'
38
35
  type: :runtime
39
36
  prerelease: false
40
37
  version_requirements: !ruby/object:Gem::Requirement
41
38
  requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- version: 0.2.1
45
- - - "<"
39
+ - - "~>"
46
40
  - !ruby/object:Gem::Version
47
- version: 1.1.0
41
+ version: '1.0'
48
42
  - !ruby/object:Gem::Dependency
49
43
  name: puppet-lint
50
44
  requirement: !ruby/object:Gem::Requirement
51
45
  requirements:
52
46
  - - "~>"
53
47
  - !ruby/object:Gem::Version
54
- version: '2.0'
48
+ version: '3.0'
55
49
  type: :runtime
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
52
  requirements:
59
53
  - - "~>"
60
54
  - !ruby/object:Gem::Version
61
- version: '2.0'
55
+ version: '3.0'
62
56
  - !ruby/object:Gem::Dependency
63
57
  name: puppet-syntax
64
58
  requirement: !ruby/object:Gem::Requirement
65
59
  requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '2.0'
69
- - - "<"
60
+ - - "~>"
70
61
  - !ruby/object:Gem::Version
71
- version: '4'
62
+ version: '3.0'
72
63
  type: :runtime
73
64
  prerelease: false
74
65
  version_requirements: !ruby/object:Gem::Requirement
75
66
  requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: '2.0'
79
- - - "<"
67
+ - - "~>"
80
68
  - !ruby/object:Gem::Version
81
- version: '4'
69
+ version: '3.0'
82
70
  - !ruby/object:Gem::Dependency
83
- name: rspec-puppet
71
+ name: rspec-github
84
72
  requirement: !ruby/object:Gem::Requirement
85
73
  requirements:
86
74
  - - "~>"
@@ -94,115 +82,19 @@ dependencies:
94
82
  - !ruby/object:Gem::Version
95
83
  version: '2.0'
96
84
  - !ruby/object:Gem::Dependency
97
- name: bundler
98
- requirement: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: '0'
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
111
- name: fakefs
112
- requirement: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: 0.13.3
117
- - - "<"
118
- - !ruby/object:Gem::Version
119
- version: '2'
120
- type: :development
121
- prerelease: false
122
- version_requirements: !ruby/object:Gem::Requirement
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- version: 0.13.3
127
- - - "<"
128
- - !ruby/object:Gem::Version
129
- version: '2'
130
- - !ruby/object:Gem::Dependency
131
- name: pry
132
- requirement: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- version: '0'
137
- type: :development
138
- prerelease: false
139
- version_requirements: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - ">="
142
- - !ruby/object:Gem::Version
143
- version: '0'
144
- - !ruby/object:Gem::Dependency
145
- name: puppet
146
- requirement: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- version: '0'
151
- type: :development
152
- prerelease: false
153
- version_requirements: !ruby/object:Gem::Requirement
154
- requirements:
155
- - - ">="
156
- - !ruby/object:Gem::Version
157
- version: '0'
158
- - !ruby/object:Gem::Dependency
159
- name: rake
160
- requirement: !ruby/object:Gem::Requirement
161
- requirements:
162
- - - ">="
163
- - !ruby/object:Gem::Version
164
- version: '10.0'
165
- - - "<"
166
- - !ruby/object:Gem::Version
167
- version: '14'
168
- type: :development
169
- prerelease: false
170
- version_requirements: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: '10.0'
175
- - - "<"
176
- - !ruby/object:Gem::Version
177
- version: '14'
178
- - !ruby/object:Gem::Dependency
179
- name: rspec
85
+ name: rspec-puppet
180
86
  requirement: !ruby/object:Gem::Requirement
181
87
  requirements:
182
88
  - - "~>"
183
89
  - !ruby/object:Gem::Version
184
- version: '3.0'
185
- type: :development
90
+ version: '2.0'
91
+ type: :runtime
186
92
  prerelease: false
187
93
  version_requirements: !ruby/object:Gem::Requirement
188
94
  requirements:
189
95
  - - "~>"
190
96
  - !ruby/object:Gem::Version
191
- version: '3.0'
192
- - !ruby/object:Gem::Dependency
193
- name: yard
194
- requirement: !ruby/object:Gem::Requirement
195
- requirements:
196
- - - ">="
197
- - !ruby/object:Gem::Version
198
- version: '0'
199
- type: :development
200
- prerelease: false
201
- version_requirements: !ruby/object:Gem::Requirement
202
- requirements:
203
- - - ">="
204
- - !ruby/object:Gem::Version
205
- version: '0'
97
+ version: '2.0'
206
98
  description: Contains rake tasks and a standard spec_helper for running spec tests
207
99
  on puppet modules.
208
100
  email:
@@ -211,21 +103,9 @@ executables: []
211
103
  extensions: []
212
104
  extra_rdoc_files: []
213
105
  files:
214
- - ".github/dependabot.yml"
215
- - ".gitignore"
216
- - ".noexec.yaml"
217
- - ".rspec"
218
106
  - ".rubocop.yml"
219
- - ".rubocop_todo.yml"
220
- - ".travis.yml"
221
- - CHANGELOG.md
222
- - CODEOWNERS
223
- - CONTRIBUTING.md
224
- - Gemfile
225
- - HISTORY.md
226
107
  - LICENSE
227
108
  - README.md
228
- - Rakefile
229
109
  - lib/puppetlabs_spec_helper/module_spec_helper.rb
230
110
  - lib/puppetlabs_spec_helper/puppet_spec_helper.rb
231
111
  - lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb
@@ -237,14 +117,19 @@ files:
237
117
  - lib/puppetlabs_spec_helper/tasks/check_symlinks.rb
238
118
  - lib/puppetlabs_spec_helper/tasks/fixtures.rb
239
119
  - lib/puppetlabs_spec_helper/version.rb
240
- - puppet_spec_helper.rb
241
- - puppetlabs_spec_helper.gemspec
242
- - puppetlabs_spec_helper.rb
120
+ - spec/acceptance/fixtures/Rakefile
121
+ - spec/acceptance/smoke_spec.rb
122
+ - spec/spec_helper.rb
123
+ - spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb
124
+ - spec/unit/puppetlabs_spec_helper/tasks/check_symlinks_spec.rb
125
+ - spec/unit/puppetlabs_spec_helper/tasks/check_test_file_spec.rb
126
+ - spec/unit/puppetlabs_spec_helper/tasks/fixtures_spec.rb
127
+ - spec/watchr.rb
243
128
  homepage: http://github.com/puppetlabs/puppetlabs_spec_helper
244
129
  licenses:
245
130
  - Apache-2.0
246
131
  metadata: {}
247
- post_install_message:
132
+ post_install_message:
248
133
  rdoc_options: []
249
134
  require_paths:
250
135
  - lib
@@ -252,16 +137,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
252
137
  requirements:
253
138
  - - ">="
254
139
  - !ruby/object:Gem::Version
255
- version: '2.4'
140
+ version: '2.7'
256
141
  required_rubygems_version: !ruby/object:Gem::Requirement
257
142
  requirements:
258
143
  - - ">="
259
144
  - !ruby/object:Gem::Version
260
145
  version: '0'
261
- requirements: []
262
- rubyforge_project:
263
- rubygems_version: 2.7.6.2
264
- signing_key:
146
+ requirements:
147
+ - puppet, >= 6.0.0
148
+ rubygems_version: 3.1.6
149
+ signing_key:
265
150
  specification_version: 4
266
151
  summary: Standard tasks and configuration for module spec tests.
267
152
  test_files: []
@@ -1,15 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: bundler
4
- directory: "/"
5
- schedule:
6
- interval: daily
7
- time: "13:00"
8
- open-pull-requests-limit: 10
9
- ignore:
10
- - dependency-name: rubocop
11
- versions:
12
- - "> 0.49, < 1"
13
- - dependency-name: rubocop
14
- versions:
15
- - ">= 1.a, < 2"
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
data/.noexec.yaml DELETED
@@ -1,4 +0,0 @@
1
- ---
2
- exclude:
3
- - rake
4
- - rspec
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --order rand
data/.rubocop_todo.yml DELETED
@@ -1,119 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2021-02-09 10:30:38 +0000 using RuboCop version 0.57.2.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 1
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
12
- # SupportedStylesAlignWith: keyword, variable, start_of_line
13
- Layout/EndAlignment:
14
- Exclude:
15
- - 'spec/watchr.rb'
16
-
17
- # Offense count: 4
18
- # Configuration parameters: AllowSafeAssignment.
19
- Lint/AssignmentInCondition:
20
- Exclude:
21
- - 'lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb'
22
- - 'lib/puppetlabs_spec_helper/puppetlabs_spec/fixtures.rb'
23
- - 'lib/puppetlabs_spec_helper/rake_tasks.rb'
24
-
25
- # Offense count: 7
26
- Lint/HandleExceptions:
27
- Exclude:
28
- - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
29
- - 'lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb'
30
- - 'lib/puppetlabs_spec_helper/rake_tasks.rb'
31
-
32
- # Offense count: 1
33
- Lint/UselessAssignment:
34
- Exclude:
35
- - 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
36
-
37
- # Offense count: 2
38
- # Configuration parameters: CustomTransform, IgnoreMethods.
39
- RSpec/FilePath:
40
- Exclude:
41
- - 'spec/unit/puppetlabs_spec_helper/tasks/beaker_spec.rb'
42
- - 'spec/unit/puppetlabs_spec_helper/tasks/fixtures_spec.rb'
43
-
44
- # Offense count: 3
45
- # Configuration parameters: AssignmentOnly.
46
- RSpec/InstanceVariable:
47
- Exclude:
48
- - 'spec/acceptance/smoke_spec.rb'
49
-
50
- # Offense count: 6
51
- # Configuration parameters: AggregateFailuresByDefault.
52
- RSpec/MultipleExpectations:
53
- Max: 3
54
-
55
- # Offense count: 18
56
- RSpec/NamedSubject:
57
- Exclude:
58
- - 'spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb'
59
- - 'spec/unit/puppetlabs_spec_helper/tasks/fixtures_spec.rb'
60
-
61
- # Offense count: 2
62
- # Configuration parameters: IgnoreSymbolicNames.
63
- RSpec/VerifiedDoubles:
64
- Exclude:
65
- - 'spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb'
66
-
67
- # Offense count: 2
68
- Security/Eval:
69
- Exclude:
70
- - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
71
-
72
- # Offense count: 4
73
- # Cop supports --auto-correct.
74
- # Configuration parameters: AutoCorrect, EnforcedStyle.
75
- # SupportedStyles: nested, compact
76
- Style/ClassAndModuleChildren:
77
- Exclude:
78
- - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
79
- - 'lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb'
80
- - 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
81
-
82
- # Offense count: 14
83
- Style/Documentation:
84
- Exclude:
85
- - 'spec/**/*'
86
- - 'test/**/*'
87
- - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
88
- - 'lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb'
89
- - 'lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb'
90
- - 'lib/puppetlabs_spec_helper/tasks/beaker.rb'
91
- - 'lib/puppetlabs_spec_helper/tasks/check_symlinks.rb'
92
- - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
93
-
94
- # Offense count: 1
95
- Style/DoubleNegation:
96
- Exclude:
97
- - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
98
-
99
- # Offense count: 6
100
- # Configuration parameters: AllowedVariables.
101
- Style/GlobalVars:
102
- Exclude:
103
- - 'lib/puppetlabs_spec_helper/puppet_spec_helper.rb'
104
- - 'lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb'
105
-
106
- # Offense count: 1
107
- # Configuration parameters: MinBodyLength.
108
- Style/GuardClause:
109
- Exclude:
110
- - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
111
-
112
- # Offense count: 1
113
- # Cop supports --auto-correct.
114
- # Configuration parameters: AutoCorrect, EnforcedStyle.
115
- # SupportedStyles: predicate, comparison
116
- Style/NumericPredicate:
117
- Exclude:
118
- - 'spec/**/*'
119
- - 'lib/puppetlabs_spec_helper/tasks/beaker.rb'
data/.travis.yml DELETED
@@ -1,23 +0,0 @@
1
- os: linux
2
- dist: xenial
3
- language: ruby
4
- cache: bundler
5
- before_install: bundle -v
6
- script: bundle exec rake
7
- jobs:
8
- fast_finish: true
9
- include:
10
- - rvm: '2.7'
11
- env: PUPPET_GEM_VERSION='https://github.com/puppetlabs/puppet.git#main'
12
- - rvm: '2.7'
13
- env: PUPPET_GEM_VERSION='~> 7.0' COVERAGE=yes
14
- - rvm: '2.6'
15
- env: PUPPET_GEM_VERSION='~> 6.0' COVERAGE=yes
16
- - rvm: '2.5'
17
- env: PUPPET_GEM_VERSION='~> 6.0' COVERAGE=yes
18
- - rvm: '2.4'
19
- env: PUPPET_GEM_VERSION='~> 6.0' COVERAGE=yes
20
- - rvm: '2.4'
21
- env: PUPPET_GEM_VERSION='~> 5.0' COVERAGE=yes
22
- notifications:
23
- email: false