beaker-vcloud 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/beaker-vcloud.gemspec +1 -0
- data/lib/beaker-vcloud/version.rb +1 -1
- data/lib/beaker/hypervisor/vcloud.rb +2 -1
- data/spec/beaker/hypervisor/vcloud_spec.rb +19 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTgyYmZmZmRmYTZkM2FlMTg5OTYwMmYxMDUwNjZkOGJmNDI0OWZkYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmU5Mzc0M2UwOWQ4ZDBiMTgwZThiMDhlMjZiN2I3NzUzMmE0NDcwZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTAyYTk5YTE4MTExYzc1MWMzYzBkNjZlMTExZGMzNGY4NzhiZWQzNmRjODNl
|
10
|
+
ZTk2YmZlYzFkODdiOTkwYjQ1ODRlZTEyMjYyMzNmNzY3ZjNiOGZjNTk1NDZm
|
11
|
+
ZjY3OTUyOWU3YjEyZGQzOWJhYzg5YmEzZDBlYmM1NDg0ZjhjMmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGZhNjE0N2Q5YWM4M2EwMDYxNjU0ZTc0OTk3OWY5ZGU3NWZhMTMyMTYyODhj
|
14
|
+
ZWE0OWYwODRjMGJlNjc4ZTdhOTQ2ZjI5NmQ4MjVhMjEyODExZTg0M2IzNWVj
|
15
|
+
NmE1MDA2YzgwZTZhZDgwZTFmMGFjMzdiZGMwOGZkNjc5NTQ1OWI=
|
data/beaker-vcloud.gemspec
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'yaml' unless defined?(YAML)
|
2
2
|
require 'beaker/hypervisor/vmpooler'
|
3
|
+
require 'beaker/hypervisor/vsphere_helper'
|
3
4
|
require 'rbvmomi'
|
4
5
|
|
5
6
|
module Beaker
|
@@ -179,7 +180,7 @@ module Beaker
|
|
179
180
|
@vsphere_helper.find_vms(host['vmhostname'])[host['vmhostname']].summary.guest.ipAddress != nil
|
180
181
|
end
|
181
182
|
host[:ip] = @vsphere_helper.find_vms(host['vmhostname'])[host['vmhostname']].summary.guest.ipAddress
|
182
|
-
enable_root(host)
|
183
|
+
enable_root(host) unless host.is_cygwin?
|
183
184
|
end
|
184
185
|
end
|
185
186
|
|
@@ -46,6 +46,25 @@ module Beaker
|
|
46
46
|
|
47
47
|
end
|
48
48
|
|
49
|
+
it 'does not run enable_root on cygwin hosts' do
|
50
|
+
MockVsphereHelper.powerOff
|
51
|
+
|
52
|
+
opts = make_opts
|
53
|
+
opts[:pooling_api] = nil
|
54
|
+
opts[:datacenter] = 'testdc'
|
55
|
+
|
56
|
+
hosts = make_hosts
|
57
|
+
hosts.each do |host|
|
58
|
+
allow( host ).to receive( :is_cygwin? ).and_return( true )
|
59
|
+
end
|
60
|
+
vcloud = Beaker::Vcloud.new( hosts, opts )
|
61
|
+
allow( vcloud ).to receive( :require ).and_return( true )
|
62
|
+
allow( vcloud ).to receive( :sleep ).and_return( true )
|
63
|
+
expect( vcloud ).to receive( :enable_root ).never
|
64
|
+
vcloud.provision
|
65
|
+
|
66
|
+
end
|
67
|
+
|
49
68
|
end
|
50
69
|
|
51
70
|
describe "#cleanup" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-vcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rishi Javia, Kevin Imber, Tony Vu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -178,6 +178,20 @@ dependencies:
|
|
178
178
|
- - ! '>='
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: beaker-vmware
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ! '>='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
181
195
|
description: For use for the Beaker acceptance testing tool
|
182
196
|
email:
|
183
197
|
- rishi.javia@puppet.com, kevin.imber@puppet.com, tony.vu@puppet.com
|