beaker 5.7.0 → 5.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +1 -1
- data/.github/workflows/test.yml +2 -1
- data/.rubocop_todo.yml +8 -1
- data/CHANGELOG.md +22 -0
- data/beaker.gemspec +1 -1
- data/docs/concepts/argument_processing_and_precedence.md +1 -1
- data/lib/beaker/host/unix/file.rb +1 -1
- data/lib/beaker/host.rb +1 -1
- data/lib/beaker/host_prebuilt_steps.rb +4 -7
- data/lib/beaker/options/command_line_parser.rb +1 -1
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/host/unix/file_spec.rb +8 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 747514fd1bc4b06447745e41139acb933595b96b683c721abc95239b94e142e3
|
4
|
+
data.tar.gz: bcd6d4cfe1c4b98af67ed652598829d0075b364d0a0dd6035087536f2a77d36d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9e791460368f7cf86d4bcbfacf0af5ca711d59d2943c0e93070468eb33793bd117dcf788b35eae1fa70a73a5e222522031b42ffc1bf416fc5b69f4efcfbf9e3
|
7
|
+
data.tar.gz: 4daaa7c530f9053600ea808e490a7c930ab77e38d1097db5b6f2310d240198cffea7c7d15c239011157d2b1c2d19a611ab354b8b3e51c333422a5ac326363e9f
|
data/.github/workflows/test.yml
CHANGED
@@ -16,7 +16,7 @@ jobs:
|
|
16
16
|
- name: Install Ruby ${{ matrix.ruby }}
|
17
17
|
uses: ruby/setup-ruby@v1
|
18
18
|
with:
|
19
|
-
ruby-version: "3.
|
19
|
+
ruby-version: "3.3"
|
20
20
|
bundler-cache: true
|
21
21
|
- name: Run Rubocop
|
22
22
|
run: bundle exec rake rubocop
|
@@ -32,6 +32,7 @@ jobs:
|
|
32
32
|
- ruby: "3.0"
|
33
33
|
- ruby: "3.1"
|
34
34
|
- ruby: "3.2"
|
35
|
+
- ruby: "3.3"
|
35
36
|
coverage: "yes"
|
36
37
|
env:
|
37
38
|
COVERAGE: ${{ matrix.coverage }}
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2024-
|
3
|
+
# on 2024-03-12 17:49:37 UTC using RuboCop version 1.62.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -62,6 +62,7 @@ Lint/ShadowingOuterLocalVariable:
|
|
62
62
|
|
63
63
|
# Offense count: 12
|
64
64
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
65
|
+
# Configuration parameters: AutoCorrect.
|
65
66
|
Lint/UselessAssignment:
|
66
67
|
Exclude:
|
67
68
|
- 'acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb'
|
@@ -230,6 +231,12 @@ RSpec/NoExpectationExample:
|
|
230
231
|
- 'spec/beaker/logger_spec.rb'
|
231
232
|
- 'spec/beaker/options/subcommand_options_parser_spec.rb'
|
232
233
|
|
234
|
+
# Offense count: 1
|
235
|
+
# This cop supports safe autocorrection (--autocorrect).
|
236
|
+
RSpec/Rails/MinitestAssertions:
|
237
|
+
Exclude:
|
238
|
+
- 'spec/beaker/dsl/structure_spec.rb'
|
239
|
+
|
233
240
|
# Offense count: 60
|
234
241
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
235
242
|
RSpec/ReceiveMessages:
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [5.8.1](https://github.com/voxpupuli/beaker/tree/5.8.1) (2024-05-06)
|
4
|
+
|
5
|
+
**Fixed bugs:**
|
6
|
+
|
7
|
+
- Add extension parameter to parent tmpfile method signature [\#1863](https://github.com/voxpupuli/beaker/pull/1854) ([ekohl](https://github.com/ekohl))
|
8
|
+
|
9
|
+
## [5.8.0](https://github.com/voxpupuli/beaker/tree/5.8.0) (2024-03-23)
|
10
|
+
|
11
|
+
**Implemented enhancements:**
|
12
|
+
|
13
|
+
- Add Ruby 3.3 support [\#1859](https://github.com/voxpupuli/beaker/pull/1859) ([bastelfreak](https://github.com/bastelfreak))
|
14
|
+
- Do not attempt to install curl on DNF-based distros [\#1854](https://github.com/voxpupuli/beaker/pull/1854) ([ekohl](https://github.com/ekohl))
|
15
|
+
- PE-37978: Add 'amazon' to #repo-filename method [\#1858](https://github.com/voxpupuli/beaker/pull/1858) ([span786](https://github.com/span786))
|
16
|
+
|
17
|
+
**Fixed bugs:**
|
18
|
+
|
19
|
+
- CLI: Fix typo: opton->option [\#1849](https://github.com/voxpupuli/beaker/pull/1849) ([bastelfreak](https://github.com/bastelfreak))
|
20
|
+
|
21
|
+
**Others:**
|
22
|
+
|
23
|
+
- build(deps-dev): update voxpupuli-rubocop requirement from ~> 2.4.0 to ~> 2.6.0 [\#1850](https://github.com/voxpupuli/beaker/pull/1850) (dependabot)
|
24
|
+
|
3
25
|
## [5.7.0](https://github.com/voxpupuli/beaker/tree/5.7.0) (2024-02-13)
|
4
26
|
|
5
27
|
**Implemented enhancements:**
|
data/beaker.gemspec
CHANGED
@@ -22,7 +22,7 @@ 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.6.0'
|
26
26
|
|
27
27
|
# Run time dependencies
|
28
28
|
s.add_runtime_dependency 'minitar', '~> 0.6'
|
@@ -89,7 +89,7 @@ Usage: beaker [options...]
|
|
89
89
|
(default sample.cfg)
|
90
90
|
-o, --options-file FILE Read options from FILE
|
91
91
|
This should evaluate to a ruby hash.
|
92
|
-
CLI
|
92
|
+
CLI options are given precedence.
|
93
93
|
--type TYPE one of git, foss, or pe
|
94
94
|
used to determine underlying path structure of puppet install
|
95
95
|
(default pe)
|
@@ -113,7 +113,7 @@ module Unix::File
|
|
113
113
|
repo_filename = format("pl-%s-%s-", package_name, build_version)
|
114
114
|
|
115
115
|
case variant
|
116
|
-
when /fedora|el|redhat|centos|cisco_nexus|cisco_ios_xr|opensuse|sles/
|
116
|
+
when /amazon|fedora|el|redhat|centos|cisco_nexus|cisco_ios_xr|opensuse|sles/
|
117
117
|
variant = 'el' if %w[centos redhat].include?(variant)
|
118
118
|
|
119
119
|
variant = 'redhatfips' if self['packaging_platform']&.include?('redhatfips')
|
data/lib/beaker/host.rb
CHANGED
@@ -10,10 +10,9 @@ module Beaker
|
|
10
10
|
NTPSERVER = 'pool.ntp.org'
|
11
11
|
SLEEPWAIT = 5
|
12
12
|
TRIES = 5
|
13
|
-
AMAZON2023_PACKAGES = %w[
|
14
|
-
RHEL8_PACKAGES = %w[
|
15
|
-
|
16
|
-
FEDORA_PACKAGES = %w[curl chrony]
|
13
|
+
AMAZON2023_PACKAGES = %w[chrony]
|
14
|
+
RHEL8_PACKAGES = %w[chrony]
|
15
|
+
FEDORA_PACKAGES = %w[chrony]
|
17
16
|
UNIX_PACKAGES = %w[curl ntpdate]
|
18
17
|
FREEBSD_PACKAGES = ['curl', 'perl5|perl']
|
19
18
|
OPENBSD_PACKAGES = ['curl']
|
@@ -111,10 +110,8 @@ module Beaker
|
|
111
110
|
case host['platform']
|
112
111
|
when /amazon/
|
113
112
|
AMAZON2023_PACKAGES
|
114
|
-
when /el-
|
113
|
+
when /el-[89]/
|
115
114
|
RHEL8_PACKAGES
|
116
|
-
when /el-9/
|
117
|
-
RHEL9_PACKAGES
|
118
115
|
when /sles-10/
|
119
116
|
SLES10_PACKAGES
|
120
117
|
when /opensuse|sles-/
|
@@ -25,7 +25,7 @@ module Beaker
|
|
25
25
|
opts.on '-o', '--options-file FILE',
|
26
26
|
'Read options from FILE',
|
27
27
|
'This should evaluate to a ruby hash.',
|
28
|
-
'CLI
|
28
|
+
'CLI options are given precedence.' do |file|
|
29
29
|
@cmd_options[:options_file] = file
|
30
30
|
end
|
31
31
|
|
data/lib/beaker/version.rb
CHANGED
@@ -133,6 +133,14 @@ module Beaker
|
|
133
133
|
expect(filename).to be === correct
|
134
134
|
end
|
135
135
|
|
136
|
+
it 'builds the filename correctly for amazon-based platforms' do
|
137
|
+
@platform = 'amazon-2023-x86_64'
|
138
|
+
allow(instance).to receive(:is_pe?).and_return(true)
|
139
|
+
filename = instance.repo_filename('pkg_name', 'pkg_version')
|
140
|
+
correct = 'pl-pkg_name-pkg_version-amazon-2023-x86_64.repo'
|
141
|
+
expect(filename).to be === correct
|
142
|
+
end
|
143
|
+
|
136
144
|
it 'builds the filename correctly for debian-based platforms' do
|
137
145
|
@platform = 'debian-8-x86_64'
|
138
146
|
filename = instance.repo_filename('pkg_name', 'pkg_version10')
|
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: 5.
|
4
|
+
version: 5.8.1
|
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-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fakefs
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: 2.6.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.6.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitar
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -656,7 +656,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
656
656
|
- !ruby/object:Gem::Version
|
657
657
|
version: '0'
|
658
658
|
requirements: []
|
659
|
-
rubygems_version: 3.
|
659
|
+
rubygems_version: 3.5.9
|
660
660
|
signing_key:
|
661
661
|
specification_version: 4
|
662
662
|
summary: Let's test Puppet!
|