onceover 3.22.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +17 -0
  3. data/.github/workflows/release.yaml +25 -17
  4. data/.github/workflows/tests.yaml +30 -4
  5. data/.gitignore +2 -1
  6. data/.rubocop.yml +4 -704
  7. data/.rubocop_todo.yml +828 -0
  8. data/CHANGELOG.md +1036 -0
  9. data/Gemfile +7 -1
  10. data/LICENSE +202 -0
  11. data/README.md +81 -35
  12. data/Rakefile +23 -14
  13. data/features/auto_vendored.feature +27 -0
  14. data/features/step_definitions/common.rb +5 -5
  15. data/features/support/cache_helper.rb +0 -1
  16. data/features/support/command_helper.rb +0 -2
  17. data/features/support/controlrepo_helper.rb +0 -2
  18. data/lib/onceover/beaker/spec_helper.rb +7 -7
  19. data/lib/onceover/beaker.rb +9 -12
  20. data/lib/onceover/cli/run.rb +1 -0
  21. data/lib/onceover/controlrepo.rb +19 -24
  22. data/lib/onceover/deploy.rb +29 -2
  23. data/lib/onceover/group.rb +1 -3
  24. data/lib/onceover/logger.rb +3 -3
  25. data/lib/onceover/node.rb +0 -2
  26. data/lib/onceover/rake_tasks.rb +9 -4
  27. data/lib/onceover/rspec/formatters.rb +3 -4
  28. data/lib/onceover/test.rb +1 -2
  29. data/lib/onceover/testconfig.rb +2 -2
  30. data/lib/onceover/vendored_modules.rb +186 -0
  31. data/onceover.gemspec +24 -21
  32. data/spec/fixtures/controlrepos/caching/spec/factsets/README.md +1 -1
  33. data/spec/fixtures/controlrepos/caching/spec/pre_conditions/README.md +1 -1
  34. data/spec/fixtures/controlrepos/factsets/spec/factsets/README.md +1 -1
  35. data/spec/fixtures/controlrepos/puppet_controlrepo/Gemfile +1 -1
  36. data/spec/fixtures/controlrepos/vendored/Puppetfile +3 -0
  37. data/spec/fixtures/controlrepos/vendored/Puppetfile.cron +5 -0
  38. data/spec/fixtures/controlrepos/vendored/environment.conf +1 -0
  39. data/spec/fixtures/controlrepos/vendored/site-modules/role/manifests/cron.pp +9 -0
  40. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/augeas_core-puppet_agent-7.30.0.json +1 -0
  41. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/augeas_core-puppet_agent-8.6.0.json +1 -0
  42. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/cron_core-puppet_agent-7.30.0.json +1 -0
  43. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/cron_core-puppet_agent-8.6.0.json +1 -0
  44. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/host_core-puppet_agent-7.30.0.json +1 -0
  45. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/host_core-puppet_agent-8.6.0.json +1 -0
  46. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/mount_core-puppet_agent-7.30.0.json +1 -0
  47. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/mount_core-puppet_agent-8.6.0.json +1 -0
  48. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/repo_tree-puppet_agent-7.30.0.json +1 -0
  49. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/repo_tree-puppet_agent-8.6.0.json +1 -0
  50. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/scheduled_task-puppet_agent-7.30.0.json +1 -0
  51. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/scheduled_task-puppet_agent-8.6.0.json +1 -0
  52. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/selinux_core-puppet_agent-7.30.0.json +1 -0
  53. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/selinux_core-puppet_agent-8.6.0.json +1 -0
  54. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/sshkeys_core-puppet_agent-7.30.0.json +1 -0
  55. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/sshkeys_core-puppet_agent-8.6.0.json +1 -0
  56. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/yumrepo_core-puppet_agent-7.30.0.json +1 -0
  57. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/yumrepo_core-puppet_agent-8.6.0.json +1 -0
  58. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/zfs_core-puppet_agent-7.30.0.json +1 -0
  59. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/zfs_core-puppet_agent-8.6.0.json +1 -0
  60. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/zone_core-puppet_agent-7.30.0.json +1 -0
  61. data/spec/fixtures/controlrepos/vendored/spec/vendored_modules/zone_core-puppet_agent-8.6.0.json +1 -0
  62. data/spec/onceover/controlrepo_spec.rb +1 -1
  63. data/templates/factsets_README.md.erb +1 -1
  64. data/templates/pre_conditions_README.md.erb +1 -1
  65. metadata +56 -9
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-scheduled_task.git","ref":"refs/tags/v3.2.0"}
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-scheduled_task.git","ref":"refs/tags/v3.2.0"}
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-selinux_core.git","ref":"refs/tags/v1.4.0"}
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-selinux_core.git","ref":"refs/tags/v1.4.0"}
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-sshkeys_core.git","ref":"refs/tags/v2.5.0"}
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-sshkeys_core.git","ref":"refs/tags/v2.5.0"}
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-yumrepo_core.git","ref":"refs/tags/v1.2.0"}
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-yumrepo_core.git","ref":"refs/tags/v2.1.0"}
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-zfs_core.git","ref":"refs/tags/v1.5.0"}
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-zfs_core.git","ref":"refs/tags/v1.5.0"}
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-zone_core.git","ref":"refs/tags/v1.2.0"}
@@ -0,0 +1 @@
1
+ {"url":"git@github.com:puppetlabs/puppetlabs-zone_core.git","ref":"refs/tags/v1.2.0"}
@@ -6,7 +6,7 @@ describe "Onceover::Controlrepo" do
6
6
  before do
7
7
  @repo = Onceover::Controlrepo.new(
8
8
  {
9
- path:'spec/fixtures/controlrepos/minimal'
9
+ path: 'spec/fixtures/controlrepos/minimal'
10
10
  }
11
11
  )
12
12
  end
@@ -4,4 +4,4 @@ This directory is where we put any custom factsets that we want to use. They can
4
4
 
5
5
  **Hot tip:** If you already have factsets in here when you run `onceover init` they will be picked up and added to the config file Automatically
6
6
 
7
- More info: https://github.com/dylanratcliffe/onceover#factsets
7
+ More info: https://github.com/voxpupuli/onceover#factsets
@@ -21,4 +21,4 @@ service { 'pe-puppetserver':
21
21
 
22
22
  This will mean that the `pe-puppetserver` service is in the catalog for spec testing and will even allow you to try to restart it during acceptance tests without the service actually being present.
23
23
 
24
- More info: https://github.com/dylanratcliffe/onceover#using-workarounds
24
+ More info: https://github.com/voxpupuli/onceover#using-workarounds
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.22.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe
8
- autorequire:
8
+ - Vox Pupuli
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2024-03-16 00:00:00.000000000 Z
12
+ date: 2024-11-21 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: backticks
@@ -248,9 +249,23 @@ dependencies:
248
249
  - - ">="
249
250
  - !ruby/object:Gem::Version
250
251
  version: 0.5.0
252
+ - !ruby/object:Gem::Dependency
253
+ name: voxpupuli-rubocop
254
+ requirement: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - "~>"
257
+ - !ruby/object:Gem::Version
258
+ version: 3.0.0
259
+ type: :development
260
+ prerelease: false
261
+ version_requirements: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - "~>"
264
+ - !ruby/object:Gem::Version
265
+ version: 3.0.0
251
266
  description: Automatically generates tests for your Puppet code
252
267
  email:
253
- - dylan.ratcliffe@puppet.com
268
+ - voxpupuli@groups.io
254
269
  executables:
255
270
  - onceover
256
271
  extensions: []
@@ -258,12 +273,16 @@ extra_rdoc_files: []
258
273
  files:
259
274
  - ".devcontainer/devcontainer.json"
260
275
  - ".gitattributes"
276
+ - ".github/dependabot.yml"
261
277
  - ".github/workflows/release.yaml"
262
278
  - ".github/workflows/tests.yaml"
263
279
  - ".gitignore"
264
280
  - ".rubocop.yml"
281
+ - ".rubocop_todo.yml"
265
282
  - ".vscode/extensions.json"
283
+ - CHANGELOG.md
266
284
  - Gemfile
285
+ - LICENSE
267
286
  - README.md
268
287
  - Rakefile
269
288
  - bin/onceover
@@ -299,6 +318,7 @@ files:
299
318
  - factsets/solaris-10_u9-sparc-64.json
300
319
  - factsets/solaris-11.2-sparc-64.json
301
320
  - factsets/windows-10-64.json
321
+ - features/auto_vendored.feature
302
322
  - features/cache.feature
303
323
  - features/factsets.feature
304
324
  - features/formatting.feature
@@ -335,6 +355,7 @@ files:
335
355
  - lib/onceover/runner.rb
336
356
  - lib/onceover/test.rb
337
357
  - lib/onceover/testconfig.rb
358
+ - lib/onceover/vendored_modules.rb
338
359
  - onceover.gemspec
339
360
  - spec/fixtures/controlrepos/basic/Puppetfile
340
361
  - spec/fixtures/controlrepos/basic/environment.conf
@@ -516,6 +537,32 @@ files:
516
537
  - spec/fixtures/controlrepos/puppet_controlrepo/spec/unit/00_parse_spec.rb
517
538
  - spec/fixtures/controlrepos/puppet_controlrepo/spec/unit/01_linting_spec_example.rb
518
539
  - spec/fixtures/controlrepos/puppet_controlrepo/spec/unit/03_puppetfile_spec_example.rb
540
+ - spec/fixtures/controlrepos/vendored/Puppetfile
541
+ - spec/fixtures/controlrepos/vendored/Puppetfile.cron
542
+ - spec/fixtures/controlrepos/vendored/environment.conf
543
+ - spec/fixtures/controlrepos/vendored/site-modules/role/manifests/cron.pp
544
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/augeas_core-puppet_agent-7.30.0.json
545
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/augeas_core-puppet_agent-8.6.0.json
546
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/cron_core-puppet_agent-7.30.0.json
547
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/cron_core-puppet_agent-8.6.0.json
548
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/host_core-puppet_agent-7.30.0.json
549
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/host_core-puppet_agent-8.6.0.json
550
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/mount_core-puppet_agent-7.30.0.json
551
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/mount_core-puppet_agent-8.6.0.json
552
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/repo_tree-puppet_agent-7.30.0.json
553
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/repo_tree-puppet_agent-8.6.0.json
554
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/scheduled_task-puppet_agent-7.30.0.json
555
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/scheduled_task-puppet_agent-8.6.0.json
556
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/selinux_core-puppet_agent-7.30.0.json
557
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/selinux_core-puppet_agent-8.6.0.json
558
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/sshkeys_core-puppet_agent-7.30.0.json
559
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/sshkeys_core-puppet_agent-8.6.0.json
560
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/yumrepo_core-puppet_agent-7.30.0.json
561
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/yumrepo_core-puppet_agent-8.6.0.json
562
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/zfs_core-puppet_agent-7.30.0.json
563
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/zfs_core-puppet_agent-8.6.0.json
564
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/zone_core-puppet_agent-7.30.0.json
565
+ - spec/fixtures/controlrepos/vendored/spec/vendored_modules/zone_core-puppet_agent-8.6.0.json
519
566
  - spec/fixtures/controlrepos/windows/Gemfile
520
567
  - spec/fixtures/controlrepos/windows/Puppetfile
521
568
  - spec/fixtures/controlrepos/windows/environment.conf
@@ -541,11 +588,11 @@ files:
541
588
  - templates/spec_helper_acceptance.rb.erb
542
589
  - templates/test_spec.rb.erb
543
590
  - templates/testconfig_Rakefile.erb
544
- homepage: https://github.com/dylanratcliffe/onceover
591
+ homepage: https://github.com/voxpupuli/onceover
545
592
  licenses:
546
593
  - Apache-2.0
547
594
  metadata: {}
548
- post_install_message:
595
+ post_install_message:
549
596
  rdoc_options: []
550
597
  require_paths:
551
598
  - lib
@@ -553,15 +600,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
553
600
  requirements:
554
601
  - - ">="
555
602
  - !ruby/object:Gem::Version
556
- version: '0'
603
+ version: '2.7'
557
604
  required_rubygems_version: !ruby/object:Gem::Requirement
558
605
  requirements:
559
606
  - - ">="
560
607
  - !ruby/object:Gem::Version
561
608
  version: '0'
562
609
  requirements: []
563
- rubygems_version: 3.5.3
564
- signing_key:
610
+ rubygems_version: 3.5.22
611
+ signing_key:
565
612
  specification_version: 4
566
613
  summary: Testing tools for Puppet controlrepos
567
614
  test_files: []