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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTM3MzM5ZWIzNmQzNTkzODEwZTM2OTg2M2M2NTI5ODk5MjhiOGZjOA==
4
+ OGZiYTYwMjI3N2RiZDBkMzc4NzhjODAzYzg1YjU3ZjJmMjZjMzVjMg==
5
5
  data.tar.gz: !binary |-
6
- ODE2OTZiYTc0NmVhNTEwMzE0YjkwY2NiMzBlZjkyMDAzYzYzM2U0Mg==
6
+ MTA1OTM1YTM3NTUyNGZiZTNiNDJkMTQ1MzRkYTAyMmYxZTUwZGJiMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWRiOWIwMTg5MTg3MTIwN2NmMTU5NzcwMDQ4ODQ4ZmZkNzBkZmI4YjI2ZDJk
10
- M2NlOGIwODQ3YjE4MDkwODZjNTQ4NDdhOGNjNmYzMjE0MjhkZGNlMWZkNjUw
11
- MGVmOTlkY2MyMDNlZTgxMDExNjE0ZWQxZDRlMWE1NmYxY2Y2MmY=
9
+ ZGUxODBmZjhhMzQ3YzVkNDViYjU1MWYyMjk3NTdmNmQzMzdiOWZmNTIxMThl
10
+ NjliMDRiNmU0ZDQwN2Q2MjJlZjdlZjJjMzQ3OTY3MzI4NTlkZGY0YzRhYWI5
11
+ ZjQ1ZDAwZDBlNGI0NmY0MTRkYTJiODBiMjI4NWQ2MGZmOWY1MjA=
12
12
  data.tar.gz: !binary |-
13
- NjA1OTNhMDVhYzEzNjIzOWM5ODgzNDYyYzNkZWFiMmZiZjVhMmQ2M2I4OGJl
14
- Y2JmMzIwNzdhMjAzNWM1ZmM0OGM3M2Y4NDMyZTExZGZkZWZmOTdjYjQyYjUz
15
- OGRhODQyM2I0NjAzMmY3MTg1NTFhY2E3YWQzYjIyMWY4N2FhOWU=
13
+ MDZkZjY4ZmMyZTdmNTkzNTFmZjI3YTU0ZWZlZDBlZmJlNzY0MmI2YTRjZmJi
14
+ MGVmY2I3NGU2MjllYTUxMDNhZTI3MzljMTNkMWUyM2E3YWUyODZlMDU2MDZl
15
+ YzYwMDFkZGRiZGVjMTkxYmRkYmZkYzBlYTg3NzM2ZDA0ZDE3NDQ=
@@ -1 +1,3 @@
1
- install_pe
1
+ # require beaker-pe to load in the additional DSL methods
2
+ require 'beaker-pe'
3
+ install_pe
@@ -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. put a `require 'beaker-pe'` statement where you'd like to use beaker-pe-specific
76
- functionality
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.
@@ -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
@@ -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
- raise "Vmpooler.provision - response from pooler not ok. Requested host set #{request_payload.keys} not available in pooler.\n#{parsed_response}"
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}"
@@ -21,7 +21,8 @@ module Beaker
21
21
  "precise" => "1204",
22
22
  "lucid" => "1004",
23
23
  },
24
- :osx => { "elcapitan" => "1011",
24
+ :osx => { "sierra" => "1012",
25
+ "elcapitan" => "1011",
25
26
  "yosemite" => "1010",
26
27
  "mavericks" => "109",
27
28
  }
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '3.0.0'
3
+ STRING = '3.1.0'
4
4
  end
5
5
  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: 3.0.0
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-09-26 00:00:00.000000000 Z
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: '0'
767
+ version: 2.2.5
768
768
  required_rubygems_version: !ruby/object:Gem::Requirement
769
769
  requirements:
770
770
  - - ! '>='