beaker-vcloud 0.1.0 → 0.2.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
- N2QzNDU4NDJiZWIwZjc5NGY3OWE0NDM3ODBmY2MxNDdiMjgxODE4OA==
4
+ ZTgyYmZmZmRmYTZkM2FlMTg5OTYwMmYxMDUwNjZkOGJmNDI0OWZkYg==
5
5
  data.tar.gz: !binary |-
6
- M2JiMTA1OGEzYzU5MGZmMzY4YjAyMjAyMmUyNTRkZjQ3NjE5MWExOQ==
6
+ NmU5Mzc0M2UwOWQ4ZDBiMTgwZThiMDhlMjZiN2I3NzUzMmE0NDcwZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWM4N2EzZmI5MmI3MzAyOTEzZmIyMTljYmFmMDQ2ZDA2Y2M2ZTI2NTU0MTY5
10
- YjA2MjFjNjE2YzUxMGQxOGVkMDMxZWRjNTM2ODliMDIzZmIwOTZmMGE4ZmNl
11
- ZGE5YTEzMDI3Nzk1YjdmOGEyZWIzYWUzZDM2OTg0YzI2MmRhMmE=
9
+ YTAyYTk5YTE4MTExYzc1MWMzYzBkNjZlMTExZGMzNGY4NzhiZWQzNmRjODNl
10
+ ZTk2YmZlYzFkODdiOTkwYjQ1ODRlZTEyMjYyMzNmNzY3ZjNiOGZjNTk1NDZm
11
+ ZjY3OTUyOWU3YjEyZGQzOWJhYzg5YmEzZDBlYmM1NDg0ZjhjMmI=
12
12
  data.tar.gz: !binary |-
13
- ZjdhYTM5MjhjMGViYjYxZDk5YjJiZDk0NTRlMDcyNzI0NWE4MjZlYWRiZDNj
14
- MDE0ZmM4ZmViZjYzMmYxODY3YTI2NzRjZWVhMDIzY2FmMmVlYmI2ZTI1OTQw
15
- NjI4NTVkNTE5NGI5NzBlMTkzYTk1NDllY2I4ZTY2ZGYzYjVkNGM=
13
+ OGZhNjE0N2Q5YWM4M2EwMDYxNjU0ZTc0OTk3OWY5ZGU3NWZhMTMyMTYyODhj
14
+ ZWE0OWYwODRjMGJlNjc4ZTdhOTQ2ZjI5NmQ4MjVhMjEyODExZTg0M2IzNWVj
15
+ NmE1MDA2YzgwZTZhZDgwZTFmMGFjMzdiZGMwOGZkNjc5NTQ1OWI=
@@ -34,6 +34,7 @@ Gem::Specification.new do |s|
34
34
  s.add_runtime_dependency 'stringify-hash', '~> 0.0.0'
35
35
  s.add_runtime_dependency 'rbvmomi', '~> 1.9'
36
36
  s.add_runtime_dependency 'beaker-vmpooler'
37
+ s.add_runtime_dependency 'beaker-vmware'
37
38
 
38
39
  end
39
40
 
@@ -1,3 +1,3 @@
1
1
  module BeakerVcloud
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -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.1.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-08-09 00:00:00.000000000 Z
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