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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2503ed24d90847be18c7fd19b77a560ccc36adfc62c0d05c572db54ae459ac9d
4
- data.tar.gz: e1a48af6ec7c6a987e68fef2e2d8d66938ea6a0386261e055a3f44f152bf593d
3
+ metadata.gz: dbfaa8f41aaa3ee0ef3400002bed63eccc4bbf4a1057b047f85610fbb30fa677
4
+ data.tar.gz: 942d0e998c84ca98160a49da29608010c8ec42d4c1a175946ff5d31a69f0a991
5
5
  SHA512:
6
- metadata.gz: 70a874fb028a529662d75b41aed961799d24c9f1e2f4ecc787526f14fdb2171841decdbcc0949a703a5f6740a97265468e563420e532bf8ae57c6eb217d98e47
7
- data.tar.gz: 2f59f3355f90fb02c0ced17550d7acb70075a6e604b4dfb53c616c312d630df3bcce87d5036eef45f44cc0ee5b2bf31974d4e53b37ba975735420bc6ca77ca97
6
+ metadata.gz: 78f4703fbd41da566acc7a674f3694c7d756bfae560f5ff8c00dbc240db7725de3ccc40c01e2c412564ea56d0f94eac8573b8d98c5b1a743b52890bc8341ccf0
7
+ data.tar.gz: a605d125585bf3ddc1dab03216b8056c9aadb26d662074bb15e96594ca3868c08552c06b25a767449af3c31d3099f6f00599274eb2c229995711311a1d11e799
@@ -15,6 +15,7 @@ jobs:
15
15
  - "2.5"
16
16
  - "2.6"
17
17
  - "2.7"
18
+ - "3.0"
18
19
  name: Ruby ${{ matrix.ruby }}
19
20
  steps:
20
21
  - uses: actions/checkout@v2
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
- #in ruby 1.9+ we can upgrade this to popen3 to gain access to the subprocess pid
111
- result = `#{wget_command} 2>&1`
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
- if $?.to_i != 0
114
+ unless status.success?
116
115
  raise "Failed to fetch_remote_dir '#{url}' (exit code #{$?})"
117
116
  end
118
117
  dst
@@ -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 => { "buster" => "10",
10
- "stretch" => "9",
11
- "jessie" => "8",
12
- "wheezy" => "7",
13
- "squeeze" => "6",
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",
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '4.28.1'
3
+ STRING = '4.29.0'
4
4
  end
5
5
  end
@@ -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(subject).to receive(:`).with(/^wget.*/).ordered { result }
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.28.1
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-03-16 00:00:00.000000000 Z
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.4
720
+ rubygems_version: 3.1.6
707
721
  signing_key:
708
722
  specification_version: 4
709
723
  summary: Let's test Puppet!