beaker 4.31.0 → 4.32.0
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 +3 -2
- data/CHANGELOG.md +21 -1
- data/Gemfile +2 -2
- data/HISTORY.md +11 -1
- data/Rakefile +0 -2
- data/lib/beaker/host.rb +1 -6
- data/lib/beaker/host_prebuilt_steps.rb +4 -4
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/host_spec.rb +18 -10
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c00ec9028362af1b8966b03ad80797dd3e1d2e16bee268482568f399cf94874
|
|
4
|
+
data.tar.gz: be92467b94636b65b1b2f37543ca26426d920f36e0182c12fe3fe8a98ef060e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f65220ed8d6144a1a1438f91d7a79a0fb211ac1f3564167da1ceec48c588dc5b5b91c038e3b7ff513373e95d646eba2f47ff8b36e3f424f8450bc9d982e0cdc
|
|
7
|
+
data.tar.gz: 91c0890e82571154da9b32fd8a69a6d1545cd505922f24d0bf16e4f1c228c748ff9e2d74de74c5b8529c769b2e2179531645eb0a9f261e4580d09fb86e60bb1c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [4.
|
|
3
|
+
## [4.32.0](https://github.com/voxpupuli/beaker/tree/4.32.0) (2021-12-06)
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Arch Linux: install net-tools and openssh ([#1722](https://github.com/voxpupuli/beaker/pull/1722))
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Initial EL9 support ([#1719](https://github.com/voxpupuli/beaker/pull/1719))
|
|
12
|
+
|
|
13
|
+
## [4.31.0](https://github.com/voxpupuli/beaker/tree/4.31.0) (2021-11-02)
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- (BKR-1690) Fix localhost logging ([#1691](https://github.com/voxpupuli/beaker/pull/1691))
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Made fips_check? more generally applicable ([#1717]https://github.com/voxpupuli/beaker/pull/1717))
|
|
22
|
+
|
|
23
|
+
## [4.30.0](https://github.com/voxpupuli/beaker/tree/4.30.0) (2021-07-21)
|
|
4
24
|
|
|
5
25
|
### Fixed
|
|
6
26
|
|
data/Gemfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
|
2
2
|
|
|
3
3
|
gemspec
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
# This section of the gemspec is for Puppet CI; it will pull in
|
|
6
6
|
# a supported beaker library for testing to overwrite the gemspec if
|
|
7
7
|
# a corresponding ENV var is found. Currently, the only supported lib
|
|
@@ -21,7 +21,7 @@ if ENV['BEAKER_PE_PR_REPO_URL']
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
group :release do
|
|
24
|
-
gem 'github_changelog_generator',
|
|
24
|
+
gem 'github_changelog_generator', require: false
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
group :coverage, optional: ENV['COVERAGE']!='yes' do
|
data/HISTORY.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
## [4.
|
|
1
|
+
## [4.31.0](https://github.com/voxpupuli/beaker/tree/4.31.0) (2021-11-02)
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
- (BKR-1690) Fix localhost logging ([#1691](https://github.com/voxpupuli/beaker/pull/1691))
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Made fips_check? more generally applicable ([#1717]https://github.com/voxpupuli/beaker/pull/1717))
|
|
10
|
+
|
|
11
|
+
## [4.30.0](https://github.com/voxpupuli/beaker/tree/4.30.0) (2021-07-21)
|
|
2
12
|
|
|
3
13
|
### Fixed
|
|
4
14
|
|
data/Rakefile
CHANGED
|
@@ -337,8 +337,6 @@ begin
|
|
|
337
337
|
config.exclude_labels = %w{duplicate question invalid wontfix wont-fix skip-changelog}
|
|
338
338
|
config.user = 'voxpupuli'
|
|
339
339
|
config.project = 'beaker'
|
|
340
|
-
config.max_issues = 50
|
|
341
|
-
config.since_tag = "4.30.0"
|
|
342
340
|
gem_version = Gem::Specification.load("#{config.project}.gemspec").version
|
|
343
341
|
config.future_release = gem_version
|
|
344
342
|
end
|
data/lib/beaker/host.rb
CHANGED
|
@@ -211,13 +211,8 @@ module Beaker
|
|
|
211
211
|
end
|
|
212
212
|
|
|
213
213
|
# Returns true if the host is running in FIPS mode.
|
|
214
|
-
#
|
|
215
|
-
# We currently only test FIPS mode on Redhat 7. Other detection
|
|
216
|
-
# modes should be added here if we expand FIPS support to other
|
|
217
|
-
# platforms.
|
|
218
214
|
def fips_mode?
|
|
219
|
-
|
|
220
|
-
when /el-7/
|
|
215
|
+
if self.file_exist?('/proc/sys/crypto/fips_enabled')
|
|
221
216
|
begin
|
|
222
217
|
execute("cat /proc/sys/crypto/fips_enabled") == "1"
|
|
223
218
|
rescue Beaker::Host::CommandFailure
|
|
@@ -17,7 +17,7 @@ module Beaker
|
|
|
17
17
|
UNIX_PACKAGES = ['curl', 'ntpdate']
|
|
18
18
|
FREEBSD_PACKAGES = ['curl', 'perl5|perl']
|
|
19
19
|
OPENBSD_PACKAGES = ['curl']
|
|
20
|
-
ARCHLINUX_PACKAGES = ['curl', 'ntp']
|
|
20
|
+
ARCHLINUX_PACKAGES = ['curl', 'ntp', 'net-tools', 'openssh']
|
|
21
21
|
WINDOWS_PACKAGES = ['curl']
|
|
22
22
|
PSWINDOWS_PACKAGES = []
|
|
23
23
|
SLES10_PACKAGES = ['curl']
|
|
@@ -53,7 +53,7 @@ module Beaker
|
|
|
53
53
|
logger.notify "NTP date succeeded on #{host}"
|
|
54
54
|
else
|
|
55
55
|
case
|
|
56
|
-
when host['platform'] =~ /el-
|
|
56
|
+
when host['platform'] =~ /el-[89]|fedora/
|
|
57
57
|
ntp_command = "chronyc add server #{ntp_server} prefer trust;chronyc makestep;chronyc burst 1/2"
|
|
58
58
|
when host['platform'] =~ /opensuse-|sles-/
|
|
59
59
|
ntp_command = "sntp #{ntp_server}"
|
|
@@ -102,7 +102,7 @@ module Beaker
|
|
|
102
102
|
logger = opts[:logger]
|
|
103
103
|
block_on host do |host|
|
|
104
104
|
case
|
|
105
|
-
when host['platform'] =~ /el-
|
|
105
|
+
when host['platform'] =~ /el-[89]/
|
|
106
106
|
check_and_install_packages_if_needed(host, RHEL8_PACKAGES)
|
|
107
107
|
when host['platform'] =~ /sles-10/
|
|
108
108
|
check_and_install_packages_if_needed(host, SLES10_PACKAGES)
|
|
@@ -452,7 +452,7 @@ module Beaker
|
|
|
452
452
|
#restart sshd
|
|
453
453
|
if host['platform'] =~ /debian|ubuntu|cumulus/
|
|
454
454
|
host.exec(Command.new("sudo su -c \"service ssh restart\""), {:pty => true})
|
|
455
|
-
elsif host['platform'] =~ /arch|centos
|
|
455
|
+
elsif host['platform'] =~ /arch|(centos|el|redhat)-[789]|fedora-(1[4-9]|2[0-9]|3[0-9])/
|
|
456
456
|
host.exec(Command.new("sudo -E systemctl restart sshd.service"), {:pty => true})
|
|
457
457
|
elsif host['platform'] =~ /centos|el-|redhat|fedora|eos/
|
|
458
458
|
host.exec(Command.new("sudo -E /sbin/service sshd reload"), {:pty => true})
|
data/lib/beaker/version.rb
CHANGED
data/spec/beaker/host_spec.rb
CHANGED
|
@@ -832,21 +832,29 @@ module Beaker
|
|
|
832
832
|
end
|
|
833
833
|
|
|
834
834
|
describe "#fips_mode?" do
|
|
835
|
-
it 'returns false on non-
|
|
835
|
+
it 'returns false on non-linux hosts' do
|
|
836
836
|
@platform = 'windows'
|
|
837
|
+
expect(host).to receive(:file_exist?).with('/proc/sys/crypto/fips_enabled').and_return(false)
|
|
837
838
|
expect(host.fips_mode?).to be false
|
|
838
839
|
end
|
|
839
840
|
|
|
840
|
-
|
|
841
|
-
@platform = 'el-7'
|
|
842
|
-
expect(host).to receive(:execute).with("cat /proc/sys/crypto/fips_enabled").and_return("1")
|
|
843
|
-
expect(host.fips_mode?).to be true
|
|
844
|
-
end
|
|
841
|
+
platforms = ['el-7', 'el-8', 'centos']
|
|
845
842
|
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
843
|
+
platforms.each do |platform|
|
|
844
|
+
context "on #{platform}" do
|
|
845
|
+
it 'returns true when the `fips_enabled` file is present and contains "1"' do
|
|
846
|
+
@platform = platform
|
|
847
|
+
expect(host).to receive(:file_exist?).with('/proc/sys/crypto/fips_enabled').and_return(true)
|
|
848
|
+
expect(host).to receive(:execute).with("cat /proc/sys/crypto/fips_enabled").and_return("1")
|
|
849
|
+
expect(host.fips_mode?).to be true
|
|
850
|
+
end
|
|
851
|
+
|
|
852
|
+
it 'returns false when the `fips_enabled` file is present and contains "0"' do
|
|
853
|
+
@platform = platform
|
|
854
|
+
expect(host).to receive(:execute).with("cat /proc/sys/crypto/fips_enabled").and_return("0")
|
|
855
|
+
expect(host.fips_mode?).to be false
|
|
856
|
+
end
|
|
857
|
+
end
|
|
850
858
|
end
|
|
851
859
|
end
|
|
852
860
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.32.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppet
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-12-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -662,7 +662,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
662
662
|
- !ruby/object:Gem::Version
|
|
663
663
|
version: '0'
|
|
664
664
|
requirements: []
|
|
665
|
-
rubygems_version: 3.2.
|
|
665
|
+
rubygems_version: 3.2.32
|
|
666
666
|
signing_key:
|
|
667
667
|
specification_version: 4
|
|
668
668
|
summary: Let's test Puppet!
|