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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81a5056bbf75fb1a2d0203ea5885a278d12300fc339415e5afeeb46ebef8d785
4
- data.tar.gz: e5a03effce21a9d74058016da1dcdf3421c9f9ccb2ea9717b295c8b5f99a16b1
3
+ metadata.gz: 5455c2d1cebdb2d73661f32339bb96c2b47e6d8195e822e90f8a6ec7e70f3ebb
4
+ data.tar.gz: d6c85cc74414509a007961f62bdc42f693ad367119d8b4bd3ed241156fbe1216
5
5
  SHA512:
6
- metadata.gz: 4c7ce30592e319300a0dfe9d864c4194ba1ea6eaf86febb0b0c1b8122ae9f6ec7ab4a7e718a7b0e43a48c64746f9226d4cad83688d6f71871ab9e57282e25d7e
7
- data.tar.gz: 0cb47533c54b7ef3497652a1b4396ea90c53f5cf2ef7e6c9a3a964826b1cf782e75f46cd371ce38de33ae7a7249f9f6f3631d2818014c9acec11aae40dd7d7da
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@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
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@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
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
@@ -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@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
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@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
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.2](https://github.com/voxpupuli/beaker/tree/7.8.2) (2026-09-09)
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.1...7.8.2)
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|solaris/
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
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '7.8.2'
3
+ STRING = '7.8.3'
4
4
  end
5
5
  end
@@ -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
@@ -136,4 +136,6 @@ module PlatformHelpers
136
136
  scientific
137
137
  archlinux
138
138
  ]
139
+
140
+ SOLARISPLATFORMS = %w[solaris10-SPARC solaris11-SPARC]
139
141
  end
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.2
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.16
758
+ rubygems_version: 4.0.20
759
759
  specification_version: 4
760
760
  summary: Let's test Puppet!
761
761
  test_files: []