beaker 6.1.0 → 6.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -2
- data/CHANGELOG.md +20 -0
- data/Rakefile +2 -2
- data/acceptance/tests/base/host/packages.rb +2 -0
- data/beaker.gemspec +2 -2
- data/lib/beaker/host/unix/pkg.rb +8 -2
- data/lib/beaker/host_prebuilt_steps.rb +4 -3
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/host/unix/pkg_spec.rb +2 -2
- data/spec/beaker/host_prebuilt_steps_spec.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddf2ab0309d4f889e899f8814396fe27fdc028ab9b90728b1200c88e490c46e8
|
4
|
+
data.tar.gz: a21068ae610b4d289ff1a59b8dbde79c2100a3e5df2d4a194a1868aa2425f877
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a57896118558f839cf191dff39190da4045a57718c2a7fd444bccf61cf666ca3cb5f13b399aef6efee1693d4dfe12124251c24801ddd1ad5a9c7db8e68df4584
|
7
|
+
data.tar.gz: 4b769798d73e105f17dd6cb10bbf90b8396adc495bc3920b0d6a53c9f4c7396600b92aea99376c70b29e1cf5d281a07ead8fa1cca0761c3c848cfea344e55498
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [6.3.0](https://github.com/voxpupuli/beaker/tree/6.3.0) (2024-08-13)
|
4
|
+
|
5
|
+
**Implemented enhancements:**
|
6
|
+
|
7
|
+
- build(deps): update minitar requirement from ~> 0.6 to ~> 0.12 [\#1895](https://github.com/voxpupuli/beaker/pull/1895)
|
8
|
+
|
9
|
+
**Fixed bugs:**
|
10
|
+
|
11
|
+
- Arch Linux: Generate keyring before installing packages [\#1897](https://github.com/voxpupuli/beaker/pull/1897) ([bastelfreak](https://github.com/bastelfreak))
|
12
|
+
|
13
|
+
## [6.2.0](https://github.com/voxpupuli/beaker/tree/6.2.0) (2024-07-24)
|
14
|
+
|
15
|
+
**Implemented enhancements:**
|
16
|
+
|
17
|
+
- Debian: Replace apt-get with apt for updates [\#1890](https://github.com/voxpupuli/beaker/pull/1890) ([bastelfreak](https://github.com/bastelfreak))
|
18
|
+
|
19
|
+
**Fixed bugs:**
|
20
|
+
|
21
|
+
- EL8/9 & Fedora: Install iputils [\#1893](https://github.com/voxpupuli/beaker/pull/1893) ([bastelfreak](https://github.com/bastelfreak))
|
22
|
+
|
3
23
|
## [6.1.0](https://github.com/voxpupuli/beaker/tree/6.1.0) (2024-06-04)
|
4
24
|
|
5
25
|
**Implemented enhancements:**
|
data/Rakefile
CHANGED
@@ -67,11 +67,11 @@ def hosts_opt(use_preserved_hosts = false)
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def agent_target
|
70
|
-
ENV['TEST_TARGET'] || '
|
70
|
+
ENV['TEST_TARGET'] || 'centos9-64af'
|
71
71
|
end
|
72
72
|
|
73
73
|
def master_target
|
74
|
-
ENV['MASTER_TEST_TARGET'] || '
|
74
|
+
ENV['MASTER_TEST_TARGET'] || 'centos9-64default.mdcal'
|
75
75
|
end
|
76
76
|
|
77
77
|
def test_targets
|
@@ -17,6 +17,8 @@ def get_host_pkg(host)
|
|
17
17
|
Beaker::HostPrebuiltSteps::OPENBSD_PACKAGES
|
18
18
|
when /solaris-10/
|
19
19
|
Beaker::HostPrebuiltSteps::SOLARIS10_PACKAGES
|
20
|
+
when /el-[89]/
|
21
|
+
Beaker::HostPrebuiltSteps::RHEL8_PACKAGES
|
20
22
|
else
|
21
23
|
Beaker::HostPrebuiltSteps::UNIX_PACKAGES
|
22
24
|
end
|
data/beaker.gemspec
CHANGED
@@ -22,10 +22,10 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_development_dependency 'fakefs', '~> 2.4'
|
23
23
|
s.add_development_dependency 'rake', '~> 13.0'
|
24
24
|
s.add_development_dependency 'rspec', '~> 3.0'
|
25
|
-
s.add_development_dependency 'voxpupuli-rubocop', '~> 2.
|
25
|
+
s.add_development_dependency 'voxpupuli-rubocop', '~> 2.8.0'
|
26
26
|
|
27
27
|
# Run time dependencies
|
28
|
-
s.add_runtime_dependency 'minitar', '~> 0.
|
28
|
+
s.add_runtime_dependency 'minitar', '~> 0.12' # newer versions require Ruby 3.1
|
29
29
|
s.add_runtime_dependency 'minitest', '~> 5.4'
|
30
30
|
s.add_runtime_dependency 'rexml', '~> 3.2', '>= 3.2.5'
|
31
31
|
|
data/lib/beaker/host/unix/pkg.rb
CHANGED
@@ -62,7 +62,8 @@ module Unix::Pkg
|
|
62
62
|
return unless /debian|ubuntu/.match?(self['platform'])
|
63
63
|
return unless @apt_needs_update
|
64
64
|
|
65
|
-
|
65
|
+
# -qq: Only output errors to stdout
|
66
|
+
execute("apt-get update -qq")
|
66
67
|
@apt_needs_update = false
|
67
68
|
end
|
68
69
|
|
@@ -73,6 +74,10 @@ module Unix::Pkg
|
|
73
74
|
return unless self['platform'].include?('archlinux')
|
74
75
|
return unless @pacman_needs_update
|
75
76
|
|
77
|
+
# creates a GPG key + local keyring
|
78
|
+
execute("pacman-key --init")
|
79
|
+
# `archlinux-keyring` contains GPG keys that will be imported into the local keyring
|
80
|
+
# used to verify package signatures
|
76
81
|
execute("pacman --sync --noconfirm --noprogressbar --refresh archlinux-keyring")
|
77
82
|
execute("pacman --sync --noconfirm --noprogressbar --refresh --sysupgrade --ignore linux --ignore linux-docs --ignore linux-headers")
|
78
83
|
@pacman_needs_update = false
|
@@ -263,7 +268,8 @@ module Unix::Pkg
|
|
263
268
|
execute("zypper --non-interactive --no-gpg-checks in #{onhost_package_file}")
|
264
269
|
when /^(debian|ubuntu)$/
|
265
270
|
execute("dpkg -i --force-all #{onhost_package_file}")
|
266
|
-
|
271
|
+
# -qq: Only output errors to stdout
|
272
|
+
execute("apt-get update -qq")
|
267
273
|
when /^solaris$/
|
268
274
|
self.solaris_install_local_package(onhost_package_file, onhost_copy_dir)
|
269
275
|
when /^osx$/
|
@@ -11,8 +11,8 @@ module Beaker
|
|
11
11
|
SLEEPWAIT = 5
|
12
12
|
TRIES = 5
|
13
13
|
AMAZON2023_PACKAGES = %w[chrony]
|
14
|
-
RHEL8_PACKAGES = %w[chrony]
|
15
|
-
FEDORA_PACKAGES = %w[chrony]
|
14
|
+
RHEL8_PACKAGES = %w[chrony iputils] # iputils provides ping. beaker assumes that's present
|
15
|
+
FEDORA_PACKAGES = %w[chrony iputils]
|
16
16
|
UNIX_PACKAGES = %w[curl ntpdate]
|
17
17
|
FREEBSD_PACKAGES = ['curl', 'perl5|perl']
|
18
18
|
OPENBSD_PACKAGES = ['curl']
|
@@ -204,7 +204,8 @@ module Beaker
|
|
204
204
|
# @param [Host, Array<Host>] hosts One or more hosts to act upon
|
205
205
|
def apt_get_update hosts
|
206
206
|
block_on hosts do |host|
|
207
|
-
|
207
|
+
# -qq: Only output errors to stdout
|
208
|
+
host.exec(Command.new("apt-get update -qq")) if /ubuntu|debian/.match?(host[:platform])
|
208
209
|
end
|
209
210
|
end
|
210
211
|
|
data/lib/beaker/version.rb
CHANGED
@@ -128,7 +128,7 @@ module Beaker
|
|
128
128
|
it "calls update for #{platform}" do
|
129
129
|
@opts = { 'platform' => platform }
|
130
130
|
instance.instance_variable_set(:@apt_needs_update, true)
|
131
|
-
expect(instance).to receive('execute').with("apt-get update")
|
131
|
+
expect(instance).to receive('execute').with("apt-get update -qq")
|
132
132
|
expect { instance.update_apt_if_needed }.not_to raise_error
|
133
133
|
end
|
134
134
|
end
|
@@ -309,7 +309,7 @@ module Beaker
|
|
309
309
|
%w[debian ubuntu].each do |platform|
|
310
310
|
@platform = platform
|
311
311
|
expect(instance).to receive(:execute).with(/^dpkg.*#{package_file}$/)
|
312
|
-
expect(instance).to receive(:execute).with('apt-get update')
|
312
|
+
expect(instance).to receive(:execute).with('apt-get update -qq')
|
313
313
|
instance.install_local_package(package_file)
|
314
314
|
end
|
315
315
|
end
|
@@ -227,7 +227,7 @@ describe Beaker do
|
|
227
227
|
it "can perform apt-get on ubuntu hosts" do
|
228
228
|
host = make_host('testhost', { :platform => 'ubuntu' })
|
229
229
|
|
230
|
-
expect(Beaker::Command).to receive(:new).with("apt-get update").once
|
230
|
+
expect(Beaker::Command).to receive(:new).with("apt-get update -qq").once
|
231
231
|
|
232
232
|
subject.apt_get_update(host)
|
233
233
|
end
|
@@ -235,7 +235,7 @@ describe Beaker do
|
|
235
235
|
it "can perform apt-get on debian hosts" do
|
236
236
|
host = make_host('testhost', { :platform => 'debian' })
|
237
237
|
|
238
|
-
expect(Beaker::Command).to receive(:new).with("apt-get update").once
|
238
|
+
expect(Beaker::Command).to receive(:new).with("apt-get update -qq").once
|
239
239
|
|
240
240
|
subject.apt_get_update(host)
|
241
241
|
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: 6.
|
4
|
+
version: 6.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fakefs
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: 2.8.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: 2.8.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitar
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
75
|
+
version: '0.12'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
82
|
+
version: '0.12'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: minitest
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -640,7 +640,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
640
640
|
- !ruby/object:Gem::Version
|
641
641
|
version: '0'
|
642
642
|
requirements: []
|
643
|
-
rubygems_version: 3.5.
|
643
|
+
rubygems_version: 3.5.11
|
644
644
|
signing_key:
|
645
645
|
specification_version: 4
|
646
646
|
summary: Let's test Puppet!
|