beaker 7.8.2 → 7.8.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.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/test.yml +2 -2
- data/CHANGELOG.md +10 -2
- data/lib/beaker/host/unix/exec.rb +3 -1
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/host/unix/exec_spec.rb +12 -0
- data/spec/helpers.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5455c2d1cebdb2d73661f32339bb96c2b47e6d8195e822e90f8a6ec7e70f3ebb
|
|
4
|
+
data.tar.gz: d6c85cc74414509a007961f62bdc42f693ad367119d8b4bd3ed241156fbe1216
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b8930a7bbadf2a1d5e5849315b2d8821e5d11d3b29c0f156d2ad1267e14265df07c9309c6862c70cbdc810d7b07103a09754dd25f1b0c6c40a4c24b38ae554a
|
|
7
|
+
data.tar.gz: e8c5c06e24ceaf07cd795b3e817d7460a2be9451d3c264845173171d1c31eca05dcdf0f493bf916ec78f7a0bf835711c1284030f603e369bd16cdc74c9caf235
|
|
@@ -17,7 +17,7 @@ jobs:
|
|
|
17
17
|
steps:
|
|
18
18
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
19
19
|
- name: Install Ruby
|
|
20
|
-
uses: ruby/setup-ruby@
|
|
20
|
+
uses: ruby/setup-ruby@bec3f19a76460dbe12f60def7d1a77585f07516c # v1.322.0
|
|
21
21
|
with:
|
|
22
22
|
ruby-version: 'ruby'
|
|
23
23
|
- name: Build gem
|
|
@@ -96,7 +96,7 @@ jobs:
|
|
|
96
96
|
with:
|
|
97
97
|
name: gem-artifact
|
|
98
98
|
- name: Install Ruby
|
|
99
|
-
uses: ruby/setup-ruby@
|
|
99
|
+
uses: ruby/setup-ruby@bec3f19a76460dbe12f60def7d1a77585f07516c # v1.322.0
|
|
100
100
|
with:
|
|
101
101
|
ruby-version: 'ruby'
|
|
102
102
|
- name: Wait for release to propagate
|
data/.github/workflows/test.yml
CHANGED
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
steps:
|
|
19
19
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
20
20
|
- name: Install Ruby ${{ matrix.ruby }}
|
|
21
|
-
uses: ruby/setup-ruby@
|
|
21
|
+
uses: ruby/setup-ruby@bec3f19a76460dbe12f60def7d1a77585f07516c # v1.322.0
|
|
22
22
|
with:
|
|
23
23
|
ruby-version: '4.0'
|
|
24
24
|
bundler-cache: true
|
|
@@ -40,7 +40,7 @@ jobs:
|
|
|
40
40
|
steps:
|
|
41
41
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
42
42
|
- name: Install Ruby ${{ matrix.ruby }}
|
|
43
|
-
uses: ruby/setup-ruby@
|
|
43
|
+
uses: ruby/setup-ruby@bec3f19a76460dbe12f60def7d1a77585f07516c # v1.322.0
|
|
44
44
|
with:
|
|
45
45
|
ruby-version: ${{ matrix.ruby }}
|
|
46
46
|
bundler-cache: true
|
data/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
## [7.8.
|
|
5
|
+
## [7.8.3](https://github.com/voxpupuli/beaker/tree/7.8.3) (2026-09-17)
|
|
6
6
|
|
|
7
|
-
[Full Changelog](https://github.com/voxpupuli/beaker/compare/v7.8.
|
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/v7.8.2...7.8.3)
|
|
8
|
+
|
|
9
|
+
**Fixed bugs:**
|
|
10
|
+
|
|
11
|
+
- Fix Solaris sshd\_config editing in ssh\_permit\_user\_environment [\#2029](https://github.com/voxpupuli/beaker/pull/2029) ([shubhamshinde360](https://github.com/shubhamshinde360))
|
|
12
|
+
|
|
13
|
+
## [v7.8.2](https://github.com/voxpupuli/beaker/tree/v7.8.2) (2026-09-09)
|
|
14
|
+
|
|
15
|
+
[Full Changelog](https://github.com/voxpupuli/beaker/compare/v7.8.1...v7.8.2)
|
|
8
16
|
|
|
9
17
|
**Fixed bugs:**
|
|
10
18
|
|
|
@@ -300,11 +300,13 @@ module Unix::Exec
|
|
|
300
300
|
# (from {#ssh_service_restart}).
|
|
301
301
|
def ssh_permit_user_environment
|
|
302
302
|
case self['platform']
|
|
303
|
-
when /amazon|debian|ubuntu|archlinux|el-|centos|fedora|redhat|oracle|scientific|opensuse|sles
|
|
303
|
+
when /amazon|debian|ubuntu|archlinux|el-|centos|fedora|redhat|oracle|scientific|opensuse|sles/
|
|
304
304
|
directory = tmpdir
|
|
305
305
|
exec(Beaker::Command.new("sed -e 's/^PermitUserEnvironment .*/PermitUserEnvironment yes/' -e t -e '1s/^/PermitUserEnvironment yes\\n/' /etc/ssh/sshd_config > #{directory}/sshd_config.permit"))
|
|
306
306
|
exec(Beaker::Command.new("mv #{directory}/sshd_config.permit /etc/ssh/sshd_config"))
|
|
307
307
|
exec(Beaker::Command.new("echo '' >/etc/environment")) if self['platform'].include?('ubuntu-')
|
|
308
|
+
when /solaris/
|
|
309
|
+
exec(Beaker::Command.new("perl -i -0777 -pe 's/^#?PermitUserEnvironment\\b[^\\n]*/PermitUserEnvironment yes/m or s/\\z/PermitUserEnvironment yes\\n/' /etc/ssh/sshd_config"))
|
|
308
310
|
when /(free|open)bsd/
|
|
309
311
|
exec(Beaker::Command.new("sudo perl -pi -e 's/^#?PermitUserEnvironment no/PermitUserEnvironment yes/' /etc/ssh/sshd_config"), { :pty => true })
|
|
310
312
|
else
|
data/lib/beaker/version.rb
CHANGED
|
@@ -95,6 +95,18 @@ module Beaker
|
|
|
95
95
|
expect { instance.ssh_permit_user_environment }.not_to raise_error
|
|
96
96
|
end
|
|
97
97
|
end
|
|
98
|
+
|
|
99
|
+
context 'on Solaris' do
|
|
100
|
+
PlatformHelpers::SOLARISPLATFORMS.each do |platform|
|
|
101
|
+
it "calls the correct commands for #{platform}" do
|
|
102
|
+
opts['platform'] = platform
|
|
103
|
+
expect(instance).to receive(:exec).once
|
|
104
|
+
expect(Beaker::Command).to receive(:new).with("perl -i -0777 -pe 's/^#?PermitUserEnvironment\\b[^\\n]*/PermitUserEnvironment yes/m or s/\\z/PermitUserEnvironment yes\\n/' /etc/ssh/sshd_config")
|
|
105
|
+
expect(instance).to receive(:ssh_service_restart)
|
|
106
|
+
expect { instance.ssh_permit_user_environment }.not_to raise_error
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
98
110
|
end
|
|
99
111
|
|
|
100
112
|
it 'raises an error on unsupported platforms' do
|
data/spec/helpers.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.8.
|
|
4
|
+
version: 7.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppet
|
|
@@ -755,7 +755,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
755
755
|
- !ruby/object:Gem::Version
|
|
756
756
|
version: '0'
|
|
757
757
|
requirements: []
|
|
758
|
-
rubygems_version: 4.0.
|
|
758
|
+
rubygems_version: 4.0.20
|
|
759
759
|
specification_version: 4
|
|
760
760
|
summary: Let's test Puppet!
|
|
761
761
|
test_files: []
|