Skip to content

Commit 37e1761

Browse files
authored
Merge pull request #373 from voxpupuli/modulesync
modulesync 7.0.0
2 parents a9e11b3 + b9990f6 commit 37e1761

File tree

9 files changed

+17
-14
lines changed

9 files changed

+17
-14
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'

.rubocop.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
2-
inherit_from: .rubocop_todo.yml
3-
42
# Managed by modulesync - DO NOT EDIT
53
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
64

5+
inherit_from: .rubocop_todo.yml
76
inherit_gem:
87
voxpupuli-test: rubocop.yml

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/provider/selinux_fcontext/semanage.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ def self.prefetch(resources)
9090
def create
9191
# is there really no way to have a provider-global helper function cleanly?
9292
args = ['fcontext', '-a', '-t', @resource[:seltype], '-f', @resource[:file_type]]
93-
args.concat(['-s', @resource[:seluser]]) if @resource[:seluser]
93+
args.push('-s', @resource[:seluser]) if @resource[:seluser]
9494
args.push(@resource[:pathspec])
9595
semanage(*args)
9696
end
9797

9898
def destroy
9999
args = ['fcontext', '-d', '-t', @property_hash[:seltype], '-f', @property_hash[:file_type]]
100-
args.concat(['-s', @property_hash[:seluser]]) if @property_hash[:seluser]
100+
args.push('-s', @property_hash[:seluser]) if @property_hash[:seluser]
101101
args.push(@property_hash[:pathspec])
102102
semanage(*args)
103103
end

spec/spec_helper.rb

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

spec/unit/puppet/provider/selinux_fcontext/semanage_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def selinux_file_context_path
147147

148148
it 'finds provider for /foobar' do
149149
p = resources['/foobar_a'].provider
150-
expect(p).not_to eq(nil)
150+
expect(p).not_to be_nil
151151
end
152152

153153
context 'has the correct attributes' do
@@ -174,7 +174,7 @@ def selinux_file_context_path
174174

175175
it 'finds provider for /var/log' do
176176
p = resources['/var/log_a'].provider
177-
expect(p).not_to eq(nil)
177+
expect(p).not_to be_nil
178178
end
179179

180180
context 'has the correct attributes from the system policy' do

spec/unit/puppet/provider/selinux_fcontext_equivalence/semanage_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def selinux_file_context_subs_path
102102

103103
it 'finds provider for /foobar' do
104104
p = resources['/foobar'].provider
105-
expect(p).not_to eq(nil)
105+
expect(p).not_to be_nil
106106
end
107107

108108
context 'has the correct target' do

spec/unit/puppet/provider/selinux_permissive/semanage_spec.rb

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

9191
it 'matches the provider' do
9292
semanage_provider.prefetch('test_t' => resource, 'tlp_t' => permissive.new(seltype: 'tlp_t', ensure: :present))
93-
expect(resource.provider.exists?).to eq(true)
93+
expect(resource.provider.exists?).to be(true)
9494
end
9595
end
9696

0 commit comments

Comments
 (0)