beaker 3.0.0 → 3.1.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 +8 -8
- data/acceptance/pre_suite/pe/install.rb +3 -1
- data/beaker.gemspec +2 -0
- data/docs/how_to/upgrade_from_2_to_3.md +10 -2
- data/lib/beaker.rb +9 -0
- data/lib/beaker/host/mac/exec.rb +1 -1
- data/lib/beaker/hypervisor/vmpooler.rb +5 -1
- data/lib/beaker/platform.rb +2 -1
- data/lib/beaker/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGZiYTYwMjI3N2RiZDBkMzc4NzhjODAzYzg1YjU3ZjJmMjZjMzVjMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTA1OTM1YTM3NTUyNGZiZTNiNDJkMTQ1MzRkYTAyMmYxZTUwZGJiMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGUxODBmZjhhMzQ3YzVkNDViYjU1MWYyMjk3NTdmNmQzMzdiOWZmNTIxMThl
|
10
|
+
NjliMDRiNmU0ZDQwN2Q2MjJlZjdlZjJjMzQ3OTY3MzI4NTlkZGY0YzRhYWI5
|
11
|
+
ZjQ1ZDAwZDBlNGI0NmY0MTRkYTJiODBiMjI4NWQ2MGZmOWY1MjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDZkZjY4ZmMyZTdmNTkzNTFmZjI3YTU0ZWZlZDBlZmJlNzY0MmI2YTRjZmJi
|
14
|
+
MGVmY2I3NGU2MjllYTUxMDNhZTI3MzljMTNkMWUyM2E3YWUyODZlMDU2MDZl
|
15
|
+
YzYwMDFkZGRiZGVjMTkxYmRkYmZkYzBlYTg3NzM2ZDA0ZDE3NDQ=
|
data/beaker.gemspec
CHANGED
@@ -17,6 +17,8 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
|
+
s.required_ruby_version = Gem::Requirement.new('>= 2.2.5')
|
21
|
+
|
20
22
|
# Testing dependencies
|
21
23
|
s.add_development_dependency 'rspec', '~> 3.0'
|
22
24
|
s.add_development_dependency 'rspec-its'
|
@@ -5,6 +5,12 @@ any changes that you might need to move from beaker 2.y to 3.0. To test out
|
|
5
5
|
beaker 3.0.0, we recommend implementing the strategy outlined [here](test_arbitrary_beaker_versions.md)
|
6
6
|
to ensure this new major release does not break your existing testing.
|
7
7
|
|
8
|
+
## Ruby version 1.9.3 no longer supported
|
9
|
+
|
10
|
+
Official support for 1.9.3 has been eol'd since Feb 2015; the beaker 3.0.0 release
|
11
|
+
drops support for ruby 1.9.3 and will not install with ruby 1.9.3. We suggest using
|
12
|
+
ruby >= 2.2.5, as that is the version we currently test and support at Puppet.
|
13
|
+
|
8
14
|
## Locally Cached Files
|
9
15
|
|
10
16
|
This is a change of the `:cache_files_locally` preset from `true` to `false`.
|
@@ -72,5 +78,7 @@ needed to use beaker-pe with beaker 3.0:
|
|
72
78
|
|
73
79
|
1. put a dependency on beaker-pe in your Gemfile as a sibling to your beaker
|
74
80
|
requirement (make sure beaker-pe is >= 1.0)
|
75
|
-
2.
|
76
|
-
|
81
|
+
2. That's it! Beaker itself will still `require 'beaker-pe'`, so making sure that it is specified
|
82
|
+
in your project's Gemfile is the only code change you will need to make. Please note that this
|
83
|
+
is only supported with the `beaker-pe` gem; other beaker libraries will need an explicit `require`
|
84
|
+
in your test setup.
|
data/lib/beaker.rb
CHANGED
@@ -46,4 +46,13 @@ module Beaker
|
|
46
46
|
# do nothing
|
47
47
|
end
|
48
48
|
|
49
|
+
# If beaker-pe is available, pull it in. The gem beaker-pe will need to be
|
50
|
+
# specified in the project Gemfile independent of beaker itself. If not available,
|
51
|
+
# catch LoadError and continue.
|
52
|
+
begin
|
53
|
+
require 'beaker-pe'
|
54
|
+
rescue LoadError
|
55
|
+
# do nothing
|
56
|
+
end
|
57
|
+
|
49
58
|
end
|
data/lib/beaker/host/mac/exec.rb
CHANGED
@@ -21,7 +21,7 @@ module Mac::Exec
|
|
21
21
|
# (from {#ssh_service_restart})
|
22
22
|
def ssh_permit_user_environment
|
23
23
|
ssh_config_file = '/etc/sshd_config'
|
24
|
-
ssh_config_file = '/private/etc/ssh/sshd_config' if self['platform'] =~ /osx-10\.*11/
|
24
|
+
ssh_config_file = '/private/etc/ssh/sshd_config' if self['platform'] =~ /osx-10\.*(11|12)/
|
25
25
|
|
26
26
|
exec(Beaker::Command.new("echo '\nPermitUserEnvironment yes' >> #{ssh_config_file}"))
|
27
27
|
ssh_service_restart()
|
@@ -163,7 +163,11 @@ module Beaker
|
|
163
163
|
raise "Vmpooler.provision - requested VM templates #{request_payload.keys} not available"
|
164
164
|
end
|
165
165
|
else
|
166
|
-
|
166
|
+
if response.code == '401'
|
167
|
+
raise "Vmpooler.provision - response from pooler not ok. Vmpooler token not authorized to make request.\n#{parsed_response}"
|
168
|
+
else
|
169
|
+
raise "Vmpooler.provision - response from pooler not ok. Requested host set #{request_payload.keys} not available in pooler.\n#{parsed_response}"
|
170
|
+
end
|
167
171
|
end
|
168
172
|
rescue JSON::ParserError, RuntimeError, *SSH_EXCEPTIONS => e
|
169
173
|
@logger.debug "Failed vmpooler provision: #{e.class} : #{e.message}"
|
data/lib/beaker/platform.rb
CHANGED
data/lib/beaker/version.rb
CHANGED
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: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -764,7 +764,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
764
764
|
requirements:
|
765
765
|
- - ! '>='
|
766
766
|
- !ruby/object:Gem::Version
|
767
|
-
version:
|
767
|
+
version: 2.2.5
|
768
768
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
769
769
|
requirements:
|
770
770
|
- - ! '>='
|