Skip to content

Commit 61aa9b1

Browse files
authored
Merge pull request #392 from voxpupuli/modulesync
modulesync 7.0.0
2 parents e7af37a + 5cf9b17 commit 61aa9b1

File tree

7 files changed

+15
-11
lines changed

7 files changed

+15
-11
lines changed

.github/CONTRIBUTING.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,21 @@ simple tests against it after applying the module. You can run this
232232
with:
233233

234234
```sh
235-
BEAKER_setfile=debian11-64 bundle exec rake beaker
235+
BEAKER_PUPPET_COLLECTION=puppet7 BEAKER_setfile=debian11-64 bundle exec rake beaker
236236
```
237237

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

241-
* ubuntu1804
242241
* ubuntu2004
243-
* debian10
242+
* ubuntu2204
244243
* debian11
245244
* centos7
246245
* centos8
246+
* centos9
247+
* almalinux8
248+
* almalinux9
249+
* fedora36
247250

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

.msync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Managed by modulesync - DO NOT EDIT
33
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
44

5-
modulesync_config_version: '6.0.0'
5+
modulesync_config_version: '7.0.0'

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
55

66
group :test do
7-
gem 'voxpupuli-test', '~> 6.0', :require => false
7+
gem 'voxpupuli-test', '~> 7.0', :require => false
88
gem 'coveralls', :require => false
99
gem 'simplecov-console', :require => false
1010
gem 'puppet_metadata', '~> 3.0', :require => false

lib/puppet/type/openldap_database.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,17 @@ def insync?(is)
9494
when %r{^\{MD5\}.+}
9595
"{MD5}#{Digest::MD5.hexdigest(should)}" == is
9696
when %r{^\{SMD5\}.+}
97-
salt = is[16..-1]
97+
salt = is[16..]
9898
md5_hash_with_salt = "#{Digest::MD5.digest(should + salt)}#{salt}"
9999
is == "{SMD5}#{[md5_hash_with_salt].pack('m').delete("\n")}"
100100
when %r{^\{SSHA\}.+}
101101
decoded = Base64.decode64(is.gsub(%r{^\{SSHA\}}, ''))
102-
salt = decoded[20..-1]
102+
salt = decoded[20..]
103103
"{SSHA}#{Base64.encode64("#{Digest::SHA1.digest("#{should}#{salt}")}#{salt}").chomp}" == is
104104
when %r{^\{SHA\}.+}
105105
"{SHA}#{Digest::SHA1.hexdigest(should)}" == is
106106
when %r{^\{(SHA(256|384|512))\}}
107-
matches = is.match("^\{(SHA[\\d]{,3})\}")
107+
matches = is.match('^{(SHA[\\d]{,3})}')
108108
raise ArgumentError, "Invalid password format: #{is}" if matches.nil?
109109

110110
crypto = matches[1]

spec/functions/openldap_password_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# rubocop:disable RSpec/DescribeSymbol
66
describe :openldap_password do
7-
it { is_expected.not_to eq(nil) }
7+
it { is_expected.not_to be_nil }
88

99
it 'fails with wrong number of arguments' do
1010
is_expected.to run.with_params.and_raise_error(StandardError)

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@
1717
add_custom_fact name.to_sym, value
1818
end
1919
end
20+
Dir['./spec/support/spec/**/*.rb'].sort.each { |f| require f }

spec/spec_helper_acceptance.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
require 'voxpupuli/acceptance/spec_helper_acceptance'
77

8-
configure_beaker
8+
configure_beaker(modules: :metadata)
99

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

0 commit comments

Comments
 (0)