beaker 2.43.0 → 2.44.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjVlYzZiNmZiMmI2MzY4YmZjY2U0YTkyNDZmMjMwMmNjMWQ3NmQzMA==
4
+ NzkwYzhjYjQ1MzhmOWIxMTQ0MmNmNmE1Mjk3ZjEzYWFlMjhjMTQzMQ==
5
5
  data.tar.gz: !binary |-
6
- ZDUyMWViNjYwYWFkM2E0ZjE3OWQ5YmNjNmM0MmQ2MmNiMmEyMTdkOA==
6
+ MmI4ZTk0ZmEwMjkxYjRhZjlmZGNiMzljZmZlZmM2NzkxZTY3NmJjNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDcxNDk4NTUwYzc2NGI1MDE3NmM4NjAyMzA5ZmM1MDY2MDYwZGY3N2I5MmIy
10
- ZTRjNmY2YWY0YjEwMDU1OTQ4OWU2NzMyNDE4OTgwNTlmMTcwZWU1ZmE3MTMx
11
- YThiNDk2OGVjM2U0ZDUxZThmM2Q0N2MxNmY3YzU5NDVlYTQ2NTQ=
9
+ YmY4YTg1ZWEyNjE0OTMwYjZiNjQ3YWM0YzU3YTlhNGMzNDAxMWUzNjgyOWVh
10
+ MWM2MWQ3N2UzZDBiNDhiMDY5NGI2MWYzOTNlYjhhYWVkMTBkNTFmYjFiM2Zl
11
+ MWU5ZGMwOGZhNDBhMDk3ZDE0OGU0YmY3ZTE5N2QzZTk2NGU4Y2M=
12
12
  data.tar.gz: !binary |-
13
- NTUzOWNhYjI5MzU2YjE1ODk5YzZjY2IxZDBmYzY4MWFmYTJkZGRmMTU2NWYw
14
- YjAyZjU2MGNkMDFmM2Y2ZjE0YzFjZjAwOTQ3NTc5Mzg3YzY1MmU5MTUzOTVj
15
- NWZhMDQ0NmRjOGUwM2IwM2ViNTlmMzVmYmQwY2UyOGM4ODEyYWY=
13
+ ZjlhNzg0OGJmOTM3YTkzZGU1YTQ1YjZkODE5ZGZjMGY5ODMxYjRjMDRhNjY1
14
+ OTE3ZGRjZTEwNzcxMmU4MmNmYjZjNTc2YTBmMjM4NDVjMGI2M2RkMjU3N2Nh
15
+ NzMxY2ViMzcxMThjODllYjVjM2E1ZDc5NGVhYzk5YjM5NTlhY2Y=
data/Gemfile CHANGED
@@ -1,3 +1,21 @@
1
1
  source ENV['GEM_SOURCE'] || "https://rubygems.org"
2
2
 
3
3
  gemspec
4
+
5
+ # This section of the gemspec is for Puppet CI; it will pull in
6
+ # a supported beaker library for testing to overwrite the gemspec if
7
+ # a corresponding ENV var is found. Currently, the only supported lib
8
+ # is beaker-pe, which can be injected into the dependencies when the
9
+ # following ENV vars are defined: BEAKER_PE_PR_AUTHOR,
10
+ # BEAKER_PE_PR_COMMIT, BEAKER_PE_PR_REPO_URL. These correspond to the
11
+ # ghprb variables ghprbPullAuthorLogin, ghprbActualCommit,
12
+ # and ghprbAuthorRepoGitUrl respectively. In the "future", we should
13
+ # make this a standard format so we can pull in more than predefined
14
+ # variables.
15
+
16
+ if ENV['BEAKER_PE_PR_REPO_URL']
17
+ lib = ENV['BEAKER_PE_PR_REPO_URL'].match(/\/([^\/]+)\.git$/)[1]
18
+ author = ENV['BEAKER_PE_PR_AUTHOR']
19
+ ref = ENV['BEAKER_PE_PR_COMMIT']
20
+ gem lib, :git => "git@github.com:#{author}/#{lib}.git", :branch => ref
21
+ end
data/HISTORY.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # default - History
2
2
  ## Tags
3
- * [LATEST - 1 Jun, 2016 (83bf4f46)](#LATEST)
3
+ * [LATEST - 9 Jun, 2016 (0d267d3d)](#LATEST)
4
+ * [2.43.0 - 1 Jun, 2016 (777469ca)](#2.43.0)
4
5
  * [2.42.0 - 23 May, 2016 (c245fef7)](#2.42.0)
5
6
  * [2.41.0 - 10 May, 2016 (17c745bd)](#2.41.0)
6
7
  * [2.40.0 - 18 Apr, 2016 (0a7b948a)](#2.40.0)
@@ -119,7 +120,85 @@
119
120
  * [pe1.2 - 6 Sep, 2011 (ba3dadd2)](#pe1.2)
120
121
 
121
122
  ## Details
122
- ### <a name = "LATEST">LATEST - 1 Jun, 2016 (83bf4f46)
123
+ ### <a name = "LATEST">LATEST - 9 Jun, 2016 (0d267d3d)
124
+
125
+ * (GEM) update beaker version to 2.44.0 (0d267d3d)
126
+
127
+ * Merge pull request #1138 from s12v/patch-1 (b612c0d3)
128
+
129
+
130
+ ```
131
+ Merge pull request #1138 from s12v/patch-1
132
+
133
+ Update docker.md
134
+ ```
135
+ * Merge pull request #1136 from kevpl/docs_hypervisor_lxc_link (605cdc33)
136
+
137
+
138
+ ```
139
+ Merge pull request #1136 from kevpl/docs_hypervisor_lxc_link
140
+
141
+ (MAINT) added LXC hypervisor fork link
142
+ ```
143
+ * Merge pull request #1139 from tvpartytonight/BKR-822 (30f39c60)
144
+
145
+
146
+ ```
147
+ Merge pull request #1139 from tvpartytonight/BKR-822
148
+
149
+ (BKR-822) Ensure env options applied to bkr commands with #on
150
+ ```
151
+ * (BKR-822) Ensure env options applied to bkr commands with #on (1b16c967)
152
+
153
+
154
+ ```
155
+ (BKR-822) Ensure env options applied to bkr commands with #on
156
+
157
+ In commit f78c2db, we neglected to ensure that an environment passed in
158
+ through the options specified by #on overrides the environment specified
159
+ in the Beaker::Command object. This change ensures that #on checks for
160
+ the environment in its own options to override the command options.
161
+ ```
162
+ * Merge pull request #1134 from tvpartytonight/BKR-813 (c8830026)
163
+
164
+
165
+ ```
166
+ Merge pull request #1134 from tvpartytonight/BKR-813
167
+
168
+ (BKR-813) Add support for beaker lib PR testing
169
+ ```
170
+ * (MAINT) Fix examples in docker.md (262758ec)
171
+
172
+ * (MAINT) added LXC hypervisor fork link (695ab33e)
173
+
174
+
175
+ ```
176
+ (MAINT) added LXC hypervisor fork link
177
+
178
+ [skip ci]
179
+ ```
180
+ * Merge pull request #1131 from kevpl/docs_hypervisor_rearrange (f6459cb1)
181
+
182
+
183
+ ```
184
+ Merge pull request #1131 from kevpl/docs_hypervisor_rearrange
185
+
186
+ (MAINT) moved non-conflicting hypervisor docs into hypervisor folder
187
+ ```
188
+ * (BKR-813) Add support for beaker lib PR testing (2870d467)
189
+
190
+
191
+ ```
192
+ (BKR-813) Add support for beaker lib PR testing
193
+
194
+ This change allows for Beaker's CI to detect PR testing from beaker-pe
195
+ and pull in that branch for additional testing.
196
+ ```
197
+ * (MAINT) moved non-conflicting hypervisor docs into hypervisor folder (03346d9a)
198
+
199
+ ### <a name = "2.43.0">2.43.0 - 1 Jun, 2016 (777469ca)
200
+
201
+ * (HISTORY) update beaker history for gem release 2.43.0 (777469ca)
123
202
 
124
203
  * (GEM) update beaker version to 2.43.0 (83bf4f46)
125
204
 
data/docs/README.md CHANGED
@@ -8,16 +8,7 @@
8
8
  * [Overview](Overview.md)
9
9
  * [Creating A Test Environment](Creating-A-Test-Environment.md)
10
10
  * [Roles, What Are They?](Roles-What-Are-They.md)
11
- * Supported Virtualization Techniques
12
- * [VMWare Fusion](VMWare-Fusion-Support.md)
13
- * [EC2](EC2-Support.md)
14
- * [vSphere](vSphere-Support.md)
15
- * [Vagrant](Vagrant-Support.md)
16
- * [Example Vagrant Hosts Files](Example-Vagrant-Hosts-Files.md)
17
- * [Google Compute Engine](Google-Compute-Engine-Support.md)
18
- * [Docker Support](Docker-Support.md)
19
- * [Openstack](Openstack-Support.md)
20
- * [Solaris](Solaris-Support.md)
11
+ * [Supported Virtualization Techniques - Hypervisor Docs](hypervisors)
21
12
  * [The Command Line](The-Command-Line.md)
22
13
  * [Argument Processing and Precedence](Argument-Processing-and-Precedence.md)
23
14
  * [How To Use User/Password Authentication with Beaker](How-To-Use-User-Password-Authentication-with-Beaker.md)
@@ -5,4 +5,21 @@ hypervisor's implementation.
5
5
 
6
6
  If you don't see a file here for a hypervisor, then it's either not yet documented
7
7
  (feel free to help us out here!), or it should conform to our normal hypervisor
8
- assumptions.
8
+ assumptions.
9
+
10
+ # External Hypervisors
11
+
12
+ There are a number of community-supported hypervisors that have not been added to
13
+ Beaker itself. The reason for this is that we're looking to decrease Beaker's
14
+ dependency footprint, and hypervisors are one of the places where we can often
15
+ increase the load across all Beaker uses to benefit a small group that uses a
16
+ particular hypervisor.
17
+
18
+ In order to offset this, we've made a listing of forks below that support other
19
+ hypervisors not included in Beaker. Please check them out if you'd
20
+ like to use their hypervisor, hopefully it'll save you from spending time
21
+ trying to support a new hypervisor yourself.
22
+
23
+ | Hypervisor | Fork |
24
+ |:----------:|:--------------------------------------------------:|
25
+ | LXC | [ashish1099](https://github.com/ashish1099/beaker) |
@@ -41,10 +41,10 @@ By default the docker container just runs an sshd which is adequate for 'puppet
41
41
 
42
42
  HOSTS:
43
43
  ubuntu-12-10:
44
- platform: ubuntu-12.10-x64
45
- image: ubuntu:12.10
46
- hypervisor: docker
47
- docker_cmd: '["/sbin/init"]'
44
+ platform: ubuntu-12.10-x64
45
+ image: ubuntu:12.10
46
+ hypervisor: docker
47
+ docker_cmd: '["/sbin/init"]'
48
48
  CONFIG:
49
49
  type: foss
50
50
 
@@ -53,10 +53,10 @@ Unless the image configuration changes you might want to keep the Docker image f
53
53
 
54
54
  HOSTS:
55
55
  ubuntu-12-10:
56
- platform: ubuntu-12.10-x64
57
- image: ubuntu:12.10
58
- hypervisor: docker
59
- docker_preserve_image: true
56
+ platform: ubuntu-12.10-x64
57
+ image: ubuntu:12.10
58
+ hypervisor: docker
59
+ docker_preserve_image: true
60
60
  CONFIG:
61
61
  type: foss
62
62
 
File without changes
File without changes
File without changes
@@ -69,7 +69,12 @@ module Beaker
69
69
  end
70
70
  command_object = Command.new(command.to_s, [], cmd_opts)
71
71
  elsif command.is_a? Command
72
- command_object = command
72
+ if opts[:environment]
73
+ command_object = command.clone
74
+ command_object.environment = opts[:environment]
75
+ else
76
+ command_object = command
77
+ end
73
78
  else
74
79
  msg = "DSL method `on` can only be called with a String or Beaker::Command"
75
80
  msg << " object as the command parameter, not #{command.class}."
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '2.43.0'
3
+ STRING = '2.44.0'
4
4
  end
5
5
  end
@@ -42,6 +42,25 @@ describe ClassMixedWithDSLHelpers do
42
42
  subject.on( host, 'ls ~/.bin', :environment => {:HOME => '/tmp/test_home' } )
43
43
  end
44
44
 
45
+ describe 'with a beaker command object passed in as the command argument' do
46
+ let( :command ) { Beaker::Command.new('commander command', [], :environment => {:HOME => 'default'}) }
47
+
48
+ it 'overwrites the command environment with the environment specified in #on' do
49
+ expect( host ).to receive( :exec ) do |command|
50
+ expect(command.environment).to eq({:HOME => 'override'})
51
+ end
52
+ subject.on( host, command, :environment => {:HOME => 'override'})
53
+ end
54
+
55
+ it 'uses the command environment if there is no overriding argument in #on' do
56
+ expect( host ).to receive( :exec ) do |command|
57
+ expect(command.environment).to eq({:HOME => 'default'})
58
+ end
59
+ subject.on( host, command )
60
+ end
61
+
62
+ end
63
+
45
64
  it 'if the host is a String Object, finds the matching hosts with that String as role' do
46
65
  allow( subject ).to receive( :hosts ).and_return( hosts )
47
66
 
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: 2.43.0
4
+ version: 2.44.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-06-01 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -584,23 +584,17 @@ files:
584
584
  - docs/Beaker-Test-Tagging.md
585
585
  - docs/Beaker-with-Masterless-Puppet.md
586
586
  - docs/Creating-A-Test-Environment.md
587
- - docs/Docker-Support.md
588
- - docs/EC2-Support.md
589
- - docs/Google-Compute-Engine-Support.md
590
587
  - docs/How-To-Beaker.md
591
588
  - docs/How-To-Use-User-Password-Authentication-with-Beaker.md
592
589
  - docs/How-to-Write-a-Beaker-Test-for-a-Module.md
593
590
  - docs/Lets-Write-a-Test.md
594
- - docs/Openstack-Support.md
595
591
  - docs/Overview.md
596
592
  - docs/README.md
597
593
  - docs/Roles-What-Are-They.md
598
594
  - docs/Shared-Options-for-Executing-Beaker-Commands.md
599
- - docs/Solaris-Support.md
600
595
  - docs/The-Beaker-DSL.md
601
596
  - docs/The-Command-Line.md
602
597
  - docs/Types,-Puppet-4,-and-the-All-In-One-Agent.md
603
- - docs/VMWare-Fusion-Support.md
604
598
  - docs/beaker-vs.-beaker-rspec.md
605
599
  - docs/dsl/confine.md
606
600
  - docs/dsl/platform_specific_tag_confines.md
@@ -609,12 +603,18 @@ files:
609
603
  - docs/hosts/eos.md
610
604
  - docs/hypervisors/README.md
611
605
  - docs/hypervisors/aws.md
606
+ - docs/hypervisors/docker.md
607
+ - docs/hypervisors/ec2.md
608
+ - docs/hypervisors/google_compute_engine.md
609
+ - docs/hypervisors/openstack.md
610
+ - docs/hypervisors/solaris.md
612
611
  - docs/hypervisors/vagrant.md
613
612
  - docs/hypervisors/vagrant_hosts_file_examples.md
613
+ - docs/hypervisors/vmware_fusion.md
614
+ - docs/hypervisors/vsphere.md
614
615
  - docs/meta/README.md
615
616
  - docs/meta/ticket_process.md
616
617
  - docs/runner/test_suites.md
617
- - docs/vSphere-Support.md
618
618
  - ext/completion/beaker-completion.bash
619
619
  - lib/beaker.rb
620
620
  - lib/beaker/cli.rb