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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1c9332a588693ee68e7d23ab33618e03dc821c5fafe130681da0e633d8de070
4
- data.tar.gz: 2c8d856681a73e3e4c86d2f7074db0422da755ea259ab473d5cb69a275785bde
3
+ metadata.gz: 0c00ec9028362af1b8966b03ad80797dd3e1d2e16bee268482568f399cf94874
4
+ data.tar.gz: be92467b94636b65b1b2f37543ca26426d920f36e0182c12fe3fe8a98ef060e1
5
5
  SHA512:
6
- metadata.gz: ad55fa6ff69dbeed8a620b16863e8b47bccd562bc522f1b56faa501f7459811844e095e171dfc3de3df0cbaf5b255ff9d2c84dbf90d30d1cc647ee2b02478c47
7
- data.tar.gz: 4570f73a4b9aafe67c7de5a20bd93e221ae6f8e5ff4881de3c3e6227576d68ea9a7297cf1a34eda4a7d46654ea5d159d1a2fc4459e9f752b91268870fd0a6da5
6
+ metadata.gz: 4f65220ed8d6144a1a1438f91d7a79a0fb211ac1f3564167da1ceec48c588dc5b5b91c038e3b7ff513373e95d646eba2f47ff8b36e3f424f8450bc9d982e0cdc
7
+ data.tar.gz: 91c0890e82571154da9b32fd8a69a6d1545cd505922f24d0bf16e4f1c228c748ff9e2d74de74c5b8529c769b2e2179531645eb0a9f261e4580d09fb86e60bb1c
@@ -1,8 +1,9 @@
1
1
  name: Release
2
2
 
3
3
  on:
4
- create:
5
- ref_type: tag
4
+ push:
5
+ tags:
6
+ - '*'
6
7
 
7
8
  jobs:
8
9
  release:
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  # Changelog
2
2
 
3
- ## [4.30.0](https://github.com/voxpupuli/beaker/compare/4.29.1...4.30.0) (2021-07-21)
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
- gem 'irb'
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', git: 'git@github.com:github-changelog-generator/github-changelog-generator.git', branch: 'master', require: false
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.30.0](https://github.com/voxpupuli/beaker/compare/4.29.1...4.30.0) (2021-07-21)
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
- case self['platform']
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-8|fedora/
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-8/
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-7|el-7|redhat-7|centos-8|el-8|redhat-8|fedora-(1[4-9]|2[0-9]|3[0-9])/
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})
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '4.31.0'
3
+ STRING = '4.32.0'
4
4
  end
5
5
  end
@@ -832,21 +832,29 @@ module Beaker
832
832
  end
833
833
 
834
834
  describe "#fips_mode?" do
835
- it 'returns false on non-el7 hosts' do
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
- it 'returns true when the `fips_enabled` file is present and contains "1"' do
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
- it 'returns false when the `fips_enabled` file is present and contains "0"' do
847
- @platform = 'el-7'
848
- expect(host).to receive(:execute).with("cat /proc/sys/crypto/fips_enabled").and_return("0")
849
- expect(host.fips_mode?).to be false
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.31.0
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-02 00:00:00.000000000 Z
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.22
665
+ rubygems_version: 3.2.32
666
666
  signing_key:
667
667
  specification_version: 4
668
668
  summary: Let's test Puppet!