puppetlabs-onceover 5.0.3

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.
Files changed (324) hide show
  1. checksums.yaml +7 -0
  2. data/.devcontainer/devcontainer.json +31 -0
  3. data/.gitattributes +2 -0
  4. data/.github/workflows/ci.yml +81 -0
  5. data/.github/workflows/mend.yml +14 -0
  6. data/.github/workflows/nightly.yml +66 -0
  7. data/.github/workflows/release.yaml +16 -0
  8. data/.github/workflows/release_prep.yml +20 -0
  9. data/.gitignore +19 -0
  10. data/.rubocop.yml +19 -0
  11. data/.rubocop_todo.yml +804 -0
  12. data/.vscode/extensions.json +4 -0
  13. data/ARCHIVE.md +395 -0
  14. data/CHANGELOG.md +25 -0
  15. data/CODEOWNERS +2 -0
  16. data/Gemfile +65 -0
  17. data/LICENSE +202 -0
  18. data/README.md +965 -0
  19. data/Rakefile +86 -0
  20. data/bin/puppetlabs-onceover +17 -0
  21. data/cucumber.yml +1 -0
  22. data/factsets/AIX-6.1-powerpc.json +210 -0
  23. data/factsets/AIX-7.1-powerpc.json +215 -0
  24. data/factsets/Amazon-2018.03.json +420 -0
  25. data/factsets/CentOS-5.11-32.json +263 -0
  26. data/factsets/CentOS-5.11-64.json +263 -0
  27. data/factsets/CentOS-6.6-32.json +306 -0
  28. data/factsets/CentOS-6.6-64.json +342 -0
  29. data/factsets/CentOS-7.0-64.json +352 -0
  30. data/factsets/CentOS-8.3.2011-64.json +485 -0
  31. data/factsets/Debian-10.4-64.json +476 -0
  32. data/factsets/Debian-6.0.10-32.json +322 -0
  33. data/factsets/Debian-6.0.10-64.json +322 -0
  34. data/factsets/Debian-7.8-32.json +338 -0
  35. data/factsets/Debian-7.8-64.json +338 -0
  36. data/factsets/Debian-8.11-64.json +480 -0
  37. data/factsets/Debian-9.12-64.json +476 -0
  38. data/factsets/RHEL-6.7.json +415 -0
  39. data/factsets/RHEL-7.4.json +489 -0
  40. data/factsets/SLES-11.3-64.json +317 -0
  41. data/factsets/SLES-12.1-64.json +353 -0
  42. data/factsets/Ubuntu-12.04-32.json +328 -0
  43. data/factsets/Ubuntu-12.04-64.json +328 -0
  44. data/factsets/Ubuntu-14.04-32.json +337 -0
  45. data/factsets/Ubuntu-14.04-64.json +373 -0
  46. data/factsets/Ubuntu-18.04-64.json +556 -0
  47. data/factsets/Ubuntu-20.04-64.json +504 -0
  48. data/factsets/Windows_Server-2008r2-64.json +184 -0
  49. data/factsets/Windows_Server-2012r2-64.json +165 -0
  50. data/factsets/solaris-10_u9-sparc-64.json +769 -0
  51. data/factsets/solaris-11.2-sparc-64.json +774 -0
  52. data/factsets/windows-10-64.json +104 -0
  53. data/features/auto_vendored.feature +27 -0
  54. data/features/cache.feature +38 -0
  55. data/features/factsets.feature +48 -0
  56. data/features/formatting.feature +36 -0
  57. data/features/help.feature +14 -0
  58. data/features/init.feature +18 -0
  59. data/features/show.feature +28 -0
  60. data/features/step_definitions/cache.rb +38 -0
  61. data/features/step_definitions/common.rb +123 -0
  62. data/features/step_definitions/formatter.rb +41 -0
  63. data/features/step_definitions/init.rb +17 -0
  64. data/features/step_definitions/run.rb +17 -0
  65. data/features/support/cache_helper.rb +54 -0
  66. data/features/support/command_helper.rb +32 -0
  67. data/features/support/controlrepo_helper.rb +36 -0
  68. data/features/support/env.rb +2 -0
  69. data/features/windows.feature +35 -0
  70. data/features/zzz_run.feature +93 -0
  71. data/lib/puppetlabs-onceover/beaker/spec_helper.rb +71 -0
  72. data/lib/puppetlabs-onceover/beaker.rb +241 -0
  73. data/lib/puppetlabs-onceover/class.rb +56 -0
  74. data/lib/puppetlabs-onceover/cli/init.rb +34 -0
  75. data/lib/puppetlabs-onceover/cli/plugins.rb +10 -0
  76. data/lib/puppetlabs-onceover/cli/run.rb +85 -0
  77. data/lib/puppetlabs-onceover/cli/show.rb +79 -0
  78. data/lib/puppetlabs-onceover/cli/update.rb +48 -0
  79. data/lib/puppetlabs-onceover/cli.rb +47 -0
  80. data/lib/puppetlabs-onceover/controlrepo.rb +688 -0
  81. data/lib/puppetlabs-onceover/deploy.rb +171 -0
  82. data/lib/puppetlabs-onceover/group.rb +78 -0
  83. data/lib/puppetlabs-onceover/logger.rb +32 -0
  84. data/lib/puppetlabs-onceover/node.rb +72 -0
  85. data/lib/puppetlabs-onceover/rake_tasks.rb +95 -0
  86. data/lib/puppetlabs-onceover/rspec/formatters.rb +315 -0
  87. data/lib/puppetlabs-onceover/runner.rb +139 -0
  88. data/lib/puppetlabs-onceover/test.rb +135 -0
  89. data/lib/puppetlabs-onceover/testconfig.rb +315 -0
  90. data/lib/puppetlabs-onceover/vendored_modules.rb +202 -0
  91. data/lib/puppetlabs-onceover/version.rb +5 -0
  92. data/puppetlabs-onceover.gemspec +40 -0
  93. data/spec/fixtures/controlrepos/basic/Puppetfile +17 -0
  94. data/spec/fixtures/controlrepos/basic/environment.conf +7 -0
  95. data/spec/fixtures/controlrepos/basic/hieradata/common.yaml +2 -0
  96. data/spec/fixtures/controlrepos/basic/hieradata/nodes/example-node.yaml +1 -0
  97. data/spec/fixtures/controlrepos/basic/manifests/site.pp +32 -0
  98. data/spec/fixtures/controlrepos/basic/manifests_alternate/site.pp +2 -0
  99. data/spec/fixtures/controlrepos/basic/site/profile/manifests/base.pp +5 -0
  100. data/spec/fixtures/controlrepos/basic/site/profile/manifests/example.pp +3 -0
  101. data/spec/fixtures/controlrepos/basic/site/role/manifests/database_server.pp +7 -0
  102. data/spec/fixtures/controlrepos/basic/site/role/manifests/example.pp +3 -0
  103. data/spec/fixtures/controlrepos/basic/site/role/manifests/webserver.pp +7 -0
  104. data/spec/fixtures/controlrepos/caching/.gitignore +1 -0
  105. data/spec/fixtures/controlrepos/caching/.travis.yml +2 -0
  106. data/spec/fixtures/controlrepos/caching/Gemfile +5 -0
  107. data/spec/fixtures/controlrepos/caching/Puppetfile +17 -0
  108. data/spec/fixtures/controlrepos/caching/Rakefile +1 -0
  109. data/spec/fixtures/controlrepos/caching/deleteme.txt +0 -0
  110. data/spec/fixtures/controlrepos/caching/environment.conf +2 -0
  111. data/spec/fixtures/controlrepos/caching/hieradata/common.yaml +2 -0
  112. data/spec/fixtures/controlrepos/caching/hieradata/nodes/example-node.yaml +1 -0
  113. data/spec/fixtures/controlrepos/caching/manifests/site.pp +33 -0
  114. data/spec/fixtures/controlrepos/caching/site/profile/manifests/base.pp +5 -0
  115. data/spec/fixtures/controlrepos/caching/site/profile/manifests/example.pp +3 -0
  116. data/spec/fixtures/controlrepos/caching/site/role/manifests/database_server.pp +7 -0
  117. data/spec/fixtures/controlrepos/caching/site/role/manifests/example.pp +3 -0
  118. data/spec/fixtures/controlrepos/caching/site/role/manifests/webserver.pp +7 -0
  119. data/spec/fixtures/controlrepos/caching/spec/factsets/Debian-10-facter-4.json +1091 -0
  120. data/spec/fixtures/controlrepos/caching/spec/factsets/README.md +7 -0
  121. data/spec/fixtures/controlrepos/caching/spec/onceover.yaml +55 -0
  122. data/spec/fixtures/controlrepos/caching/spec/pre_conditions/README.md +24 -0
  123. data/spec/fixtures/controlrepos/caching/spec/pre_conditions/escaping.pp +7 -0
  124. data/spec/fixtures/controlrepos/caching/spec/r10k.yaml +3 -0
  125. data/spec/fixtures/controlrepos/control_branch/Puppetfile +18 -0
  126. data/spec/fixtures/controlrepos/control_branch/environment.conf +2 -0
  127. data/spec/fixtures/controlrepos/custom_puppetfile/Puppetfile.custom +3 -0
  128. data/spec/fixtures/controlrepos/custom_puppetfile/environment.conf +7 -0
  129. data/spec/fixtures/controlrepos/factsets/environment.conf +1 -0
  130. data/spec/fixtures/controlrepos/factsets/site/profile/manifests/base.pp +6 -0
  131. data/spec/fixtures/controlrepos/factsets/site/role/manifests/example.pp +4 -0
  132. data/spec/fixtures/controlrepos/factsets/site/role/manifests/trusted_extensions.pp +6 -0
  133. data/spec/fixtures/controlrepos/factsets/site/role/manifests/trusted_external.pp +6 -0
  134. data/spec/fixtures/controlrepos/factsets/spec/factsets/README.md +7 -0
  135. data/spec/fixtures/controlrepos/factsets/spec/factsets/centos7_notrusted.json +530 -0
  136. data/spec/fixtures/controlrepos/factsets/spec/factsets/centos7_trusted_extensions_nested.json +535 -0
  137. data/spec/fixtures/controlrepos/factsets/spec/factsets/centos7_trusted_extensions_top.json +533 -0
  138. data/spec/fixtures/controlrepos/factsets/spec/factsets/centos7_trusted_external_nested.json +537 -0
  139. data/spec/fixtures/controlrepos/factsets/spec/factsets/centos7_trusted_external_top.json +535 -0
  140. data/spec/fixtures/controlrepos/factsets/spec/factsets/centos_7_facter_4.json +706 -0
  141. data/spec/fixtures/controlrepos/factsets/spec/factsets/centos_with_env.json +353 -0
  142. data/spec/fixtures/controlrepos/function_mocking/.gitignore +1 -0
  143. data/spec/fixtures/controlrepos/function_mocking/Puppetfile +4 -0
  144. data/spec/fixtures/controlrepos/function_mocking/Rakefile +1 -0
  145. data/spec/fixtures/controlrepos/function_mocking/environment.conf +2 -0
  146. data/spec/fixtures/controlrepos/function_mocking/site/profile/functions/fail_puppet.pp +5 -0
  147. data/spec/fixtures/controlrepos/function_mocking/site/profile/lib/puppet/functions/profile/fail_ruby.rb +9 -0
  148. data/spec/fixtures/controlrepos/function_mocking/site/profile/manifests/base.pp +10 -0
  149. data/spec/fixtures/controlrepos/function_mocking/site/role/manifests/fail.pp +7 -0
  150. data/spec/fixtures/controlrepos/function_mocking/site/role/manifests/test_data_return.pp +19 -0
  151. data/spec/fixtures/controlrepos/function_mocking/site/role/manifests/test_new_functions.pp +12 -0
  152. data/spec/fixtures/controlrepos/function_mocking/spec/onceover.yaml +50 -0
  153. data/spec/fixtures/controlrepos/minimal/environment.conf +2 -0
  154. data/spec/fixtures/controlrepos/puppet_controlrepo/.atom-build.json +9 -0
  155. data/spec/fixtures/controlrepos/puppet_controlrepo/.gitignore +5 -0
  156. data/spec/fixtures/controlrepos/puppet_controlrepo/.ruby-version +1 -0
  157. data/spec/fixtures/controlrepos/puppet_controlrepo/.travis.yml +13 -0
  158. data/spec/fixtures/controlrepos/puppet_controlrepo/Gemfile +22 -0
  159. data/spec/fixtures/controlrepos/puppet_controlrepo/Jenkinsfile +50 -0
  160. data/spec/fixtures/controlrepos/puppet_controlrepo/Puppetfile +102 -0
  161. data/spec/fixtures/controlrepos/puppet_controlrepo/README.md +4 -0
  162. data/spec/fixtures/controlrepos/puppet_controlrepo/Rakefile +33 -0
  163. data/spec/fixtures/controlrepos/puppet_controlrepo/data/common.yaml +558 -0
  164. data/spec/fixtures/controlrepos/puppet_controlrepo/data/datacenter/melbourne.yaml +12 -0
  165. data/spec/fixtures/controlrepos/puppet_controlrepo/data/datacenter/singapore.yaml +12 -0
  166. data/spec/fixtures/controlrepos/puppet_controlrepo/data/environments/development.yaml +3 -0
  167. data/spec/fixtures/controlrepos/puppet_controlrepo/data/environments/production.yaml +3 -0
  168. data/spec/fixtures/controlrepos/puppet_controlrepo/data/size/vol.large.yaml +27 -0
  169. data/spec/fixtures/controlrepos/puppet_controlrepo/environment.conf +3 -0
  170. data/spec/fixtures/controlrepos/puppet_controlrepo/hiera.yaml +25 -0
  171. data/spec/fixtures/controlrepos/puppet_controlrepo/manifests/site.pp +11 -0
  172. data/spec/fixtures/controlrepos/puppet_controlrepo/scripts/code_manager_config_version.rb +19 -0
  173. data/spec/fixtures/controlrepos/puppet_controlrepo/scripts/config_version.rb +25 -0
  174. data/spec/fixtures/controlrepos/puppet_controlrepo/scripts/config_version.sh +12 -0
  175. data/spec/fixtures/controlrepos/puppet_controlrepo/scripts/count_changed_classes.rb +26 -0
  176. data/spec/fixtures/controlrepos/puppet_controlrepo/scripts/get_changed_classes.rb +26 -0
  177. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/console/functions/user/token.pp +10 -0
  178. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/console/manifests/init.pp +14 -0
  179. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/console/manifests/user.pp +35 -0
  180. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/deployments/lib/puppet/functions/deployments/generate.rb +15 -0
  181. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/deployments/plans/signed_deployment.pp +126 -0
  182. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/facts.d/test.sh +2 -0
  183. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/files/artifactory/config_descriptor.xml +265 -0
  184. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/files/autosign.sh +23 -0
  185. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/files/hudson.tasks.Shell.xml +4 -0
  186. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/files/motd +4 -0
  187. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/files/polar_clock/index.html +198 -0
  188. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/apt.pp +9 -0
  189. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/aws_nodes.pp +54 -0
  190. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base/aws.pp +9 -0
  191. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base/rhel.pp +50 -0
  192. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base/windows/hardening.pp +57 -0
  193. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base/windows.pp +52 -0
  194. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base.pp +79 -0
  195. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/cd4pe/artifactory.pp +64 -0
  196. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/cd4pe/connection.pp +95 -0
  197. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/cd4pe/haproxy.pp +65 -0
  198. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/cd4pe/replicated.pp +53 -0
  199. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/compile/balancer.pp +28 -0
  200. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/compile/master.pp +19 -0
  201. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/dns/host_record.pp +16 -0
  202. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/dns/server.pp +66 -0
  203. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/docker.pp +5 -0
  204. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/base.pp +43 -0
  205. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/core/database_connection.pp +42 -0
  206. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/core.pp +72 -0
  207. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/ctrl.pp +57 -0
  208. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/database.pp +32 -0
  209. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/exec.pp +11 -0
  210. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/file_sync/client.pp +165 -0
  211. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/file_sync/master_patch.pp +37 -0
  212. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/grafana/dashboard.pp +17 -0
  213. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/haproxy.pp +43 -0
  214. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/init.pp +3 -0
  215. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/jenkins/plugins.pp +87 -0
  216. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/jenkins.pp +65 -0
  217. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/jira/aio.pp +39 -0
  218. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/jira/app.pp +27 -0
  219. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/jira/db.pp +25 -0
  220. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/metrics/collectd/compile.pp +82 -0
  221. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/metrics/collectd.pp +28 -0
  222. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/metrics/dashboard.pp +28 -0
  223. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/mysql_server.pp +7 -0
  224. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/nginx.pp +24 -0
  225. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/polar_clock.pp +55 -0
  226. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/puppetmaster/api_auth.pp +82 -0
  227. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/puppetmaster/autosign.pp +33 -0
  228. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/puppetmaster/aws.pp +58 -0
  229. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/puppetmaster/tuning.pp +139 -0
  230. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/puppetmaster.pp +139 -0
  231. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/rvm.pp +13 -0
  232. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/sumologic.pp +11 -0
  233. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/sunburst/windows.pp +104 -0
  234. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/vagrant.pp +25 -0
  235. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/windows/webserver.pp +27 -0
  236. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/cd4pe/connection_script.sh.epp +110 -0
  237. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/controlrepo_deploy_jenkins_job.xml.epp +51 -0
  238. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/dashboard.json.epp +403 -0
  239. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/jenkins_secret_text.json.epp +1 -0
  240. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/onceover_jenkins_job.xml.epp +51 -0
  241. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/templates/userdata.epp +17 -0
  242. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/cd4pe.pp +29 -0
  243. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/clock.pp +16 -0
  244. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/compile/balancer.pp +5 -0
  245. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/compile/master.pp +5 -0
  246. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/eyeunify/aio.pp +10 -0
  247. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/eyeunify/controller.pp +10 -0
  248. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/eyeunify/database.pp +7 -0
  249. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/eyeunify/exec.pp +6 -0
  250. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/init.pp +3 -0
  251. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/lb.pp +14 -0
  252. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/metrics.pp +5 -0
  253. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/mysql.pp +13 -0
  254. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/windows/base.pp +5 -0
  255. data/spec/fixtures/controlrepos/puppet_controlrepo/site-modules/role/manifests/windows/webserver.pp +6 -0
  256. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/.gitignore +5 -0
  257. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/acceptance/nodesets/onceover-nodes.yml +94 -0
  258. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/classes/test_spec.rb +8 -0
  259. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/factsets/CentOS-7.0-64-master-2017.3.2.json +531 -0
  260. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/factsets/CentOS-7.0-64-master.json +429 -0
  261. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/factsets/CentOS-7.0-64.json +353 -0
  262. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/factsets/Windows_Server-2008r2-64.json +184 -0
  263. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/factsets/Windows_Server-2012r2-64.json +165 -0
  264. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/hiera.yaml +18 -0
  265. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/matchers/file_matchers.rb +16 -0
  266. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/onceover.yaml +54 -0
  267. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/pre_conditions/site.pp +150 -0
  268. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/r10k.yaml +2 -0
  269. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/shared_examples/helper.rb +91 -0
  270. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/unit/00_parse_spec.rb +76 -0
  271. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/unit/01_linting_spec_example.rb +69 -0
  272. data/spec/fixtures/controlrepos/puppet_controlrepo/spec/unit/03_puppetfile_spec_example.rb +35 -0
  273. data/spec/fixtures/controlrepos/vendored/Puppetfile +3 -0
  274. data/spec/fixtures/controlrepos/vendored/Puppetfile.cron +5 -0
  275. data/spec/fixtures/controlrepos/vendored/environment.conf +1 -0
  276. data/spec/fixtures/controlrepos/vendored/site-modules/role/manifests/cron.pp +9 -0
  277. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/augeas_core-puppet_agent-7.30.0.json +1 -0
  278. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/augeas_core-puppet_agent-8.6.0.json +1 -0
  279. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/cron_core-puppet_agent-7.30.0.json +1 -0
  280. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/cron_core-puppet_agent-8.6.0.json +1 -0
  281. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/host_core-puppet_agent-7.30.0.json +1 -0
  282. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/host_core-puppet_agent-8.6.0.json +1 -0
  283. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/mount_core-puppet_agent-7.30.0.json +1 -0
  284. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/mount_core-puppet_agent-8.6.0.json +1 -0
  285. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/repo_tree-puppet_agent-7.30.0.json +1 -0
  286. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/repo_tree-puppet_agent-8.6.0.json +1 -0
  287. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/scheduled_task-puppet_agent-7.30.0.json +1 -0
  288. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/scheduled_task-puppet_agent-8.6.0.json +1 -0
  289. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/selinux_core-puppet_agent-7.30.0.json +1 -0
  290. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/selinux_core-puppet_agent-8.6.0.json +1 -0
  291. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/sshkeys_core-puppet_agent-7.30.0.json +1 -0
  292. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/sshkeys_core-puppet_agent-8.6.0.json +1 -0
  293. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/yumrepo_core-puppet_agent-7.30.0.json +1 -0
  294. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/yumrepo_core-puppet_agent-8.6.0.json +1 -0
  295. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/zfs_core-puppet_agent-7.30.0.json +1 -0
  296. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/zfs_core-puppet_agent-8.6.0.json +1 -0
  297. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/zone_core-puppet_agent-7.30.0.json +1 -0
  298. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/zone_core-puppet_agent-8.6.0.json +1 -0
  299. data/spec/fixtures/controlrepos/windows/Gemfile +3 -0
  300. data/spec/fixtures/controlrepos/windows/Puppetfile +8 -0
  301. data/spec/fixtures/controlrepos/windows/environment.conf +1 -0
  302. data/spec/fixtures/controlrepos/windows/site/role/manifests/groups.pp +8 -0
  303. data/spec/fixtures/controlrepos/windows/site/role/manifests/users.pp +9 -0
  304. data/spec/fixtures/controlrepos/windows/site-modules/role/manifests/acl.pp +12 -0
  305. data/spec/fixtures/controlrepos/windows/site-modules/role/manifests/choco.pp +9 -0
  306. data/spec/fixtures/controlrepos/windows/site-modules/role/manifests/groups.pp +8 -0
  307. data/spec/fixtures/controlrepos/windows/site-modules/role/manifests/users.pp +9 -0
  308. data/spec/fixtures/controlrepos/windows/spec/onceover.yaml +24 -0
  309. data/spec/puppetlabs-onceover/controlrepo_spec.rb +18 -0
  310. data/spec/spec_helper.rb +8 -0
  311. data/templates/.fixtures.yml.erb +24 -0
  312. data/templates/Gemfile.erb +3 -0
  313. data/templates/Rakefile.erb +1 -0
  314. data/templates/acceptance_test_spec.rb.erb +66 -0
  315. data/templates/controlrepo.yaml.erb +38 -0
  316. data/templates/error_summary.yaml.erb +17 -0
  317. data/templates/factsets_README.md.erb +10 -0
  318. data/templates/nodeset.yaml.erb +12 -0
  319. data/templates/pre_conditions_README.md.erb +24 -0
  320. data/templates/spec_helper.rb.erb +35 -0
  321. data/templates/spec_helper_acceptance.rb.erb +1 -0
  322. data/templates/test_spec.rb.erb +150 -0
  323. data/templates/testconfig_Rakefile.erb +47 -0
  324. metadata +602 -0
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,804 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config --no-auto-gen-timestamp`
3
+ # using RuboCop version 1.85.1.
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: 5
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ Layout/ElseAlignment:
12
+ Exclude:
13
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
14
+
15
+ # Offense count: 3
16
+ # This cop supports safe autocorrection (--autocorrect).
17
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
18
+ # SupportedStyles: special_inside_parentheses, consistent, align_braces
19
+ Layout/FirstHashElementIndentation:
20
+ Exclude:
21
+ - 'features/support/cache_helper.rb'
22
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
23
+
24
+ # Offense count: 6
25
+ # This cop supports safe autocorrection (--autocorrect).
26
+ Layout/HeredocIndentation:
27
+ Exclude:
28
+ - 'lib/puppetlabs-onceover/cli/init.rb'
29
+ - 'lib/puppetlabs-onceover/cli/run.rb'
30
+ - 'lib/puppetlabs-onceover/cli/show.rb'
31
+ - 'lib/puppetlabs-onceover/cli/update.rb'
32
+
33
+ # Offense count: 6
34
+ # This cop supports safe autocorrection (--autocorrect).
35
+ # Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
36
+ # SupportedStylesAlignWith: start_of_line, relative_to_receiver
37
+ Layout/IndentationWidth:
38
+ Exclude:
39
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
40
+ - 'lib/puppetlabs-onceover/vendored_modules.rb'
41
+
42
+ # Offense count: 12
43
+ # This cop supports safe autocorrection (--autocorrect).
44
+ # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment, AllowRBSInlineAnnotation, AllowSteepAnnotation.
45
+ Layout/LeadingCommentSpace:
46
+ Exclude:
47
+ - 'lib/puppetlabs-onceover/beaker/spec_helper.rb'
48
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
49
+ - 'lib/puppetlabs-onceover/runner.rb'
50
+ - 'puppetlabs-onceover.gemspec'
51
+
52
+ # Offense count: 1
53
+ # This cop supports safe autocorrection (--autocorrect).
54
+ # Configuration parameters: EnforcedStyle.
55
+ # SupportedStyles: symmetrical, new_line, same_line
56
+ Layout/MultilineMethodCallBraceLayout:
57
+ Exclude:
58
+ - 'lib/puppetlabs-onceover/testconfig.rb'
59
+
60
+ # Offense count: 43
61
+ # This cop supports safe autocorrection (--autocorrect).
62
+ Layout/SpaceAfterComma:
63
+ Exclude:
64
+ - 'features/step_definitions/cache.rb'
65
+ - 'features/support/cache_helper.rb'
66
+ - 'lib/puppetlabs-onceover/beaker.rb'
67
+ - 'lib/puppetlabs-onceover/beaker/spec_helper.rb'
68
+ - 'lib/puppetlabs-onceover/cli/run.rb'
69
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
70
+ - 'lib/puppetlabs-onceover/deploy.rb'
71
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
72
+ - 'lib/puppetlabs-onceover/test.rb'
73
+ - 'lib/puppetlabs-onceover/testconfig.rb'
74
+
75
+ # Offense count: 1
76
+ # This cop supports safe autocorrection (--autocorrect).
77
+ Layout/SpaceAfterNot:
78
+ Exclude:
79
+ - 'lib/puppetlabs-onceover/testconfig.rb'
80
+
81
+ # Offense count: 3
82
+ # This cop supports safe autocorrection (--autocorrect).
83
+ # Configuration parameters: EnforcedStyleInsidePipes.
84
+ # SupportedStylesInsidePipes: space, no_space
85
+ Layout/SpaceAroundBlockParameters:
86
+ Exclude:
87
+ - 'lib/puppetlabs-onceover/testconfig.rb'
88
+
89
+ # Offense count: 4
90
+ # This cop supports safe autocorrection (--autocorrect).
91
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
92
+ # SupportedStylesForExponentOperator: space, no_space
93
+ # SupportedStylesForRationalLiterals: space, no_space
94
+ Layout/SpaceAroundOperators:
95
+ Exclude:
96
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
97
+ - 'lib/puppetlabs-onceover/test.rb'
98
+
99
+ # Offense count: 8
100
+ # This cop supports safe autocorrection (--autocorrect).
101
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
102
+ # SupportedStyles: space, no_space
103
+ # SupportedStylesForEmptyBraces: space, no_space
104
+ Layout/SpaceBeforeBlockBraces:
105
+ Exclude:
106
+ - 'lib/puppetlabs-onceover/cli/plugins.rb'
107
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
108
+ - 'lib/puppetlabs-onceover/testconfig.rb'
109
+
110
+ # Offense count: 1
111
+ # This cop supports safe autocorrection (--autocorrect).
112
+ Layout/SpaceBeforeComment:
113
+ Exclude:
114
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
115
+
116
+ # Offense count: 3
117
+ # This cop supports safe autocorrection (--autocorrect).
118
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
119
+ # SupportedStyles: space, no_space, compact
120
+ # SupportedStylesForEmptyBrackets: space, no_space
121
+ Layout/SpaceInsideArrayLiteralBrackets:
122
+ Exclude:
123
+ - 'features/step_definitions/init.rb'
124
+
125
+ # Offense count: 33
126
+ # This cop supports safe autocorrection (--autocorrect).
127
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
128
+ # SupportedStyles: space, no_space
129
+ # SupportedStylesForEmptyBraces: space, no_space
130
+ Layout/SpaceInsideBlockBraces:
131
+ Exclude:
132
+ - 'Rakefile'
133
+ - 'features/step_definitions/init.rb'
134
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
135
+ - 'lib/puppetlabs-onceover/node.rb'
136
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
137
+ - 'lib/puppetlabs-onceover/testconfig.rb'
138
+
139
+ # Offense count: 14
140
+ # This cop supports safe autocorrection (--autocorrect).
141
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
142
+ # SupportedStyles: space, no_space, compact
143
+ # SupportedStylesForEmptyBraces: space, no_space
144
+ Layout/SpaceInsideHashLiteralBraces:
145
+ Exclude:
146
+ - 'lib/puppetlabs-onceover/beaker.rb'
147
+ - 'lib/puppetlabs-onceover/test.rb'
148
+
149
+ # Offense count: 13
150
+ # This cop supports safe autocorrection (--autocorrect).
151
+ # Configuration parameters: EnforcedStyle.
152
+ # SupportedStyles: space, compact, no_space
153
+ Layout/SpaceInsideParens:
154
+ Exclude:
155
+ - 'features/step_definitions/common.rb'
156
+ - 'features/step_definitions/init.rb'
157
+ - 'features/support/controlrepo_helper.rb'
158
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
159
+
160
+ # Offense count: 2
161
+ # This cop supports safe autocorrection (--autocorrect).
162
+ # Configuration parameters: EnforcedStyle.
163
+ # SupportedStyles: final_newline, final_blank_line
164
+ Layout/TrailingEmptyLines:
165
+ Exclude:
166
+ - 'features/step_definitions/formatter.rb'
167
+ - 'features/support/env.rb'
168
+
169
+ # Offense count: 7
170
+ # This cop supports safe autocorrection (--autocorrect).
171
+ # Configuration parameters: AllowInHeredoc.
172
+ Layout/TrailingWhitespace:
173
+ Exclude:
174
+ - 'features/step_definitions/common.rb'
175
+ - 'features/step_definitions/formatter.rb'
176
+ - 'lib/puppetlabs-onceover/node.rb'
177
+ - 'lib/puppetlabs-onceover/testconfig.rb'
178
+
179
+ # Offense count: 3
180
+ # This cop supports unsafe autocorrection (--autocorrect-all).
181
+ # Configuration parameters: AllowSafeAssignment.
182
+ Lint/AssignmentInCondition:
183
+ Exclude:
184
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
185
+ - 'lib/puppetlabs-onceover/node.rb'
186
+
187
+ # Offense count: 4
188
+ # This cop supports safe autocorrection (--autocorrect).
189
+ Lint/ErbNewArguments:
190
+ Exclude:
191
+ - 'lib/puppetlabs-onceover/rake_tasks.rb'
192
+
193
+ # Offense count: 10
194
+ # This cop supports safe autocorrection (--autocorrect).
195
+ Lint/RedundantStringCoercion:
196
+ Exclude:
197
+ - 'lib/puppetlabs-onceover/cli/show.rb'
198
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
199
+ - 'lib/puppetlabs-onceover/rake_tasks.rb'
200
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
201
+ - 'lib/puppetlabs-onceover/testconfig.rb'
202
+
203
+ # Offense count: 1
204
+ Lint/RescueException:
205
+ Exclude:
206
+ - 'bin/puppetlabs-onceover'
207
+
208
+ # Offense count: 4
209
+ # Configuration parameters: AllowKeywordBlockArguments.
210
+ Lint/UnderscorePrefixedVariableName:
211
+ Exclude:
212
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
213
+
214
+ # Offense count: 20
215
+ # This cop supports safe autocorrection (--autocorrect).
216
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
217
+ Lint/UnusedBlockArgument:
218
+ Exclude:
219
+ - 'lib/puppetlabs-onceover/cli.rb'
220
+ - 'lib/puppetlabs-onceover/cli/init.rb'
221
+ - 'lib/puppetlabs-onceover/cli/plugins.rb'
222
+ - 'lib/puppetlabs-onceover/cli/run.rb'
223
+ - 'lib/puppetlabs-onceover/cli/show.rb'
224
+ - 'lib/puppetlabs-onceover/cli/update.rb'
225
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
226
+ - 'lib/puppetlabs-onceover/testconfig.rb'
227
+
228
+ # Offense count: 8
229
+ # This cop supports safe autocorrection (--autocorrect).
230
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
231
+ # NotImplementedExceptions: NotImplementedError
232
+ Lint/UnusedMethodArgument:
233
+ Exclude:
234
+ - 'lib/puppetlabs-onceover/beaker.rb'
235
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
236
+
237
+ # Offense count: 3
238
+ # This cop supports safe autocorrection (--autocorrect).
239
+ Lint/UselessAssignment:
240
+ Exclude:
241
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
242
+ - 'lib/puppetlabs-onceover/runner.rb'
243
+
244
+ # Offense count: 37
245
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
246
+ Metrics/AbcSize:
247
+ Max: 156
248
+
249
+ # Offense count: 5
250
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
251
+ # AllowedMethods: refine
252
+ Metrics/BlockLength:
253
+ Max: 51
254
+
255
+ # Offense count: 6
256
+ # Configuration parameters: CountComments, CountAsOne.
257
+ Metrics/ClassLength:
258
+ Max: 494
259
+
260
+ # Offense count: 15
261
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
262
+ Metrics/CyclomaticComplexity:
263
+ Max: 31
264
+
265
+ # Offense count: 51
266
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
267
+ Metrics/MethodLength:
268
+ Max: 110
269
+
270
+ # Offense count: 15
271
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
272
+ Metrics/PerceivedComplexity:
273
+ Max: 33
274
+
275
+ # Offense count: 3
276
+ # Configuration parameters: AllowedNames.
277
+ # AllowedNames: module_parent
278
+ Naming/ClassAndModuleCamelCase:
279
+ Exclude:
280
+ - 'features/support/cache_helper.rb'
281
+ - 'features/support/command_helper.rb'
282
+ - 'features/support/controlrepo_helper.rb'
283
+
284
+ # Offense count: 2
285
+ # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
286
+ # AllowedMethods: call
287
+ # WaywardPredicates: infinite?, nonzero?
288
+ Naming/PredicateMethod:
289
+ Exclude:
290
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
291
+ - 'lib/puppetlabs-onceover/testconfig.rb'
292
+
293
+ # Offense count: 2
294
+ Security/Eval:
295
+ Exclude:
296
+ - 'Gemfile'
297
+
298
+ # Offense count: 2
299
+ # This cop supports unsafe autocorrection (--autocorrect-all).
300
+ Security/IoMethods:
301
+ Exclude:
302
+ - 'features/step_definitions/common.rb'
303
+
304
+ # Offense count: 1
305
+ Security/Open:
306
+ Exclude:
307
+ - 'features/support/controlrepo_helper.rb'
308
+
309
+ # Offense count: 44
310
+ # This cop supports safe autocorrection (--autocorrect).
311
+ # Configuration parameters: EnforcedStyle.
312
+ # SupportedStyles: separated, grouped
313
+ Style/AccessorGrouping:
314
+ Exclude:
315
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
316
+ - 'lib/puppetlabs-onceover/node.rb'
317
+ - 'lib/puppetlabs-onceover/runner.rb'
318
+ - 'lib/puppetlabs-onceover/test.rb'
319
+ - 'lib/puppetlabs-onceover/testconfig.rb'
320
+
321
+ # Offense count: 3
322
+ # This cop supports unsafe autocorrection (--autocorrect-all).
323
+ # Configuration parameters: EnforcedStyle.
324
+ # SupportedStyles: always, conditionals
325
+ Style/AndOr:
326
+ Exclude:
327
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
328
+ - 'lib/puppetlabs-onceover/deploy.rb'
329
+
330
+ # Offense count: 5
331
+ # This cop supports safe autocorrection (--autocorrect).
332
+ # Configuration parameters: EnforcedStyle.
333
+ # SupportedStyles: percent_q, bare_percent
334
+ Style/BarePercentLiterals:
335
+ Exclude:
336
+ - 'features/step_definitions/common.rb'
337
+ - 'features/step_definitions/init.rb'
338
+ - 'features/step_definitions/run.rb'
339
+
340
+ # Offense count: 2
341
+ # This cop supports safe autocorrection (--autocorrect).
342
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
343
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
344
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
345
+ # FunctionalMethods: let, let!, subject, watch
346
+ # AllowedMethods: lambda, proc, it
347
+ Style/BlockDelimiters:
348
+ Exclude:
349
+ - 'lib/puppetlabs-onceover/node.rb'
350
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
351
+
352
+ # Offense count: 2
353
+ # This cop supports unsafe autocorrection (--autocorrect-all).
354
+ # Configuration parameters: MinBranchesCount.
355
+ Style/CaseLikeIf:
356
+ Exclude:
357
+ - 'lib/puppetlabs-onceover/test.rb'
358
+ - 'lib/puppetlabs-onceover/testconfig.rb'
359
+
360
+ # Offense count: 1
361
+ # This cop supports unsafe autocorrection (--autocorrect-all).
362
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
363
+ # SupportedStyles: nested, compact
364
+ # SupportedStylesForClasses: ~, nested, compact
365
+ # SupportedStylesForModules: ~, nested, compact
366
+ Style/ClassAndModuleChildren:
367
+ Exclude:
368
+ - 'lib/puppetlabs-onceover/logger.rb'
369
+
370
+ # Offense count: 6
371
+ Style/ClassVars:
372
+ Exclude:
373
+ - 'lib/puppetlabs-onceover/class.rb'
374
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
375
+ - 'lib/puppetlabs-onceover/group.rb'
376
+ - 'lib/puppetlabs-onceover/node.rb'
377
+ - 'lib/puppetlabs-onceover/test.rb'
378
+
379
+ # Offense count: 1
380
+ # This cop supports unsafe autocorrection (--autocorrect-all).
381
+ Style/CollectionQuerying:
382
+ Exclude:
383
+ - 'lib/puppetlabs-onceover/testconfig.rb'
384
+
385
+ # Offense count: 9
386
+ # This cop supports safe autocorrection (--autocorrect).
387
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
388
+ # SupportedStyles: assign_to_condition, assign_inside_condition
389
+ Style/ConditionalAssignment:
390
+ Exclude:
391
+ - 'features/support/cache_helper.rb'
392
+ - 'lib/puppetlabs-onceover/beaker.rb'
393
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
394
+ - 'lib/puppetlabs-onceover/test.rb'
395
+ - 'lib/puppetlabs-onceover/testconfig.rb'
396
+
397
+ # Offense count: 27
398
+ # Configuration parameters: AllowedConstants.
399
+ Style/Documentation:
400
+ Enabled: false
401
+
402
+ # Offense count: 1
403
+ # This cop supports unsafe autocorrection (--autocorrect-all).
404
+ # Configuration parameters: EnforcedStyle.
405
+ # SupportedStyles: allowed_in_returns, forbidden
406
+ Style/DoubleNegation:
407
+ Exclude:
408
+ - 'lib/puppetlabs-onceover/testconfig.rb'
409
+
410
+ # Offense count: 3
411
+ # This cop supports safe autocorrection (--autocorrect).
412
+ Style/EmptyCaseCondition:
413
+ Exclude:
414
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
415
+ - 'lib/puppetlabs-onceover/group.rb'
416
+
417
+ # Offense count: 2
418
+ # This cop supports safe autocorrection (--autocorrect).
419
+ # Configuration parameters: EnforcedStyle, AllowComments.
420
+ # SupportedStyles: empty, nil, both
421
+ Style/EmptyElse:
422
+ Exclude:
423
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
424
+
425
+ # Offense count: 1
426
+ # This cop supports safe autocorrection (--autocorrect).
427
+ Style/Encoding:
428
+ Exclude:
429
+ - 'puppetlabs-onceover.gemspec'
430
+
431
+ # Offense count: 34
432
+ # This cop supports unsafe autocorrection (--autocorrect-all).
433
+ # Configuration parameters: EnforcedStyle.
434
+ # SupportedStyles: always, always_true, never
435
+ Style/FrozenStringLiteralComment:
436
+ Enabled: false
437
+
438
+ # Offense count: 6
439
+ # This cop supports unsafe autocorrection (--autocorrect-all).
440
+ Style/GlobalStdStream:
441
+ Exclude:
442
+ - 'features/step_definitions/formatter.rb'
443
+ - 'lib/puppetlabs-onceover/runner.rb'
444
+
445
+ # Offense count: 6
446
+ # Configuration parameters: AllowedVariables.
447
+ Style/GlobalVars:
448
+ Exclude:
449
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
450
+ - 'lib/puppetlabs-onceover/logger.rb'
451
+
452
+ # Offense count: 5
453
+ # This cop supports safe autocorrection (--autocorrect).
454
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
455
+ Style/GuardClause:
456
+ Exclude:
457
+ - 'lib/puppetlabs-onceover/class.rb'
458
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
459
+ - 'lib/puppetlabs-onceover/deploy.rb'
460
+ - 'lib/puppetlabs-onceover/testconfig.rb'
461
+
462
+ # Offense count: 1
463
+ # This cop supports unsafe autocorrection (--autocorrect-all).
464
+ # Configuration parameters: AllowSplatArgument.
465
+ Style/HashConversion:
466
+ Exclude:
467
+ - 'features/support/cache_helper.rb'
468
+
469
+ # Offense count: 40
470
+ # This cop supports safe autocorrection (--autocorrect).
471
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
472
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
473
+ # SupportedShorthandSyntax: always, never, either, consistent, either_consistent
474
+ Style/HashSyntax:
475
+ Exclude:
476
+ - 'lib/puppetlabs-onceover/beaker.rb'
477
+ - 'lib/puppetlabs-onceover/beaker/spec_helper.rb'
478
+ - 'lib/puppetlabs-onceover/cli.rb'
479
+ - 'lib/puppetlabs-onceover/cli/run.rb'
480
+ - 'lib/puppetlabs-onceover/cli/show.rb'
481
+ - 'lib/puppetlabs-onceover/cli/update.rb'
482
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
483
+ - 'lib/puppetlabs-onceover/logger.rb'
484
+
485
+ # Offense count: 4
486
+ # This cop supports unsafe autocorrection (--autocorrect-all).
487
+ Style/IdenticalConditionalBranches:
488
+ Exclude:
489
+ - 'lib/puppetlabs-onceover/testconfig.rb'
490
+
491
+ # Offense count: 1
492
+ # This cop supports safe autocorrection (--autocorrect).
493
+ # Configuration parameters: AllowIfModifier.
494
+ Style/IfInsideElse:
495
+ Exclude:
496
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
497
+
498
+ # Offense count: 18
499
+ # This cop supports safe autocorrection (--autocorrect).
500
+ Style/IfUnlessModifier:
501
+ Exclude:
502
+ - 'Gemfile'
503
+ - 'features/step_definitions/common.rb'
504
+ - 'lib/puppetlabs-onceover/beaker.rb'
505
+ - 'lib/puppetlabs-onceover/class.rb'
506
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
507
+ - 'lib/puppetlabs-onceover/group.rb'
508
+ - 'lib/puppetlabs-onceover/rake_tasks.rb'
509
+ - 'lib/puppetlabs-onceover/runner.rb'
510
+ - 'lib/puppetlabs-onceover/testconfig.rb'
511
+
512
+ # Offense count: 12
513
+ # This cop supports safe autocorrection (--autocorrect).
514
+ # Configuration parameters: EnforcedStyle.
515
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
516
+ Style/MethodDefParentheses:
517
+ Exclude:
518
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
519
+
520
+ # Offense count: 3
521
+ Style/MixinUsage:
522
+ Exclude:
523
+ - 'lib/puppetlabs-onceover/beaker/spec_helper.rb'
524
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
525
+ - 'lib/puppetlabs-onceover/testconfig.rb'
526
+
527
+ # Offense count: 2
528
+ # This cop supports safe autocorrection (--autocorrect).
529
+ # Configuration parameters: AllowedMethods.
530
+ # AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
531
+ Style/NestedParenthesizedCalls:
532
+ Exclude:
533
+ - 'features/step_definitions/init.rb'
534
+
535
+ # Offense count: 4
536
+ # This cop supports safe autocorrection (--autocorrect).
537
+ # Configuration parameters: EnforcedStyle, MinBodyLength, AllowConsecutiveConditionals.
538
+ # SupportedStyles: skip_modifier_ifs, always
539
+ Style/Next:
540
+ Exclude:
541
+ - 'lib/puppetlabs-onceover/deploy.rb'
542
+ - 'lib/puppetlabs-onceover/rake_tasks.rb'
543
+ - 'lib/puppetlabs-onceover/runner.rb'
544
+ - 'lib/puppetlabs-onceover/testconfig.rb'
545
+
546
+ # Offense count: 6
547
+ # This cop supports safe autocorrection (--autocorrect).
548
+ # Configuration parameters: EnforcedStyle.
549
+ # SupportedStyles: predicate, comparison
550
+ Style/NilComparison:
551
+ Exclude:
552
+ - 'lib/puppetlabs-onceover/deploy.rb'
553
+ - 'lib/puppetlabs-onceover/runner.rb'
554
+ - 'lib/puppetlabs-onceover/testconfig.rb'
555
+
556
+ # Offense count: 1
557
+ # This cop supports safe autocorrection (--autocorrect).
558
+ Style/Not:
559
+ Exclude:
560
+ - 'lib/puppetlabs-onceover/deploy.rb'
561
+
562
+ # Offense count: 1
563
+ # This cop supports unsafe autocorrection (--autocorrect-all).
564
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
565
+ # SupportedStyles: predicate, comparison
566
+ Style/NumericPredicate:
567
+ Exclude:
568
+ - 'spec/**/*'
569
+ - 'lib/puppetlabs-onceover/deploy.rb'
570
+
571
+ # Offense count: 2
572
+ # Configuration parameters: AllowedClasses.
573
+ Style/OneClassPerFile:
574
+ Exclude:
575
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
576
+
577
+ # Offense count: 2
578
+ # This cop supports safe autocorrection (--autocorrect).
579
+ # Configuration parameters: EnforcedStyle.
580
+ # SupportedStyles: lower_case_q, upper_case_q
581
+ Style/PercentQLiterals:
582
+ Exclude:
583
+ - 'features/step_definitions/common.rb'
584
+ - 'features/step_definitions/init.rb'
585
+
586
+ # Offense count: 1
587
+ # This cop supports safe autocorrection (--autocorrect).
588
+ Style/PerlBackrefs:
589
+ Exclude:
590
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
591
+
592
+ # Offense count: 3
593
+ # This cop supports unsafe autocorrection (--autocorrect-all).
594
+ Style/PredicateWithKind:
595
+ Exclude:
596
+ - 'lib/puppetlabs-onceover/group.rb'
597
+ - 'lib/puppetlabs-onceover/test.rb'
598
+
599
+ # Offense count: 8
600
+ # This cop supports unsafe autocorrection (--autocorrect-all).
601
+ # Configuration parameters: EnforcedStyle.
602
+ # SupportedStyles: short, verbose
603
+ Style/PreferredHashMethods:
604
+ Exclude:
605
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
606
+ - 'lib/puppetlabs-onceover/rake_tasks.rb'
607
+ - 'lib/puppetlabs-onceover/runner.rb'
608
+ - 'lib/puppetlabs-onceover/testconfig.rb'
609
+
610
+ # Offense count: 4
611
+ # This cop supports safe autocorrection (--autocorrect).
612
+ Style/RedundantBegin:
613
+ Exclude:
614
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
615
+ - 'lib/puppetlabs-onceover/group.rb'
616
+ - 'lib/puppetlabs-onceover/runner.rb'
617
+
618
+ # Offense count: 4
619
+ # This cop supports unsafe autocorrection (--autocorrect-all).
620
+ Style/RedundantInterpolation:
621
+ Exclude:
622
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
623
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
624
+
625
+ # Offense count: 2
626
+ # This cop supports safe autocorrection (--autocorrect).
627
+ Style/RedundantParentheses:
628
+ Exclude:
629
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
630
+ - 'lib/puppetlabs-onceover/deploy.rb'
631
+
632
+ # Offense count: 3
633
+ # This cop supports safe autocorrection (--autocorrect).
634
+ Style/RedundantPercentQ:
635
+ Exclude:
636
+ - 'features/step_definitions/common.rb'
637
+ - 'features/step_definitions/init.rb'
638
+ - 'features/step_definitions/run.rb'
639
+
640
+ # Offense count: 2
641
+ # This cop supports safe autocorrection (--autocorrect).
642
+ Style/RedundantRegexpCharacterClass:
643
+ Exclude:
644
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
645
+
646
+ # Offense count: 2
647
+ # This cop supports safe autocorrection (--autocorrect).
648
+ Style/RedundantRegexpEscape:
649
+ Exclude:
650
+ - 'features/step_definitions/common.rb'
651
+
652
+ # Offense count: 12
653
+ # This cop supports safe autocorrection (--autocorrect).
654
+ # Configuration parameters: AllowMultipleReturnValues.
655
+ Style/RedundantReturn:
656
+ Exclude:
657
+ - 'features/support/command_helper.rb'
658
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
659
+ - 'lib/puppetlabs-onceover/group.rb'
660
+ - 'lib/puppetlabs-onceover/testconfig.rb'
661
+
662
+ # Offense count: 4
663
+ # This cop supports safe autocorrection (--autocorrect).
664
+ Style/RedundantSelf:
665
+ Exclude:
666
+ - 'lib/puppetlabs-onceover/beaker.rb'
667
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
668
+
669
+ # Offense count: 6
670
+ # This cop supports safe autocorrection (--autocorrect).
671
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
672
+ # SupportedStyles: slashes, percent_r, mixed
673
+ Style/RegexpLiteral:
674
+ Exclude:
675
+ - 'features/step_definitions/run.rb'
676
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
677
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
678
+ - 'lib/puppetlabs-onceover/testconfig.rb'
679
+
680
+ # Offense count: 1
681
+ # This cop supports unsafe autocorrection (--autocorrect-all).
682
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
683
+ # AllowedMethods: present?, blank?, presence, try, try!
684
+ Style/SafeNavigation:
685
+ Exclude:
686
+ - 'lib/puppetlabs-onceover/testconfig.rb'
687
+
688
+ # Offense count: 1
689
+ # This cop supports safe autocorrection (--autocorrect).
690
+ Style/SelfAssignment:
691
+ Exclude:
692
+ - 'features/support/cache_helper.rb'
693
+
694
+ # Offense count: 2
695
+ # This cop supports safe autocorrection (--autocorrect).
696
+ # Configuration parameters: AllowAsExpressionSeparator.
697
+ Style/Semicolon:
698
+ Exclude:
699
+ - 'lib/puppetlabs-onceover/beaker.rb'
700
+
701
+ # Offense count: 1
702
+ # This cop supports safe autocorrection (--autocorrect).
703
+ # Configuration parameters: EnforcedStyle.
704
+ # SupportedStyles: only_raise, only_fail, semantic
705
+ Style/SignalException:
706
+ Exclude:
707
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
708
+
709
+ # Offense count: 1
710
+ # This cop supports unsafe autocorrection (--autocorrect-all).
711
+ Style/SlicingWithRange:
712
+ Exclude:
713
+ - 'features/step_definitions/common.rb'
714
+
715
+ # Offense count: 2
716
+ # This cop supports safe autocorrection (--autocorrect).
717
+ # Configuration parameters: AllowModifier.
718
+ Style/SoleNestedConditional:
719
+ Exclude:
720
+ - 'lib/puppetlabs-onceover/rake_tasks.rb'
721
+ - 'lib/puppetlabs-onceover/runner.rb'
722
+
723
+ # Offense count: 2
724
+ # This cop supports unsafe autocorrection (--autocorrect-all).
725
+ # Configuration parameters: RequireEnglish, EnforcedStyle.
726
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
727
+ Style/SpecialGlobalVars:
728
+ Exclude:
729
+ - 'Rakefile'
730
+ - 'lib/puppetlabs-onceover/deploy.rb'
731
+
732
+ # Offense count: 9
733
+ # This cop supports unsafe autocorrection (--autocorrect-all).
734
+ # Configuration parameters: Mode.
735
+ Style/StringConcatenation:
736
+ Exclude:
737
+ - 'features/support/cache_helper.rb'
738
+ - 'features/support/controlrepo_helper.rb'
739
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
740
+ - 'lib/puppetlabs-onceover/runner.rb'
741
+
742
+ # Offense count: 95
743
+ # This cop supports safe autocorrection (--autocorrect).
744
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
745
+ # SupportedStyles: single_quotes, double_quotes
746
+ Style/StringLiterals:
747
+ Enabled: false
748
+
749
+ # Offense count: 5
750
+ # This cop supports safe autocorrection (--autocorrect).
751
+ # Configuration parameters: MinSize.
752
+ # SupportedStyles: percent, brackets
753
+ Style/SymbolArray:
754
+ EnforcedStyle: brackets
755
+
756
+ # Offense count: 5
757
+ # This cop supports unsafe autocorrection (--autocorrect-all).
758
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
759
+ # AllowedMethods: define_method
760
+ Style/SymbolProc:
761
+ Exclude:
762
+ - 'lib/puppetlabs-onceover/cli/plugins.rb'
763
+ - 'lib/puppetlabs-onceover/testconfig.rb'
764
+ - 'spec/spec_helper.rb'
765
+
766
+ # Offense count: 4
767
+ # This cop supports safe autocorrection (--autocorrect).
768
+ # Configuration parameters: EnforcedStyleForMultiline.
769
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
770
+ Style/TrailingCommaInArguments:
771
+ Exclude:
772
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
773
+ - 'lib/puppetlabs-onceover/vendored_modules.rb'
774
+
775
+ # Offense count: 1
776
+ # This cop supports safe autocorrection (--autocorrect).
777
+ # Configuration parameters: EnforcedStyleForMultiline.
778
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
779
+ Style/TrailingCommaInArrayLiteral:
780
+ Exclude:
781
+ - 'lib/puppetlabs-onceover/deploy.rb'
782
+
783
+ # Offense count: 7
784
+ # This cop supports safe autocorrection (--autocorrect).
785
+ # Configuration parameters: EnforcedStyleForMultiline.
786
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
787
+ Style/TrailingCommaInHashLiteral:
788
+ Exclude:
789
+ - 'lib/puppetlabs-onceover/beaker.rb'
790
+ - 'lib/puppetlabs-onceover/beaker/spec_helper.rb'
791
+ - 'lib/puppetlabs-onceover/rspec/formatters.rb'
792
+
793
+ # Offense count: 1
794
+ # This cop supports safe autocorrection (--autocorrect).
795
+ Style/WhileUntilDo:
796
+ Exclude:
797
+ - 'lib/puppetlabs-onceover/controlrepo.rb'
798
+
799
+ # Offense count: 31
800
+ # This cop supports safe autocorrection (--autocorrect).
801
+ # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
802
+ # URISchemes: http, https
803
+ Layout/LineLength:
804
+ Max: 421