beaker 4.28.1 → 4.29.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 -0
- data/CHANGELOG.md +6 -0
- data/beaker.gemspec +1 -0
- data/lib/beaker/dsl/helpers/web_helpers.rb +3 -4
- data/lib/beaker/platform.rb +6 -5
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/dsl/helpers/web_helpers_spec.rb +2 -2
- data/spec/beaker/platform_spec.rb +5 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbfaa8f41aaa3ee0ef3400002bed63eccc4bbf4a1057b047f85610fbb30fa677
|
4
|
+
data.tar.gz: 942d0e998c84ca98160a49da29608010c8ec42d4c1a175946ff5d31a69f0a991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78f4703fbd41da566acc7a674f3694c7d756bfae560f5ff8c00dbc240db7725de3ccc40c01e2c412564ea56d0f94eac8573b8d98c5b1a743b52890bc8341ccf0
|
7
|
+
data.tar.gz: a605d125585bf3ddc1dab03216b8056c9aadb26d662074bb15e96594ca3868c08552c06b25a767449af3c31d3099f6f00599274eb2c229995711311a1d11e799
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -20,6 +20,12 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
|
|
20
20
|
- Fixed - for any bug fixes.
|
21
21
|
- Security - in case of vulnerabilities.
|
22
22
|
|
23
|
+
# [4.29.0](https://github.com/voxpupuli/beaker/compare/4.28.1...4.29.0) - 19-05-2021
|
24
|
+
|
25
|
+
### Added
|
26
|
+
|
27
|
+
- Ruby 3.0 support
|
28
|
+
|
23
29
|
# [4.28.1](https://github.com/voxpupuli/beaker/compare/4.28.0...4.28.1) - 03-10-2021
|
24
30
|
|
25
31
|
### Fixed
|
data/beaker.gemspec
CHANGED
@@ -42,6 +42,7 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.add_runtime_dependency 'pry-byebug', '~> 3.9'
|
43
43
|
# pry-byebug can have issues with native readline libs so add rb-readline
|
44
44
|
s.add_runtime_dependency 'rb-readline', '~> 0.5.3'
|
45
|
+
s.add_runtime_dependency 'rexml'
|
45
46
|
|
46
47
|
s.add_runtime_dependency 'hocon', '~> 1.0'
|
47
48
|
s.add_runtime_dependency 'net-ssh', '>= 5.0'
|
@@ -107,12 +107,11 @@ module Beaker
|
|
107
107
|
logger.notify " and saving to #{dst}"
|
108
108
|
logger.notify " using command: #{wget_command}"
|
109
109
|
|
110
|
-
|
111
|
-
|
112
|
-
result.each_line do |line|
|
110
|
+
stdout_and_stderr_str, status = Open3.capture2e(wget_command)
|
111
|
+
stdout_and_stderr_str.each_line do |line|
|
113
112
|
logger.debug(line)
|
114
113
|
end
|
115
|
-
|
114
|
+
unless status.success?
|
116
115
|
raise "Failed to fetch_remote_dir '#{url}' (exit code #{$?})"
|
117
116
|
end
|
118
117
|
dst
|
data/lib/beaker/platform.rb
CHANGED
@@ -6,11 +6,12 @@ module Beaker
|
|
6
6
|
PLATFORMS = /^(alpine|huaweios|cisco_nexus|cisco_ios_xr|(free|open)bsd|osx|centos|fedora|debian|oracle|redhat|redhatfips|scientific|sles|ubuntu|windows|solaris|aix|archlinux|el|eos|cumulus|f5|netscaler)\-.+\-.+$/
|
7
7
|
# Platform version numbers vs. codenames conversion hash
|
8
8
|
PLATFORM_VERSION_CODES =
|
9
|
-
{ :debian => { "
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"
|
9
|
+
{ :debian => { "bullseye" => "11",
|
10
|
+
"buster" => "10",
|
11
|
+
"stretch" => "9",
|
12
|
+
"jessie" => "8",
|
13
|
+
"wheezy" => "7",
|
14
|
+
"squeeze" => "6",
|
14
15
|
},
|
15
16
|
:ubuntu => { "focal" => "2004",
|
16
17
|
"eoan" => "1910",
|
data/lib/beaker/version.rb
CHANGED
@@ -89,6 +89,7 @@ describe ClassMixedWithDSLHelpers do
|
|
89
89
|
describe "#fetch_http_dir" do
|
90
90
|
let( :logger) { double("Beaker::Logger", :notify => nil , :debug => nil ) }
|
91
91
|
let( :result) { double(:each_line => []) }
|
92
|
+
let( :status) { double('Process::Status', success?: true) }
|
92
93
|
|
93
94
|
before do
|
94
95
|
fetch_allows
|
@@ -97,8 +98,7 @@ describe ClassMixedWithDSLHelpers do
|
|
97
98
|
describe "given valid arguments" do
|
98
99
|
|
99
100
|
it "returns basename of first argument concatenated to second." do
|
100
|
-
expect(
|
101
|
-
expect($?).to receive(:to_i).and_return(0)
|
101
|
+
expect(Open3).to receive(:capture2e).with(/^wget.*/).ordered { result }.and_return(['', status])
|
102
102
|
result = subject.fetch_http_dir "#{url}/beep", destdir
|
103
103
|
expect(result).to eq("#{destdir}/beep")
|
104
104
|
end
|
@@ -67,6 +67,11 @@ module Beaker
|
|
67
67
|
|
68
68
|
context 'with_version_codename' do
|
69
69
|
|
70
|
+
it "can convert debian-11-xxx to debian-bullseye-xxx" do
|
71
|
+
@name = 'debian-11-xxx'
|
72
|
+
expect( platform.with_version_codename ).to be === 'debian-bullseye-xxx'
|
73
|
+
end
|
74
|
+
|
70
75
|
it "can convert debian-7-xxx to debian-wheezy-xxx" do
|
71
76
|
@name = 'debian-7-xxx'
|
72
77
|
expect( platform.with_version_codename ).to be === 'debian-wheezy-xxx'
|
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.29.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-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -192,6 +192,20 @@ dependencies:
|
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 0.5.3
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rexml
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
210
|
name: hocon
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -703,7 +717,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
703
717
|
- !ruby/object:Gem::Version
|
704
718
|
version: '0'
|
705
719
|
requirements: []
|
706
|
-
rubygems_version: 3.1.
|
720
|
+
rubygems_version: 3.1.6
|
707
721
|
signing_key:
|
708
722
|
specification_version: 4
|
709
723
|
summary: Let's test Puppet!
|