voxpupuli-test 3.0.0 → 5.1.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 +4 -4
- data/lib/voxpupuli/test/rake.rb +2 -0
- data/lib/voxpupuli/test/spec_helper.rb +6 -0
- data/rubocop.yml +137 -42
- metadata +40 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a97a19108c440bcb58c23510f0dbc82787a18147c26dee953ef323d21ce6169b
|
4
|
+
data.tar.gz: 7c8218a85721e59c0339f1b4db97bb462c115e7bdccb6391e7607ad9356a1e7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd2a6620a46032f68e3a4d1c03cab282a1296557c8e06e5d123e6c1b900438914edd6dc408fc5adf1c6b9679736daa868764f20b2388aa833a0ff9582fa2b809
|
7
|
+
data.tar.gz: e7411ee56cb628e85485416ebe10f37dff19d126b9b1a7a49dba2a00271bdb2e50aa509950cf227401aced35aa9967755f04e2fea6b46c4fa3a4cb1e8fa32ba9
|
data/lib/voxpupuli/test/rake.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'puppetlabs_spec_helper/rake_tasks'
|
2
2
|
|
3
3
|
PuppetLint.configuration.log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}'
|
4
|
+
# without this, puppet-lint always gives an exit code of 0
|
5
|
+
PuppetLint.configuration.fail_on_warnings = true
|
4
6
|
|
5
7
|
desc 'Run tests'
|
6
8
|
task test: [:release_checks]
|
@@ -11,6 +11,12 @@ require 'voxpupuli/test/facts'
|
|
11
11
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
12
12
|
|
13
13
|
RSpec.configure do |config|
|
14
|
+
# This completely disables Facter and uses a stubbed implementation. This is
|
15
|
+
# fine since we use use rspec-puppet-facts to set all facts. It gives
|
16
|
+
# complete isolation from the host system. It only works with Puppet 6.25+
|
17
|
+
# and 7.12+ and requires rspec-puppet 2.11.0+.
|
18
|
+
config.facter_implementation = 'rspec'
|
19
|
+
|
14
20
|
config.after(:suite) do
|
15
21
|
RSpec::Puppet::Coverage.report!
|
16
22
|
end
|
data/rubocop.yml
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
require: rubocop-rspec
|
4
4
|
|
5
5
|
AllCops:
|
6
|
-
# Puppet
|
7
|
-
TargetRubyVersion:
|
6
|
+
# Puppet agent 6 ships with ruby 2.5. Puppetserver 6 uses JRuby 9.2.x (Ruby 2.5 compatible) since version 6.1.0.
|
7
|
+
TargetRubyVersion: 2.5
|
8
8
|
Include:
|
9
|
-
-
|
9
|
+
- '**/*.rb'
|
10
10
|
Exclude:
|
11
11
|
- files/**/*
|
12
12
|
- vendor/**/*
|
@@ -18,7 +18,7 @@ AllCops:
|
|
18
18
|
- Guardfile
|
19
19
|
- Vagrantfile
|
20
20
|
|
21
|
-
|
21
|
+
Layout/ConditionPosition:
|
22
22
|
Enabled: True
|
23
23
|
|
24
24
|
Lint/ElseLayout:
|
@@ -27,16 +27,16 @@ Lint/ElseLayout:
|
|
27
27
|
Lint/UnreachableCode:
|
28
28
|
Enabled: True
|
29
29
|
|
30
|
-
Lint/
|
30
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
31
31
|
Enabled: True
|
32
32
|
|
33
33
|
Lint/EnsureReturn:
|
34
34
|
Enabled: True
|
35
35
|
|
36
|
-
Lint/
|
36
|
+
Lint/SuppressedException:
|
37
37
|
Enabled: True
|
38
38
|
|
39
|
-
Lint/
|
39
|
+
Lint/LiteralAsCondition:
|
40
40
|
Enabled: True
|
41
41
|
|
42
42
|
Lint/ShadowingOuterLocalVariable:
|
@@ -89,13 +89,13 @@ Lint/AmbiguousRegexpLiteral:
|
|
89
89
|
Security/Eval:
|
90
90
|
Enabled: True
|
91
91
|
|
92
|
-
|
92
|
+
Layout/BlockAlignment:
|
93
93
|
Enabled: True
|
94
94
|
|
95
|
-
|
95
|
+
Layout/DefEndAlignment:
|
96
96
|
Enabled: True
|
97
97
|
|
98
|
-
|
98
|
+
Layout/EndAlignment:
|
99
99
|
Enabled: True
|
100
100
|
|
101
101
|
Lint/DeprecatedClassMethods:
|
@@ -110,7 +110,7 @@ Lint/ParenthesesAsGroupedExpression:
|
|
110
110
|
Lint/RescueException:
|
111
111
|
Enabled: True
|
112
112
|
|
113
|
-
Lint/
|
113
|
+
Lint/RedundantStringCoercion:
|
114
114
|
Enabled: True
|
115
115
|
|
116
116
|
Lint/UnusedBlockArgument:
|
@@ -122,28 +122,25 @@ Lint/UnusedMethodArgument:
|
|
122
122
|
Lint/UselessAccessModifier:
|
123
123
|
Enabled: True
|
124
124
|
|
125
|
-
Lint/UselessAssignment:
|
126
|
-
Enabled: True
|
127
|
-
|
128
125
|
Lint/Void:
|
129
126
|
Enabled: True
|
130
127
|
|
131
128
|
Layout/AccessModifierIndentation:
|
132
129
|
Enabled: True
|
133
130
|
|
134
|
-
|
131
|
+
Naming/AccessorMethodName:
|
135
132
|
Enabled: True
|
136
133
|
|
137
134
|
Style/Alias:
|
138
135
|
Enabled: True
|
139
136
|
|
140
|
-
Layout/
|
137
|
+
Layout/ArrayAlignment:
|
141
138
|
Enabled: True
|
142
139
|
|
143
|
-
Layout/
|
140
|
+
Layout/HashAlignment:
|
144
141
|
Enabled: True
|
145
142
|
|
146
|
-
Layout/
|
143
|
+
Layout/ParameterAlignment:
|
147
144
|
Enabled: True
|
148
145
|
|
149
146
|
Metrics/BlockNesting:
|
@@ -155,22 +152,16 @@ Style/AsciiComments:
|
|
155
152
|
Style/Attr:
|
156
153
|
Enabled: True
|
157
154
|
|
158
|
-
Style/BracesAroundHashParameters:
|
159
|
-
Enabled: False
|
160
|
-
|
161
155
|
Style/CaseEquality:
|
162
156
|
Enabled: True
|
163
157
|
|
164
|
-
Style/TrailingCommaInArguments:
|
165
|
-
Enabled: False
|
166
|
-
|
167
158
|
Layout/CaseIndentation:
|
168
159
|
Enabled: True
|
169
160
|
|
170
161
|
Style/CharacterLiteral:
|
171
162
|
Enabled: True
|
172
163
|
|
173
|
-
|
164
|
+
Naming/ClassAndModuleCamelCase:
|
174
165
|
Enabled: True
|
175
166
|
|
176
167
|
Style/ClassAndModuleChildren:
|
@@ -195,22 +186,22 @@ Style/WhenThen:
|
|
195
186
|
Style/WordArray:
|
196
187
|
Enabled: True
|
197
188
|
|
198
|
-
Style/
|
189
|
+
Style/RedundantPercentQ:
|
199
190
|
Enabled: True
|
200
191
|
|
201
|
-
Layout/
|
192
|
+
Layout/IndentationStyle:
|
202
193
|
Enabled: True
|
203
194
|
|
204
195
|
Layout/SpaceBeforeSemicolon:
|
205
196
|
Enabled: True
|
206
197
|
|
207
|
-
Layout/
|
198
|
+
Layout/TrailingEmptyLines:
|
208
199
|
Enabled: True
|
209
200
|
|
210
201
|
Layout/SpaceInsideBlockBraces:
|
211
202
|
Enabled: True
|
212
203
|
|
213
|
-
Layout/
|
204
|
+
Layout/SpaceBeforeBrackets:
|
214
205
|
Enabled: True
|
215
206
|
|
216
207
|
Layout/SpaceInsideHashLiteralBraces:
|
@@ -268,7 +259,7 @@ Style/CommentAnnotation:
|
|
268
259
|
Metrics/CyclomaticComplexity:
|
269
260
|
Enabled: False
|
270
261
|
|
271
|
-
|
262
|
+
Naming/ConstantName:
|
272
263
|
Enabled: True
|
273
264
|
|
274
265
|
Style/Documentation:
|
@@ -292,10 +283,10 @@ Style/EachWithObject:
|
|
292
283
|
Layout/EmptyLineBetweenDefs:
|
293
284
|
Enabled: True
|
294
285
|
|
295
|
-
Layout/
|
286
|
+
Layout/FirstArrayElementIndentation:
|
296
287
|
Enabled: True
|
297
288
|
|
298
|
-
Layout/
|
289
|
+
Layout/FirstHashElementIndentation:
|
299
290
|
Enabled: True
|
300
291
|
|
301
292
|
Layout/IndentationConsistency:
|
@@ -314,7 +305,7 @@ Style/EmptyLiteral:
|
|
314
305
|
Enabled: True
|
315
306
|
|
316
307
|
# Configuration parameters: AllowURI, URISchemes.
|
317
|
-
|
308
|
+
Layout/LineLength:
|
318
309
|
Enabled: False
|
319
310
|
|
320
311
|
Style/MethodCallWithoutArgsParentheses:
|
@@ -335,7 +326,10 @@ Style/StringLiterals:
|
|
335
326
|
Style/TrailingCommaInArguments:
|
336
327
|
Enabled: True
|
337
328
|
|
338
|
-
Style/
|
329
|
+
Style/TrailingCommaInArrayLiteral:
|
330
|
+
Enabled: False
|
331
|
+
|
332
|
+
Style/TrailingCommaInHashLiteral:
|
339
333
|
Enabled: False
|
340
334
|
|
341
335
|
Style/GlobalVars:
|
@@ -377,7 +371,7 @@ Style/UnlessElse:
|
|
377
371
|
Style/VariableInterpolation:
|
378
372
|
Enabled: True
|
379
373
|
|
380
|
-
|
374
|
+
Naming/VariableName:
|
381
375
|
Enabled: True
|
382
376
|
|
383
377
|
Style/WhileUntilDo:
|
@@ -386,7 +380,7 @@ Style/WhileUntilDo:
|
|
386
380
|
Style/EvenOdd:
|
387
381
|
Enabled: True
|
388
382
|
|
389
|
-
|
383
|
+
Naming/FileName:
|
390
384
|
Enabled: True
|
391
385
|
|
392
386
|
Style/For:
|
@@ -395,7 +389,7 @@ Style/For:
|
|
395
389
|
Style/Lambda:
|
396
390
|
Enabled: True
|
397
391
|
|
398
|
-
|
392
|
+
Naming/MethodName:
|
399
393
|
Enabled: True
|
400
394
|
|
401
395
|
Style/MultilineTernaryOperator:
|
@@ -431,7 +425,7 @@ Style/NumericLiterals:
|
|
431
425
|
Style/OneLineConditional:
|
432
426
|
Enabled: True
|
433
427
|
|
434
|
-
|
428
|
+
Naming/BinaryOperatorParameterName:
|
435
429
|
Enabled: True
|
436
430
|
|
437
431
|
Style/ParenthesesAroundCondition:
|
@@ -443,7 +437,7 @@ Style/PercentLiteralDelimiters:
|
|
443
437
|
Style/PerlBackrefs:
|
444
438
|
Enabled: True
|
445
439
|
|
446
|
-
|
440
|
+
Naming/PredicateName:
|
447
441
|
Enabled: True
|
448
442
|
|
449
443
|
Style/RedundantException:
|
@@ -538,9 +532,8 @@ RSpec/NestedGroups:
|
|
538
532
|
RSpec/MultipleExpectations:
|
539
533
|
Enabled: false
|
540
534
|
|
541
|
-
|
542
|
-
|
543
|
-
Enabled: False
|
535
|
+
Layout/HeredocIndentation:
|
536
|
+
Enabled: True
|
544
537
|
|
545
538
|
Security/YAMLLoad:
|
546
539
|
Enabled: True
|
@@ -553,3 +546,105 @@ Style/FormatStringToken:
|
|
553
546
|
# are located.
|
554
547
|
RSpec/FilePath:
|
555
548
|
Enabled: false
|
549
|
+
|
550
|
+
# Leaving these enabled creates too much busy work
|
551
|
+
RSpec/ContextWording:
|
552
|
+
Enabled: false
|
553
|
+
Naming/HeredocDelimiterNaming:
|
554
|
+
Enabled: false
|
555
|
+
|
556
|
+
# New cops available after rubocop upgrade
|
557
|
+
Gemspec/DateAssignment: # (new in 1.10)
|
558
|
+
Enabled: true
|
559
|
+
Lint/AmbiguousAssignment: # (new in 1.7)
|
560
|
+
Enabled: true
|
561
|
+
Lint/DeprecatedConstants: # (new in 1.8)
|
562
|
+
Enabled: true
|
563
|
+
Lint/DuplicateBranch: # (new in 1.3)
|
564
|
+
Enabled: true
|
565
|
+
Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
|
566
|
+
Enabled: true
|
567
|
+
Lint/EmptyBlock: # (new in 1.1)
|
568
|
+
Enabled: true
|
569
|
+
Lint/EmptyClass: # (new in 1.3)
|
570
|
+
Enabled: true
|
571
|
+
Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
|
572
|
+
Enabled: true
|
573
|
+
Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
|
574
|
+
Enabled: true
|
575
|
+
Lint/NumberedParameterAssignment: # (new in 1.9)
|
576
|
+
Enabled: true
|
577
|
+
Lint/OrAssignmentToConstant: # (new in 1.9)
|
578
|
+
Enabled: true
|
579
|
+
Lint/RedundantDirGlobSort: # (new in 1.8)
|
580
|
+
Enabled: true
|
581
|
+
Lint/SymbolConversion: # (new in 1.9)
|
582
|
+
Enabled: true
|
583
|
+
Lint/ToEnumArguments: # (new in 1.1)
|
584
|
+
Enabled: true
|
585
|
+
Lint/TripleQuotes: # (new in 1.9)
|
586
|
+
Enabled: true
|
587
|
+
Lint/UnexpectedBlockArity: # (new in 1.5)
|
588
|
+
Enabled: true
|
589
|
+
Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
|
590
|
+
Enabled: true
|
591
|
+
Style/ArgumentsForwarding: # (new in 1.1)
|
592
|
+
Enabled: true
|
593
|
+
Style/CollectionCompact: # (new in 1.2)
|
594
|
+
Enabled: true
|
595
|
+
Style/DocumentDynamicEvalDefinition: # (new in 1.1)
|
596
|
+
Enabled: true
|
597
|
+
Style/EndlessMethod: # (new in 1.8)
|
598
|
+
Enabled: true
|
599
|
+
Style/HashConversion: # (new in 1.10)
|
600
|
+
Enabled: true
|
601
|
+
Style/HashExcept: # (new in 1.7)
|
602
|
+
Enabled: true
|
603
|
+
Style/IfWithBooleanLiteralBranches: # (new in 1.9)
|
604
|
+
Enabled: true
|
605
|
+
Style/NegatedIfElseCondition: # (new in 1.2)
|
606
|
+
Enabled: true
|
607
|
+
Style/NilLambda: # (new in 1.3)
|
608
|
+
Enabled: true
|
609
|
+
Style/RedundantArgument: # (new in 1.4)
|
610
|
+
Enabled: true
|
611
|
+
Style/SwapValues: # (new in 1.1)
|
612
|
+
Enabled: true
|
613
|
+
Layout/LineEndStringConcatenationIndentation: # new in 1.18
|
614
|
+
Enabled: true
|
615
|
+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
616
|
+
Enabled: true
|
617
|
+
Lint/AmbiguousRange: # new in 1.19
|
618
|
+
Enabled: true
|
619
|
+
Lint/EmptyInPattern: # new in 1.16
|
620
|
+
Enabled: true
|
621
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
622
|
+
Enabled: true
|
623
|
+
Lint/RequireRelativeSelfPath: # new in 1.22
|
624
|
+
Enabled: true
|
625
|
+
Security/IoMethods: # new in 1.22
|
626
|
+
Enabled: true
|
627
|
+
Style/InPatternThen: # new in 1.16
|
628
|
+
Enabled: true
|
629
|
+
Style/MultilineInPatternThen: # new in 1.16
|
630
|
+
Enabled: true
|
631
|
+
Style/NumberedParameters: # new in 1.22
|
632
|
+
Enabled: true
|
633
|
+
Style/NumberedParametersLimit: # new in 1.22
|
634
|
+
Enabled: true
|
635
|
+
Style/QuotedSymbols: # new in 1.16
|
636
|
+
Enabled: true
|
637
|
+
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
638
|
+
Enabled: true
|
639
|
+
Style/SelectByRegexp: # new in 1.22
|
640
|
+
Enabled: true
|
641
|
+
Style/StringChars: # new in 1.12
|
642
|
+
Enabled: true
|
643
|
+
RSpec/ExcessiveDocstringSpacing: # new in 2.5
|
644
|
+
Enabled: true
|
645
|
+
RSpec/IdenticalEqualityAssertion: # new in 2.4
|
646
|
+
Enabled: true
|
647
|
+
RSpec/SubjectDeclaration: # new in 2.5
|
648
|
+
Enabled: true
|
649
|
+
RSpec/Rails/AvoidSetupHook: # new in 2.4
|
650
|
+
Enabled: true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voxpupuli-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -72,14 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 4.0.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 4.0.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-puppet
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.11.0
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.11.0
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: rspec-puppet-facts
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,42 +134,56 @@ dependencies:
|
|
120
134
|
requirements:
|
121
135
|
- - "~>"
|
122
136
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
137
|
+
version: 1.22.3
|
124
138
|
type: :runtime
|
125
139
|
prerelease: false
|
126
140
|
version_requirements: !ruby/object:Gem::Requirement
|
127
141
|
requirements:
|
128
142
|
- - "~>"
|
129
143
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
144
|
+
version: 1.22.3
|
131
145
|
- !ruby/object:Gem::Dependency
|
132
146
|
name: rubocop-rspec
|
133
147
|
requirement: !ruby/object:Gem::Requirement
|
134
148
|
requirements:
|
135
149
|
- - "~>"
|
136
150
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
151
|
+
version: '2.5'
|
138
152
|
type: :runtime
|
139
153
|
prerelease: false
|
140
154
|
version_requirements: !ruby/object:Gem::Requirement
|
141
155
|
requirements:
|
142
156
|
- - "~>"
|
143
157
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
158
|
+
version: '2.5'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: rubocop-rake
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 0.6.0
|
166
|
+
type: :runtime
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 0.6.0
|
145
173
|
- !ruby/object:Gem::Dependency
|
146
174
|
name: voxpupuli-puppet-lint-plugins
|
147
175
|
requirement: !ruby/object:Gem::Requirement
|
148
176
|
requirements:
|
149
177
|
- - "~>"
|
150
178
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
179
|
+
version: '3.0'
|
152
180
|
type: :runtime
|
153
181
|
prerelease: false
|
154
182
|
version_requirements: !ruby/object:Gem::Requirement
|
155
183
|
requirements:
|
156
184
|
- - "~>"
|
157
185
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
186
|
+
version: '3.0'
|
159
187
|
- !ruby/object:Gem::Dependency
|
160
188
|
name: rspec
|
161
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -195,14 +223,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
195
223
|
requirements:
|
196
224
|
- - ">="
|
197
225
|
- !ruby/object:Gem::Version
|
198
|
-
version:
|
226
|
+
version: 2.5.0
|
199
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
228
|
requirements:
|
201
229
|
- - ">="
|
202
230
|
- !ruby/object:Gem::Version
|
203
231
|
version: '0'
|
204
232
|
requirements: []
|
205
|
-
rubygems_version: 3.2.
|
233
|
+
rubygems_version: 3.2.32
|
206
234
|
signing_key:
|
207
235
|
specification_version: 4
|
208
236
|
summary: Helpers for testing Vox Pupuli modules
|