beaker-puppet 1.29.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +9 -0
  3. data/.github/workflows/release.yml +3 -3
  4. data/.github/workflows/test.yml +28 -7
  5. data/.rubocop.yml +5 -0
  6. data/.rubocop_todo.yml +842 -0
  7. data/CHANGELOG.md +39 -0
  8. data/Gemfile +5 -20
  9. data/Rakefile +64 -169
  10. data/acceptance/config/acceptance-options.rb +3 -3
  11. data/acceptance/config/gem/acceptance-options.rb +8 -8
  12. data/acceptance/config/git/acceptance-options.rb +8 -8
  13. data/acceptance/config/pkg/acceptance-options.rb +7 -7
  14. data/acceptance/pre_suite/gem/install.rb +6 -6
  15. data/acceptance/pre_suite/git/install.rb +22 -22
  16. data/acceptance/pre_suite/pkg/install.rb +3 -3
  17. data/acceptance/tests/backwards_compatible.rb +6 -7
  18. data/acceptance/tests/clone_git_repo_on_test.rb +12 -13
  19. data/acceptance/tests/create_tmpdir_on_test.rb +13 -9
  20. data/acceptance/tests/install_smoke_test.rb +5 -4
  21. data/acceptance/tests/stub_host.rb +11 -10
  22. data/acceptance/tests/web_helpers_test.rb +11 -10
  23. data/beaker-puppet.gemspec +16 -23
  24. data/bin/beaker-puppet +2 -4
  25. data/lib/beaker-puppet/helpers/facter_helpers.rb +9 -7
  26. data/lib/beaker-puppet/helpers/host_helpers.rb +10 -7
  27. data/lib/beaker-puppet/helpers/puppet_helpers.rb +151 -160
  28. data/lib/beaker-puppet/helpers/rake_helpers.rb +1 -1
  29. data/lib/beaker-puppet/helpers/tk_helpers.rb +22 -28
  30. data/lib/beaker-puppet/install_utils/aio_defaults.rb +39 -43
  31. data/lib/beaker-puppet/install_utils/ezbake_utils.rb +34 -42
  32. data/lib/beaker-puppet/install_utils/foss_defaults.rb +134 -138
  33. data/lib/beaker-puppet/install_utils/foss_utils.rb +294 -321
  34. data/lib/beaker-puppet/install_utils/module_utils.rb +58 -70
  35. data/lib/beaker-puppet/install_utils/puppet5.rb +30 -35
  36. data/lib/beaker-puppet/install_utils/puppet_utils.rb +58 -68
  37. data/lib/beaker-puppet/install_utils/windows_utils.rb +34 -36
  38. data/lib/beaker-puppet/version.rb +1 -1
  39. data/lib/beaker-puppet/wrappers.rb +13 -14
  40. data/lib/beaker-puppet.rb +4 -5
  41. data/setup/aio/010_Install_Puppet_Agent.rb +5 -6
  42. data/setup/common/000-delete-puppet-when-none.rb +2 -4
  43. data/setup/common/003_solaris_cert_fix.rb +74 -70
  44. data/setup/common/005_redhat_subscription_fix.rb +3 -2
  45. data/setup/common/011_Install_Puppet_Server.rb +7 -9
  46. data/setup/common/012_Finalize_Installs.rb +5 -5
  47. data/setup/common/025_StopFirewall.rb +1 -1
  48. data/setup/common/030_StopSssd.rb +2 -2
  49. data/setup/common/040_ValidateSignCert.rb +10 -12
  50. data/setup/common/045_EnsureMasterStarted.rb +2 -2
  51. data/setup/gem/010_GemInstall.rb +5 -4
  52. data/setup/git/000_EnvSetup.rb +48 -48
  53. data/setup/git/010_TestSetup.rb +13 -12
  54. data/setup/git/020_PuppetUserAndGroup.rb +3 -2
  55. data/setup/git/060_InstallModules.rb +14 -14
  56. data/setup/git/070_InstallCACerts.rb +82 -82
  57. data/spec/beaker-puppet/helpers/facter_helpers_spec.rb +22 -24
  58. data/spec/beaker-puppet/helpers/host_helpers_spec.rb +10 -6
  59. data/spec/beaker-puppet/helpers/puppet_helpers_spec.rb +506 -517
  60. data/spec/beaker-puppet/helpers/tk_helpers_spec.rb +20 -24
  61. data/spec/beaker-puppet/install_utils/ezbake_utils_spec.rb +86 -90
  62. data/spec/beaker-puppet/install_utils/foss_utils_spec.rb +636 -599
  63. data/spec/beaker-puppet/install_utils/module_utils_spec.rb +125 -116
  64. data/spec/beaker-puppet/install_utils/puppet5_spec.rb +159 -165
  65. data/spec/beaker-puppet/install_utils/puppet_utils_spec.rb +92 -77
  66. data/spec/beaker-puppet/install_utils/windows_utils_spec.rb +101 -89
  67. data/spec/beaker-puppet/wrappers_spec.rb +10 -10
  68. data/spec/helpers.rb +85 -91
  69. data/tasks/ci.rake +171 -179
  70. metadata +33 -62
  71. data/setup/common/020_InstallCumulusModules.rb +0 -13
  72. data/setup/common/021_InstallAristaModuleMasters.rb +0 -12
  73. data/setup/common/022_InstallAristaModuleAgents.rb +0 -13
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,842 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2023-05-05 13:27:13 UTC using RuboCop version 1.50.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
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: Severity, Include.
12
+ # Include: **/*.gemspec
13
+ Gemspec/DeprecatedAttributeAssignment:
14
+ Exclude:
15
+ - 'beaker-puppet.gemspec'
16
+
17
+ # Offense count: 2
18
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
19
+ Lint/AmbiguousBlockAssociation:
20
+ Exclude:
21
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
22
+ - 'tasks/ci.rake'
23
+
24
+ # Offense count: 1
25
+ # This cop supports safe autocorrection (--autocorrect).
26
+ Lint/AmbiguousOperatorPrecedence:
27
+ Exclude:
28
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
29
+
30
+ # Offense count: 8
31
+ # This cop supports safe autocorrection (--autocorrect).
32
+ Lint/AmbiguousRegexpLiteral:
33
+ Exclude:
34
+ - 'acceptance/tests/create_tmpdir_on_test.rb'
35
+ - 'acceptance/tests/web_helpers_test.rb'
36
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
37
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
38
+
39
+ # Offense count: 3
40
+ # This cop supports unsafe autocorrection (--autocorrect-all).
41
+ # Configuration parameters: AllowSafeAssignment.
42
+ Lint/AssignmentInCondition:
43
+ Exclude:
44
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
45
+ - 'tasks/ci.rake'
46
+
47
+ # Offense count: 1
48
+ # This cop supports unsafe autocorrection (--autocorrect-all).
49
+ Lint/BooleanSymbol:
50
+ Exclude:
51
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
52
+
53
+ # Offense count: 5
54
+ # Configuration parameters: AllowedMethods.
55
+ # AllowedMethods: enums
56
+ Lint/ConstantDefinitionInBlock:
57
+ Exclude:
58
+ - 'Rakefile'
59
+ - 'acceptance/tests/clone_git_repo_on_test.rb'
60
+
61
+ # Offense count: 2
62
+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
63
+ Lint/DuplicateBranch:
64
+ Exclude:
65
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
66
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
67
+
68
+ # Offense count: 2
69
+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
70
+ Lint/EmptyBlock:
71
+ Exclude:
72
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
73
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
74
+
75
+ # Offense count: 2
76
+ # This cop supports safe autocorrection (--autocorrect).
77
+ Lint/ParenthesesAsGroupedExpression:
78
+ Exclude:
79
+ - 'spec/beaker-puppet/helpers/facter_helpers_spec.rb'
80
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
81
+
82
+ # Offense count: 2
83
+ # This cop supports safe autocorrection (--autocorrect).
84
+ Lint/RedundantRequireStatement:
85
+ Exclude:
86
+ - 'spec/spec_helper.rb'
87
+ - 'tasks/ci.rake'
88
+
89
+ # Offense count: 3
90
+ Lint/RescueException:
91
+ Exclude:
92
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
93
+
94
+ # Offense count: 3
95
+ Lint/ShadowingOuterLocalVariable:
96
+ Exclude:
97
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
98
+
99
+ # Offense count: 1
100
+ # This cop supports safe autocorrection (--autocorrect).
101
+ Lint/UnifiedInteger:
102
+ Exclude:
103
+ - 'spec/beaker-puppet/helpers/facter_helpers_spec.rb'
104
+
105
+ # Offense count: 1
106
+ # Configuration parameters: AllowedPatterns.
107
+ # AllowedPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times)
108
+ Lint/UnreachableLoop:
109
+ Exclude:
110
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
111
+
112
+ # Offense count: 19
113
+ # This cop supports safe autocorrection (--autocorrect).
114
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
115
+ Lint/UnusedBlockArgument:
116
+ Exclude:
117
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
118
+ - 'lib/beaker-puppet/install_utils/aio_defaults.rb'
119
+ - 'lib/beaker-puppet/install_utils/foss_defaults.rb'
120
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
121
+ - 'setup/git/010_TestSetup.rb'
122
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
123
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
124
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
125
+ - 'tasks/ci.rake'
126
+
127
+ # Offense count: 3
128
+ # This cop supports safe autocorrection (--autocorrect).
129
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
130
+ Lint/UnusedMethodArgument:
131
+ Exclude:
132
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
133
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
134
+
135
+ # Offense count: 17
136
+ Lint/UselessAssignment:
137
+ Exclude:
138
+ - 'acceptance/tests/clone_git_repo_on_test.rb'
139
+ - 'acceptance/tests/create_tmpdir_on_test.rb'
140
+ - 'lib/beaker-puppet/install_utils/ezbake_utils.rb'
141
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
142
+ - 'lib/beaker-puppet/install_utils/windows_utils.rb'
143
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
144
+
145
+ # Offense count: 2
146
+ # This cop supports unsafe autocorrection (--autocorrect-all).
147
+ Minitest/RefuteFalse:
148
+ Exclude:
149
+ - 'acceptance/tests/install_smoke_test.rb'
150
+ - 'acceptance/tests/web_helpers_test.rb'
151
+
152
+ # Offense count: 1
153
+ Naming/AccessorMethodName:
154
+ Exclude:
155
+ - 'Rakefile'
156
+
157
+ # Offense count: 5
158
+ Naming/ConstantName:
159
+ Exclude:
160
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
161
+ - 'setup/common/003_solaris_cert_fix.rb'
162
+
163
+ # Offense count: 19
164
+ # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
165
+ # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
166
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
167
+ Naming/FileName:
168
+ Enabled: false
169
+
170
+ # Offense count: 27
171
+ # Configuration parameters: ForbiddenDelimiters.
172
+ # ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
173
+ Naming/HeredocDelimiterNaming:
174
+ Exclude:
175
+ - 'Rakefile'
176
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
177
+ - 'lib/beaker-puppet/install_utils/puppet5.rb'
178
+ - 'setup/common/003_solaris_cert_fix.rb'
179
+ - 'setup/git/000_EnvSetup.rb'
180
+ - 'setup/git/010_TestSetup.rb'
181
+ - 'setup/git/070_InstallCACerts.rb'
182
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
183
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
184
+ - 'tasks/ci.rake'
185
+
186
+ # Offense count: 7
187
+ # This cop supports safe autocorrection (--autocorrect).
188
+ # Configuration parameters: PreferredName.
189
+ Naming/RescuedExceptionsVariableName:
190
+ Exclude:
191
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
192
+
193
+ # Offense count: 10
194
+ # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
195
+ # SupportedStyles: snake_case, normalcase, non_integer
196
+ # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
197
+ Naming/VariableNumber:
198
+ Exclude:
199
+ - 'acceptance/pre_suite/git/install.rb'
200
+ - 'acceptance/tests/clone_git_repo_on_test.rb'
201
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
202
+ - 'setup/git/000_EnvSetup.rb'
203
+
204
+ # Offense count: 1
205
+ # This cop supports safe autocorrection (--autocorrect).
206
+ Performance/BlockGivenWithExplicitBlock:
207
+ Exclude:
208
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
209
+
210
+ # Offense count: 1
211
+ # Configuration parameters: MinSize.
212
+ Performance/CollectionLiteralInLoop:
213
+ Exclude:
214
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
215
+
216
+ # Offense count: 1
217
+ # This cop supports safe autocorrection (--autocorrect).
218
+ Performance/RedundantBlockCall:
219
+ Exclude:
220
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
221
+
222
+ # Offense count: 9
223
+ # This cop supports safe autocorrection (--autocorrect).
224
+ Performance/RedundantMatch:
225
+ Exclude:
226
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
227
+ - 'lib/beaker-puppet/install_utils/module_utils.rb'
228
+
229
+ # Offense count: 1
230
+ # This cop supports unsafe autocorrection (--autocorrect-all).
231
+ # Configuration parameters: MaxKeyValuePairs.
232
+ Performance/RedundantMerge:
233
+ Exclude:
234
+ - 'lib/beaker-puppet/helpers/facter_helpers.rb'
235
+
236
+ # Offense count: 43
237
+ # This cop supports safe autocorrection (--autocorrect).
238
+ Performance/RegexpMatch:
239
+ Exclude:
240
+ - 'acceptance/pre_suite/gem/install.rb'
241
+ - 'acceptance/pre_suite/git/install.rb'
242
+ - 'acceptance/tests/stub_host.rb'
243
+ - 'lib/beaker-puppet/install_utils/aio_defaults.rb'
244
+ - 'lib/beaker-puppet/install_utils/ezbake_utils.rb'
245
+ - 'lib/beaker-puppet/install_utils/foss_defaults.rb'
246
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
247
+ - 'lib/beaker-puppet/install_utils/module_utils.rb'
248
+ - 'lib/beaker-puppet/install_utils/windows_utils.rb'
249
+ - 'setup/common/003_solaris_cert_fix.rb'
250
+ - 'setup/gem/010_GemInstall.rb'
251
+ - 'setup/git/000_EnvSetup.rb'
252
+
253
+ # Offense count: 30
254
+ # This cop supports unsafe autocorrection (--autocorrect-all).
255
+ Performance/StringInclude:
256
+ Exclude:
257
+ - 'acceptance/pre_suite/gem/install.rb'
258
+ - 'acceptance/pre_suite/git/install.rb'
259
+ - 'acceptance/tests/stub_host.rb'
260
+ - 'lib/beaker-puppet/helpers/host_helpers.rb'
261
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
262
+ - 'lib/beaker-puppet/install_utils/aio_defaults.rb'
263
+ - 'lib/beaker-puppet/install_utils/foss_defaults.rb'
264
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
265
+ - 'lib/beaker-puppet/install_utils/puppet_utils.rb'
266
+ - 'setup/common/003_solaris_cert_fix.rb'
267
+ - 'setup/gem/010_GemInstall.rb'
268
+ - 'setup/git/000_EnvSetup.rb'
269
+
270
+ # Offense count: 7
271
+ # This cop supports safe autocorrection (--autocorrect).
272
+ Performance/StringReplacement:
273
+ Exclude:
274
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
275
+ - 'lib/beaker-puppet/install_utils/module_utils.rb'
276
+ - 'lib/beaker-puppet/install_utils/windows_utils.rb'
277
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
278
+
279
+ # Offense count: 5
280
+ # This cop supports unsafe autocorrection (--autocorrect-all).
281
+ RSpec/BeEq:
282
+ Exclude:
283
+ - 'spec/beaker-puppet/helpers/tk_helpers_spec.rb'
284
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
285
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
286
+
287
+ # Offense count: 2
288
+ # This cop supports safe autocorrection (--autocorrect).
289
+ RSpec/ContextMethod:
290
+ Exclude:
291
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
292
+
293
+ # Offense count: 52
294
+ # Configuration parameters: Prefixes, AllowedPatterns.
295
+ # Prefixes: when, with, without
296
+ RSpec/ContextWording:
297
+ Exclude:
298
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
299
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
300
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
301
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
302
+ - 'spec/beaker-puppet/install_utils/puppet_utils_spec.rb'
303
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
304
+
305
+ # Offense count: 24
306
+ # This cop supports safe autocorrection (--autocorrect).
307
+ # Configuration parameters: AllowConsecutiveOneLiners.
308
+ RSpec/EmptyLineAfterExample:
309
+ Exclude:
310
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
311
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
312
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
313
+
314
+ # Offense count: 10
315
+ # This cop supports safe autocorrection (--autocorrect).
316
+ RSpec/EmptyLineAfterExampleGroup:
317
+ Exclude:
318
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
319
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
320
+
321
+ # Offense count: 19
322
+ # This cop supports safe autocorrection (--autocorrect).
323
+ RSpec/EmptyLineAfterFinalLet:
324
+ Exclude:
325
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
326
+ - 'spec/beaker-puppet/helpers/tk_helpers_spec.rb'
327
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
328
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
329
+
330
+ # Offense count: 4
331
+ # This cop supports safe autocorrection (--autocorrect).
332
+ # Configuration parameters: AllowConsecutiveOneLiners.
333
+ RSpec/EmptyLineAfterHook:
334
+ Exclude:
335
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
336
+ - 'spec/beaker-puppet/helpers/tk_helpers_spec.rb'
337
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
338
+
339
+ # Offense count: 138
340
+ # Configuration parameters: CountAsOne.
341
+ RSpec/ExampleLength:
342
+ Max: 34
343
+
344
+ # Offense count: 24
345
+ # This cop supports safe autocorrection (--autocorrect).
346
+ # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
347
+ # DisallowedExamples: works
348
+ RSpec/ExampleWording:
349
+ Exclude:
350
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
351
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
352
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
353
+ - 'spec/beaker-puppet/wrappers_spec.rb'
354
+
355
+ # Offense count: 8
356
+ RSpec/ExpectInHook:
357
+ Exclude:
358
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
359
+ - 'spec/beaker-puppet/helpers/tk_helpers_spec.rb'
360
+
361
+ # Offense count: 11
362
+ # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
363
+ # Include: **/*_spec*rb*, **/spec/**/*
364
+ RSpec/FilePath:
365
+ Exclude:
366
+ - 'spec/beaker-puppet/helpers/facter_helpers_spec.rb'
367
+ - 'spec/beaker-puppet/helpers/host_helpers_spec.rb'
368
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
369
+ - 'spec/beaker-puppet/helpers/tk_helpers_spec.rb'
370
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
371
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
372
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
373
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
374
+ - 'spec/beaker-puppet/install_utils/puppet_utils_spec.rb'
375
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
376
+ - 'spec/beaker-puppet/wrappers_spec.rb'
377
+
378
+ # Offense count: 26
379
+ # This cop supports safe autocorrection (--autocorrect).
380
+ # Configuration parameters: EnforcedStyle.
381
+ # SupportedStyles: implicit, each, example
382
+ RSpec/HookArgument:
383
+ Exclude:
384
+ - 'spec/beaker-puppet/helpers/facter_helpers_spec.rb'
385
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
386
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
387
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
388
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
389
+
390
+ # Offense count: 2
391
+ # Configuration parameters: Max.
392
+ RSpec/IndexedLet:
393
+ Exclude:
394
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
395
+
396
+ # Offense count: 14
397
+ # Configuration parameters: AssignmentOnly.
398
+ RSpec/InstanceVariable:
399
+ Exclude:
400
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
401
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
402
+
403
+ # Offense count: 3
404
+ # This cop supports safe autocorrection (--autocorrect).
405
+ # Configuration parameters: EnforcedStyle.
406
+ # SupportedStyles: it_behaves_like, it_should_behave_like
407
+ RSpec/ItBehavesLike:
408
+ Exclude:
409
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
410
+
411
+ # Offense count: 1
412
+ RSpec/IteratedExpectation:
413
+ Exclude:
414
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
415
+
416
+ # Offense count: 1
417
+ # This cop supports safe autocorrection (--autocorrect).
418
+ RSpec/LetBeforeExamples:
419
+ Exclude:
420
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
421
+
422
+ # Offense count: 508
423
+ # Configuration parameters: EnforcedStyle.
424
+ # SupportedStyles: have_received, receive
425
+ RSpec/MessageSpies:
426
+ Exclude:
427
+ - 'spec/beaker-puppet/helpers/facter_helpers_spec.rb'
428
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
429
+ - 'spec/beaker-puppet/helpers/tk_helpers_spec.rb'
430
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
431
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
432
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
433
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
434
+ - 'spec/beaker-puppet/install_utils/puppet_utils_spec.rb'
435
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
436
+ - 'spec/beaker-puppet/wrappers_spec.rb'
437
+
438
+ # Offense count: 183
439
+ RSpec/MultipleExpectations:
440
+ Max: 12
441
+
442
+ # Offense count: 150
443
+ # Configuration parameters: AllowSubject.
444
+ RSpec/MultipleMemoizedHelpers:
445
+ Max: 25
446
+
447
+ # Offense count: 940
448
+ # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
449
+ # SupportedStyles: always, named_only
450
+ RSpec/NamedSubject:
451
+ Exclude:
452
+ - 'spec/beaker-puppet/helpers/facter_helpers_spec.rb'
453
+ - 'spec/beaker-puppet/helpers/host_helpers_spec.rb'
454
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
455
+ - 'spec/beaker-puppet/helpers/tk_helpers_spec.rb'
456
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
457
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
458
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
459
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
460
+ - 'spec/beaker-puppet/install_utils/puppet_utils_spec.rb'
461
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
462
+ - 'spec/beaker-puppet/wrappers_spec.rb'
463
+
464
+ # Offense count: 31
465
+ # Configuration parameters: AllowedGroups.
466
+ RSpec/NestedGroups:
467
+ Max: 5
468
+
469
+ # Offense count: 8
470
+ # Configuration parameters: AllowedPatterns.
471
+ # AllowedPatterns: ^expect_, ^assert_
472
+ RSpec/NoExpectationExample:
473
+ Exclude:
474
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
475
+ - 'spec/beaker-puppet/helpers/tk_helpers_spec.rb'
476
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
477
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
478
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
479
+
480
+ # Offense count: 10
481
+ # This cop supports safe autocorrection (--autocorrect).
482
+ # Configuration parameters: EnforcedStyle.
483
+ # SupportedStyles: not_to, to_not
484
+ RSpec/NotToNot:
485
+ Exclude:
486
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
487
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
488
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
489
+
490
+ # Offense count: 24
491
+ # This cop supports safe autocorrection (--autocorrect).
492
+ RSpec/ReceiveCounts:
493
+ Exclude:
494
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
495
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
496
+
497
+ # Offense count: 19
498
+ # This cop supports safe autocorrection (--autocorrect).
499
+ RSpec/ReceiveNever:
500
+ Exclude:
501
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
502
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
503
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
504
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
505
+
506
+ # Offense count: 6
507
+ RSpec/RepeatedDescription:
508
+ Exclude:
509
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
510
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
511
+
512
+ # Offense count: 33
513
+ # This cop supports safe autocorrection (--autocorrect).
514
+ # Configuration parameters: EnforcedStyle.
515
+ # SupportedStyles: and_return, block
516
+ RSpec/ReturnFromStub:
517
+ Exclude:
518
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
519
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
520
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
521
+
522
+ # Offense count: 106
523
+ RSpec/StubbedMock:
524
+ Exclude:
525
+ - 'spec/beaker-puppet/helpers/facter_helpers_spec.rb'
526
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
527
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
528
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
529
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
530
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
531
+ - 'spec/beaker-puppet/install_utils/puppet_utils_spec.rb'
532
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
533
+
534
+ # Offense count: 593
535
+ RSpec/SubjectStub:
536
+ Exclude:
537
+ - 'spec/beaker-puppet/helpers/facter_helpers_spec.rb'
538
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
539
+ - 'spec/beaker-puppet/helpers/tk_helpers_spec.rb'
540
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
541
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
542
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
543
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
544
+ - 'spec/beaker-puppet/install_utils/puppet_utils_spec.rb'
545
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
546
+ - 'spec/beaker-puppet/wrappers_spec.rb'
547
+
548
+ # Offense count: 1
549
+ # This cop supports unsafe autocorrection (--autocorrect-all).
550
+ # Configuration parameters: EnforcedStyle.
551
+ # SupportedStyles: constant, string
552
+ RSpec/VerifiedDoubleReference:
553
+ Exclude:
554
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
555
+
556
+ # Offense count: 9
557
+ # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
558
+ RSpec/VerifiedDoubles:
559
+ Exclude:
560
+ - 'spec/beaker-puppet/helpers/puppet_helpers_spec.rb'
561
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
562
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
563
+ - 'spec/helpers.rb'
564
+
565
+ # Offense count: 1
566
+ Rake/ClassDefinitionInTask:
567
+ Exclude:
568
+ - 'Rakefile'
569
+
570
+ # Offense count: 6
571
+ # This cop supports safe autocorrection (--autocorrect).
572
+ Rake/Desc:
573
+ Exclude:
574
+ - 'Rakefile'
575
+ - 'tasks/ci.rake'
576
+
577
+ # Offense count: 6
578
+ Rake/MethodDefinitionInTask:
579
+ Exclude:
580
+ - 'Rakefile'
581
+
582
+ # Offense count: 4
583
+ Security/Eval:
584
+ Exclude:
585
+ - 'Rakefile'
586
+ - 'acceptance/config/gem/acceptance-options.rb'
587
+ - 'acceptance/config/git/acceptance-options.rb'
588
+ - 'acceptance/config/pkg/acceptance-options.rb'
589
+
590
+ # Offense count: 2
591
+ # This cop supports unsafe autocorrection (--autocorrect-all).
592
+ Security/JSONLoad:
593
+ Exclude:
594
+ - 'setup/git/000_EnvSetup.rb'
595
+ - 'tasks/ci.rake'
596
+
597
+ # Offense count: 1
598
+ Security/Open:
599
+ Exclude:
600
+ - 'setup/git/000_EnvSetup.rb'
601
+
602
+ # Offense count: 2
603
+ # This cop supports unsafe autocorrection (--autocorrect-all).
604
+ Security/YAMLLoad:
605
+ Exclude:
606
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
607
+
608
+ # Offense count: 6
609
+ # This cop supports unsafe autocorrection (--autocorrect-all).
610
+ # Configuration parameters: EnforcedStyle.
611
+ # SupportedStyles: always, conditionals
612
+ Style/AndOr:
613
+ Exclude:
614
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
615
+ - 'lib/beaker-puppet/install_utils/puppet_utils.rb'
616
+
617
+ # Offense count: 10
618
+ # This cop supports safe autocorrection (--autocorrect).
619
+ # Configuration parameters: AllowOnConstant, AllowOnSelfClass.
620
+ Style/CaseEquality:
621
+ Exclude:
622
+ - 'lib/beaker-puppet/install_utils/module_utils.rb'
623
+ - 'spec/beaker-puppet/helpers/facter_helpers_spec.rb'
624
+ - 'spec/beaker-puppet/install_utils/puppet5_spec.rb'
625
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
626
+
627
+ # Offense count: 3
628
+ # This cop supports unsafe autocorrection (--autocorrect-all).
629
+ # Configuration parameters: MinBranchesCount.
630
+ Style/CaseLikeIf:
631
+ Exclude:
632
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
633
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
634
+
635
+ # Offense count: 1
636
+ # This cop supports unsafe autocorrection (--autocorrect-all).
637
+ # Configuration parameters: EnforcedStyle.
638
+ # SupportedStyles: nested, compact
639
+ Style/ClassAndModuleChildren:
640
+ Exclude:
641
+ - 'spec/beaker-puppet/install_utils/ezbake_utils_spec.rb'
642
+
643
+ # Offense count: 1
644
+ # This cop supports unsafe autocorrection (--autocorrect-all).
645
+ Style/CollectionCompact:
646
+ Exclude:
647
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
648
+
649
+ # Offense count: 1
650
+ Style/CombinableLoops:
651
+ Exclude:
652
+ - 'spec/beaker-puppet/install_utils/windows_utils_spec.rb'
653
+
654
+ # Offense count: 3
655
+ # Configuration parameters: AllowedConstants.
656
+ Style/Documentation:
657
+ Exclude:
658
+ - 'spec/**/*'
659
+ - 'test/**/*'
660
+ - 'Rakefile'
661
+ - 'lib/beaker-puppet/install_utils/puppet5.rb'
662
+ - 'lib/beaker-puppet/wrappers.rb'
663
+
664
+ # Offense count: 1
665
+ # This cop supports unsafe autocorrection (--autocorrect-all).
666
+ Style/EnvHome:
667
+ Exclude:
668
+ - 'acceptance/config/acceptance-options.rb'
669
+
670
+ # Offense count: 20
671
+ # This cop supports safe autocorrection (--autocorrect).
672
+ # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
673
+ # SupportedStyles: annotated, template, unannotated
674
+ Style/FormatStringToken:
675
+ EnforcedStyle: unannotated
676
+
677
+ # Offense count: 74
678
+ # This cop supports unsafe autocorrection (--autocorrect-all).
679
+ # Configuration parameters: EnforcedStyle.
680
+ # SupportedStyles: always, always_true, never
681
+ Style/FrozenStringLiteralComment:
682
+ Enabled: false
683
+
684
+ # Offense count: 1
685
+ # Configuration parameters: MinBranchesCount.
686
+ Style/HashLikeCase:
687
+ Exclude:
688
+ - 'lib/beaker-puppet/install_utils/windows_utils.rb'
689
+
690
+ # Offense count: 4
691
+ # This cop supports unsafe autocorrection (--autocorrect-all).
692
+ Style/IdenticalConditionalBranches:
693
+ Exclude:
694
+ - 'lib/beaker-puppet/helpers/tk_helpers.rb'
695
+ - 'lib/beaker-puppet/install_utils/ezbake_utils.rb'
696
+
697
+ # Offense count: 12
698
+ # This cop supports safe autocorrection (--autocorrect).
699
+ Style/IfUnlessModifier:
700
+ Exclude:
701
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
702
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
703
+ - 'lib/beaker-puppet/install_utils/module_utils.rb'
704
+ - 'lib/beaker-puppet/install_utils/puppet5.rb'
705
+ - 'lib/beaker-puppet/install_utils/windows_utils.rb'
706
+
707
+ # Offense count: 18
708
+ # This cop supports unsafe autocorrection (--autocorrect-all).
709
+ Style/LineEndConcatenation:
710
+ Exclude:
711
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
712
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
713
+
714
+ # Offense count: 1
715
+ # This cop supports unsafe autocorrection (--autocorrect-all).
716
+ Style/MapToHash:
717
+ Exclude:
718
+ - 'lib/beaker-puppet/install_utils/puppet5.rb'
719
+
720
+ # Offense count: 1
721
+ Style/MixinUsage:
722
+ Exclude:
723
+ - 'tasks/ci.rake'
724
+
725
+ # Offense count: 37
726
+ # This cop supports unsafe autocorrection (--autocorrect-all).
727
+ # Configuration parameters: EnforcedStyle.
728
+ # SupportedStyles: literals, strict
729
+ Style/MutableConstant:
730
+ Enabled: false
731
+
732
+ # Offense count: 1
733
+ # This cop supports safe autocorrection (--autocorrect).
734
+ # Configuration parameters: IncludeSemanticChanges.
735
+ Style/NonNilCheck:
736
+ Exclude:
737
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
738
+
739
+ # Offense count: 10
740
+ # This cop supports unsafe autocorrection (--autocorrect-all).
741
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
742
+ # SupportedStyles: predicate, comparison
743
+ Style/NumericPredicate:
744
+ Exclude:
745
+ - 'spec/**/*'
746
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
747
+ - 'lib/beaker-puppet/install_utils/ezbake_utils.rb'
748
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
749
+ - 'lib/beaker-puppet/install_utils/puppet_utils.rb'
750
+ - 'lib/beaker-puppet/install_utils/windows_utils.rb'
751
+
752
+ # Offense count: 1
753
+ Style/OpenStructUse:
754
+ Exclude:
755
+ - 'spec/helpers.rb'
756
+
757
+ # Offense count: 2
758
+ # Configuration parameters: AllowedMethods.
759
+ # AllowedMethods: respond_to_missing?
760
+ Style/OptionalBooleanParameter:
761
+ Exclude:
762
+ - 'Rakefile'
763
+ - 'lib/beaker-puppet/helpers/tk_helpers.rb'
764
+
765
+ # Offense count: 8
766
+ # This cop supports unsafe autocorrection (--autocorrect-all).
767
+ # Configuration parameters: EnforcedStyle.
768
+ # SupportedStyles: short, verbose
769
+ Style/PreferredHashMethods:
770
+ Exclude:
771
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
772
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
773
+ - 'lib/beaker-puppet/install_utils/module_utils.rb'
774
+ - 'spec/helpers.rb'
775
+
776
+ # Offense count: 2
777
+ # This cop supports unsafe autocorrection (--autocorrect-all).
778
+ # Configuration parameters: Methods.
779
+ Style/RedundantArgument:
780
+ Exclude:
781
+ - 'Rakefile'
782
+ - 'tasks/ci.rake'
783
+
784
+ # Offense count: 17
785
+ # This cop supports unsafe autocorrection (--autocorrect-all).
786
+ Style/RedundantInterpolation:
787
+ Exclude:
788
+ - 'Rakefile'
789
+ - 'acceptance/tests/clone_git_repo_on_test.rb'
790
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
791
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
792
+ - 'lib/beaker-puppet/install_utils/puppet5.rb'
793
+ - 'spec/beaker-puppet/install_utils/foss_utils_spec.rb'
794
+ - 'tasks/ci.rake'
795
+
796
+ # Offense count: 2
797
+ # This cop supports unsafe autocorrection (--autocorrect-all).
798
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
799
+ # AllowedMethods: present?, blank?, presence, try, try!
800
+ Style/SafeNavigation:
801
+ Exclude:
802
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
803
+
804
+ # Offense count: 3
805
+ # This cop supports unsafe autocorrection (--autocorrect-all).
806
+ # Configuration parameters: RequireEnglish, EnforcedStyle.
807
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
808
+ Style/SpecialGlobalVars:
809
+ Exclude:
810
+ - 'lib/beaker-puppet/install_utils/puppet5.rb'
811
+
812
+ # Offense count: 15
813
+ # This cop supports unsafe autocorrection (--autocorrect-all).
814
+ # Configuration parameters: Mode.
815
+ Style/StringConcatenation:
816
+ Exclude:
817
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
818
+ - 'lib/beaker-puppet/install_utils/ezbake_utils.rb'
819
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
820
+ - 'spec/beaker-puppet/install_utils/module_utils_spec.rb'
821
+
822
+ # Offense count: 1
823
+ # This cop supports unsafe autocorrection (--autocorrect-all).
824
+ # Configuration parameters: EnforcedStyle.
825
+ # SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
826
+ Style/YodaCondition:
827
+ Exclude:
828
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
829
+
830
+ # Offense count: 4
831
+ # This cop supports unsafe autocorrection (--autocorrect-all).
832
+ Style/ZeroLengthPredicate:
833
+ Exclude:
834
+ - 'lib/beaker-puppet/helpers/puppet_helpers.rb'
835
+ - 'lib/beaker-puppet/install_utils/foss_utils.rb'
836
+
837
+ # Offense count: 121
838
+ # This cop supports safe autocorrection (--autocorrect).
839
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
840
+ # URISchemes: http, https
841
+ Layout/LineLength:
842
+ Max: 428