Skip to content

Commit

Permalink
Merge pull request #60 from voxpupuli/modulesync
Browse files Browse the repository at this point in the history
modulesync 7.0.0
  • Loading branch information
smortex authored Aug 18, 2023
2 parents db2d104 + ad9fa8c commit b5f7f7b
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 24 deletions.
11 changes: 7 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,18 +232,21 @@ simple tests against it after applying the module. You can run this
with:

```sh
BEAKER_setfile=debian11-64 bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet7 BEAKER_setfile=debian11-64 bundle exec rake beaker
```

You can replace the string `debian10` with any common operating system.
You can replace the string `debian11` with any common operating system.
The following strings are known to work:

* ubuntu1804
* ubuntu2004
* debian10
* ubuntu2204
* debian11
* centos7
* centos8
* centos9
* almalinux8
* almalinux9
* fedora36

For more information and tips & tricks, see [voxpupuli-acceptance's documentation](https://github.com/voxpupuli/voxpupuli-acceptance#running-tests).

Expand Down
2 changes: 1 addition & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

modulesync_config_version: '6.0.0'
modulesync_config_version: '7.0.0'
17 changes: 6 additions & 11 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-05-05 20:18:17 UTC using RuboCop version 1.22.3.
# on 2023-08-17 21:29:27 UTC using RuboCop version 1.50.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand All @@ -13,15 +13,14 @@ Lint/ConstantDefinitionInBlock:
Exclude:
- 'spec/unit/puppet/provider/augeasprovider/default_spec.rb'

# Offense count: 6
# Offense count: 5
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
Exclude:
- 'spec/unit/puppet/provider/augeasprovider/default_spec.rb'

# Offense count: 1
# Configuration parameters: IgnoreImplicitReferences.
Lint/ShadowedArgument:
Lint/UselessRescue:
Exclude:
- 'lib/puppet/provider/augeasprovider/default.rb'

Expand All @@ -35,24 +34,20 @@ RSpec/LeakyConstantDeclaration:
Exclude:
- 'spec/unit/puppet/provider/augeasprovider/default_spec.rb'

# Offense count: 100
# Offense count: 96
# Configuration parameters: .
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
EnforcedStyle: receive

# Offense count: 4
RSpec/RepeatedExampleGroupDescription:
Exclude:
- 'spec/unit/puppet/provider/augeasprovider/default_spec.rb'

# Offense count: 46
RSpec/StubbedMock:
Exclude:
- 'spec/unit/puppet/provider/augeasprovider/default_spec.rb'

# Offense count: 1
# Configuration parameters: MinBodyLength.
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
Style/GuardClause:
Exclude:
- 'lib/puppet/provider/augeasprovider/default.rb'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source ENV['GEM_SOURCE'] || 'https://rubygems.org'

group :test do
gem 'voxpupuli-test', '~> 6.0', :require => false
gem 'voxpupuli-test', '~> 7.0', :require => false
gem 'coveralls', :require => false
gem 'simplecov-console', :require => false
gem 'puppet_metadata', '~> 3.0', :require => false
Expand Down
12 changes: 5 additions & 7 deletions spec/lib/augeas_spec/augparse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ def augparse(file, lens, result = '?')

# Test module, Augeas reads back in the input file
testaug = "#{dir}/test_augeasproviders.aug"
File.open(testaug, 'w') do |tf|
tf.write(<<~EOS)
module Test_Augeasproviders =
test #{lens} get Sys.read_file "#{dir}/input" =
#{result}
EOS
end
File.write(testaug, <<~EOS)
module Test_Augeasproviders =
test #{lens} get Sys.read_file "#{dir}/input" =
#{result}
EOS

output = `augparse --notypecheck #{testaug} 2>&1`
raise AugeasSpec::Error, "augparse failed:\n#{output}" unless $CHILD_STATUS == 0 && output.empty?
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
end

require 'spec_helper_local'
Dir['./spec/support/spec/**/*.rb'].sort.each { |f| require f }

0 comments on commit b5f7f7b

Please sign in to comment.